What base is this? Kinda sounds like an 508+
|
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
What base is this? Kinda sounds like an 508+
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.
@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
@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 usingCode:Error: T1 - 123,0 - 36,36 sendPacket185(17013)
and also triedCode:int dung = c.getLevelForXP(c.playerXP[24]);
then used it asCode:int dung = c.playerLevel[24];
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); }
bump,still need this
For the npcs not disappearing just have them respawn.
like..
For the level, what are you trying to implement? It should be declare as.Code:npcs[i].needRespawn
public int playerDung = 25;
So call it as c.playerlevel[25];
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.
and i dont get what your saying about your dungeon shit so cant answer that....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;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |