post your enterCaves method
|
Okkk sooo... I was testing out my server and I found out that the Fight Caves entrance wasnt working..
In firstclickobject I found this...
Which doesnt work... So I keep looking and found this...Code:case 11833: c.getPA().enterCaves(); break;
I cant figure out how to replicate that to try to make the entrance work, the enterCaves method is in PlayerAssistant.java and the FightCaves.java file doesnt contain any information on enterCaves, so im not sure how to create the teleport(as the original didnt work).Code:case 24306: if(c.heightLevel == 2) Server.getWarriorsGuild().handleKamfreena(c, true); break;
Yes, the object id is correct
Code:public void enterCaves() { c.getPA().movePlayer(2413,5117, c.playerId * 4); c.waveId = 0; c.tzhaarToKill = -1; c.tzhaarKilled = -1; EventManager.getSingleton().addEvent(new Event() { public void execute(EventContainer e) { Server.fightCaves.spawnNextWave((Client)PlayerHandler.players[c.playerId]); e.stop(); } }, 10000); }
Try changing it to thisCode:public void enterCaves() { c.getPA().movePlayer(2413, 5117, c.playerId * 4); c.waveId = 0; c.tzhaarToKill = -1; c.tzhaarKilled = -1; CycleEventHandler.addEvent(c, new CycleEvent() { @Override public void execute(CycleEventContainer container) { container.stop(); } @Override public void stop() { Server.fightCaves.spawnNextWave((Client) PlayerHandler.players[c.playerId]); } }, 10); }
Try adding a check for the 2 tiles in front of the door
if the player is at this x and y, or this x and y, then teleport.. If that doesn't work you at least can clear that from your suspicion
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |