Jump to content
  • 0
Sign in to follow this  
pkingbandit

Dying in duel arena

Question

So getting into duel arena is all fine, but once someone dies, the person that dies is ok, but the person who wins stay in the duel arena? I have no clue where to start tbh anyhelp?

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
If you are on PI (which I am just guessing) there should be a TradeAndDuel.java in your src/server/model/players, if you have that look for this method:
[CODE] public void duelVictory() {
Client o = (Client) Server.playerHandler.players[c.duelingWith];
if(o != null) {
c.getPA().sendFrame126(""+o.combatLevel, 6839);
c.getPA().sendFrame126(o.playerName, 6840);
o.duelStatus = 0;
} else {
c.getPA().sendFrame126("", 6839);
c.getPA().sendFrame126("", 6840);
}
c.duelStatus = 6;
c.getCombat().resetPrayers();
for (int i = 0; i < 20; i++) {
c.playerLevel[i] = c.getPA().getLevelForXP(c.playerXP[i]);
c.getPA().refreshSkill(i);
}
c.getPA().refreshSkill(3);
duelRewardInterface();
c.getPA().showInterface(6733);
c.getPA().movePlayer(Config.DUELING_RESPAWN_X+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), Config.DUELING_RESPAWN_Y+(Misc.random(Config.RANDOM_DUELING_RESPAWN)), 0);
c.getPA().requestUpdates();
c.getPA().showOption(3, 0, "Challenge", 3);
c.getPA().createPlayerHints(10, -1);
c.canOffer = true;
c.duelSpaceReq = 0;
c.duelingWith = 0;
c.getCombat().resetPlayerAttack();
c.duelRequested = false;
}[/CODE]

I'm guessing that something will be wrong with that method. Post anything wrong with it that you suspect and I can help.

Hope this Helps...

Share this post


Link to post
Share on other sites
  • 0
nunners, nice to see somebody else helps too :D

Share this post


Link to post
Share on other sites
Sign in to follow this  

×