PDA

View Full Version : z508/525 DuelArena Help.



Nathan
June 19th, 2010, 05:09
kk with duel arena. i need it so when both players clik accept. it puts them in duel arena? any help plz. i seem to added it right in duelarena.java file. but everything else works accept that.

Slayer™
June 19th, 2010, 06:11
Actionbuttons.java

Under the packethandlers folder.

Nathan'
June 19th, 2010, 06:17
Nathan look in your ptrade.java and simply relate the code and implement it with actionbuttons. I wont spoonfeed. goodluck

0r4nge ownz
July 7th, 2010, 16:20
here it is, accept and decline.
use this as a structure.



if (buttonId == 83) {/* Accept */
Player pl = Server.engine.players[p.duelFriend];
if (p != null && pl != null) {
p.acceptScreen1 = true;
p.getActionSender().sendMessage(p, "Accepted duel.");
}
}
if (buttonId == 86) {/* Decline */
Player pl = Server.engine.players[p.duelFriend];
if (p != null && pl != null) {
p.getActionSender().removeShownInterface(p);
pl.getActionSender().removeShownInterface(pl);
p.getDuelClass().resetDuelSettings1();
pl.getDuelClass().resetDuelSettings1();
}
}