Thread: Need help with some things

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 Need help with some things 
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    k well im trying to make a dung base but when i use c.playerLevel[24] (dung) it wont let me log in, i looked where playerLevel was declared and its playerLevel = new int playerLevel[25] so idk why its causing a problem

    and also anyone know how to make spawned npcs not dissapear, cause atm im doing the height as c.playerId * 4 and spawning npcs through npcHandler method spawnNpc, but when i go like 15 squares away (or enough to not see them in minimap) they dissapear
    Reply With Quote  
     

  2. #2  
    Server Developer
    Argyros's Avatar
    Join Date
    Apr 2011
    Posts
    498
    Thanks given
    25
    Thanks received
    31
    Rep Power
    23
    What base is this? Kinda sounds like an 508+
    Reply With Quote  
     

  3. #3  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    28
    Posts
    4,132
    Thanks given
    1,077
    Thanks received
    1,137
    Rep Power
    5000
    Have you got errors? If so post them.
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Aug 2011
    Posts
    2,760
    Thanks given
    297
    Thanks received
    534
    Rep Power
    1596
    Quote Originally Posted by evolution0521 View Post
    What base is this? Kinda sounds like an 508+
    What section is this? Kinda looks like rs2 server and not 503+
    Quote Originally Posted by Aj View Post
    This is not even a tutorial. It's fail for rep. It's fail for life.
    Reply With Quote  
     

  5. #5  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    28
    Posts
    4,132
    Thanks given
    1,077
    Thanks received
    1,137
    Rep Power
    5000
    Quote Originally Posted by spikeyyy View Post
    What section is this? Kinda looks like rs2 server and not 503+
    And your point being? His base may be delta scape, or pi, assuming he's using one of the two since they're the two most likely.
    Reply With Quote  
     

  6. #6  
    Server Developer
    Argyros's Avatar
    Join Date
    Apr 2011
    Posts
    498
    Thanks given
    25
    Thanks received
    31
    Rep Power
    23
    Quote Originally Posted by spikeyyy View Post
    What section is this? Kinda looks like rs2 server and not 503+
    Yes i noticed but people have the habit of post in the wrong section.
    Anyways make sure you declared it every where like your playersave.java and player PlayerAssistant.
    But it would be better to use the Search button next time.
    BTW if you want to you can try this: http://www.rune-server.org/runescape...ing-120-a.html
    even tho this is for if you want your yours to go to 120 instead of 99.
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    @The Abstract Fish, no i dont get any errors, it just crashes me out of my client if im logged on and if i try to log in again it would say error connecting to server but no error in server cmd, but hold on let me check my client cmd

    Edit: Nope no error just got this message since i logged in

    Code:
    Error: T1 - 123,0 - 36,36
    sendPacket185(17013)
    @evolution its pi, and im not really looking for the 120 dung, i need to be able to declare something as dung, this is what im using

    Code:
    int dung = c.getLevelForXP(c.playerXP[24]);
    and also tried

    Code:
    int dung = c.playerLevel[24];
    then used it as

    Code:
    				if (dung < 25) {
    					for (int i = 0; i < meleePack1.length; i++) {
    						c.getItems().addItem(meleePack1[i][0], 1);
    					}
    				} else if (dung > 24 && dung < 50) {
    					for (int i = 0; i < meleePack2.length; i++) {
    						c.getItems().addItem(meleePack2[i][0], 1);
    					}
    				} else if (dung > 49 && dung < 75) {
    					for (int i = 0; i < meleePack3.length; i++) {
    						c.getItems().addItem(meleePack3[i][0], 1);
    					}
    				} else if (dung > 74 && dung < 99) {
    					for (int i = 0; i < meleePack4.length; i++) {
    						c.getItems().addItem(meleePack4[i][0], 1);
    					}
    				} else if (dung > 98 && dung < 121) {
    					for (int i = 0; i < meleePack5.length; i++) {
    						c.getItems().addItem(meleePack5[i][0], 1);
    					}
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Mar 2011
    Posts
    4,062
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    bump,still need this
    Reply With Quote  
     

  9. #9  
    Banned
    Join Date
    Sep 2011
    Posts
    17
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    For the npcs not disappearing just have them respawn.

    like..
    Code:
    npcs[i].needRespawn
    For the level, what are you trying to implement? It should be declare as.
    public int playerDung = 25;

    So call it as c.playerlevel[25];
    Reply With Quote  
     

  10. #10  
    -- Client Developer -- Insane's Avatar
    Join Date
    Aug 2010
    Posts
    299
    Thanks given
    2
    Thanks received
    33
    Rep Power
    56
    This method deletes spawned npc's if your not within the area etc.. etc..
    Comment it out if you want spawned npcs to not dissapear.

    Code:
    				if(npcs[i].spawnedBy > 0) {
    					if(Server.playerHandler.players[npcs[i].spawnedBy] == null 
    					|| Server.playerHandler.players[npcs[i].spawnedBy].heightLevel != npcs[i].heightLevel	
    					|| Server.playerHandler.players[npcs[i].spawnedBy].respawnTimer > 0 
    					|| !Server.playerHandler.players[npcs[i].spawnedBy].goodDistance(npcs[i].getX(), npcs[i].getY(), Server.playerHandler.players[npcs[i].spawnedBy].getX(), Server.playerHandler.players[npcs[i].spawnedBy].getY(), 20)) {
    						
    				if(Server.playerHandler.players[npcs[i].spawnedBy] != null) {
    					if(npcs[i].npcType == 2025 || npcs[i].npcType == 2028 || npcs[i].npcType == 2026 || npcs[i].npcType == 2030 || npcs[i].npcType == 2029 || npcs[i].npcType == 2027) {
    						for(int j = 0; j < server.model.minigames.BarrowsData.SARCOPHAGUS.length; j++) {
    						Server.playerHandler.players[npcs[i].spawnedBy].spawnedBrother[j] = false;
    						}
    					}
    
    							npcs[i].absX = 0;
    							npcs[i].absY = 0;
    							npcs[i] = null;
    						}
    					}
    				}
    				if (npcs[i] == null) continue;
    and i dont get what your saying about your dungeon shit so cant answer that....
    Reply With Quote  
     

  11. Thankful user:


Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] Need help on things [Rep++]
    By Debugger in forum Help
    Replies: 10
    Last Post: 11-03-2010, 07:22 AM
  2. [PI] two things rep+(for each)
    By Lord Stark in forum Help
    Replies: 0
    Last Post: 10-24-2010, 12:16 AM
  3. Some Things.
    By laxmaster213 in forum Showcase
    Replies: 3
    Last Post: 03-21-2009, 08:16 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •