Hey Rune-Server,
I'm using DevastationRS as base, and I'm adding CastleWars to it, which shouldn't be difficult because it's exactly the same as CreativeScape, so infact it's just copy & paste.
Now when i'm in "ObjectClick.java" I'm trying to add the doors, flags etc. all those objects you need to play CastleWars
When I try to add 1 single item to CastleWars I get this error:
Code:
server\model\player\packet\ObjectClick.java:3794: orphaned case
case 4465: // sara small doors
^
1 error
Press any key to continue . . .
If I'm right this means the case is already in use right?
This is the case I've been trying to add:
Code:
case 4465: // sara small doors
if(client.SaraPlayer){
if(client.isBusy()){
return;
}
client.setBusy(true);
Server.getCastleWars().SaraDoorsOpen = false;
client.getActionAssistant().startAnimation(881);
final Client csadad = client;
EventManager.getSingleton().addEvent(null, new Event() {
public void execute(EventContainer c) {
Server.getCastleWars().processor();
csadad.setBusy(false);
c.stop();
}
@Override
public void stop() {
}
}, 2000);
} else {
client.getActionAssistant().sendMessage("These doors seem to be locked.");
}
break;
Please tell me what I'm doing wrong?
I already tried searching with Notepad++ in CreativeScape and DevastationRS on "4465" and compared everything, the CastleWars class is EXACTLY the same, really no difference, and all the other things don't have to do anything with CastleWars exept ObjectClick.java...
If anyone can help me.. Please
Grz. Yannick