Go into the ActionAssistant class, and see if there is a "teleportToX" and "teleportToY" int. If not, make one.
Edit: Actually, let me see the death void you have. just cp the entire void.
|
Hello,
I am using Shard Revolution as a base, and I am coding in a new action for the DIALOUGE.cfg. The action I am adding is TELE_TO < Xcoordinate, Ycoordinate>
I have added much, except I have one final error holding me back:
This is what I have added in: DialogueAssistant.java:
Code:} else if (action.getType() == DialogueAction.Type.TELE_TO) { client.getActionAssistant().teleportToX = action.xcord(); client.getActionAssistant().teleportToY = action.ycord();
How would I declare this, for example in my death void, it has a teleportToX and teleportToY, and they work. How would I declare it so it works here?
Go into the ActionAssistant class, and see if there is a "teleportToX" and "teleportToY" int. If not, make one.
Edit: Actually, let me see the death void you have. just cp the entire void.
Theres some more (is process void), but I dont wanna put everything.
This void is located in client.java though!
Code:if (isDead) { if (!isDeadWaiting) { isDeadWaiting = true; isDeadTimer = 8; actionAssistant.startAnimation(AnimationManager .getDeathAnimation(this)); actionAssistant.sendMessage("Oh dear, you are dead!"); setBusy(true); setCanWalk(false); } else { if (isDeadTimer == 0) { isDead = false; isDeadWaiting = false; teleportToX = 3020; teleportToY = 2984; setHeightLevel(Constants.SPAWN_Z); actionAssistant.startAnimation(-1); playerLevel[3] = actionAssistant.getLevelForXP(playerXP[3]); actionAssistant.setSkillLevel(3, playerLevel[3], playerXP[3]); setCanWalk(true); setBusy(false); combatManager.dropItems(); // TODO drop items here } isDeadTimer--; } } }
Try this:
Code:} else if (action.getType() == DialogueAction.Type.TELE_TO) { client.teleportToX = action.xcord(); client.teleportToY = action.ycord();
I did it, and no errors are there anymore. However I must have done something wrong in the past, as now.
1) It doesn't ignore the Xcord Ycord after it, so it uses it as actions therefore my dialouges all messed up.
(What would be a good ignorestring or something...?)
2) I'm not sure if the teleporting works or not due to problem #1.
Can you post the void the TELE_TO is in? or PM me if you don't want everyone to see it.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |