Jump to content
  • 0
Sign in to follow this  
Eson

Duel arena glitch eclipse 639

Question

when people do staked duels , and they put somthing for stake , and hen they decline , the item they staked will be just deleted , does any1 know how to fix this ?

Greetz Eson

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0
I was playing with it, trying to figure it out. Wasn't successful, but if it helps at all I think you need to make it first of all remove the items from the stake, and refresh the players inventory. When you try to get it to remove item, instead of items they are considered 'spoils'. If this helps, cool. If not, sorry :[

Also: I didn't keep trying, failed once then kinda stopped.

Share this post


Link to post
Share on other sites
  • 0
[quote name='Roberts']I was playing with it, trying to figure it out. Wasn't successful, but if it helps at all I think you need to make it first of all remove the items from the stake, and refresh the players inventory. When you try to get it to remove item, instead of items they are considered 'spoils'. If this helps, cool. If not, sorry :[

Also: I didn't keep trying, failed once then kinda stopped.[/QUOTE]

Yeah i'm still searching for it too ..

Share this post


Link to post
Share on other sites
  • 0
Should be a Duel.java

for(int i = 0; i < thecontainername; i++) {
player.getInventory().addItem(containerName[i].getId(), containerName[i].getAmount());
}

in the decline method or something.

Share this post


Link to post
Share on other sites
  • 0
if it helps , this is the decline method :

public boolean decline(Player player) {
Player other = getOpponent(player);
ActionSender.sendCloseInterface(player);
ActionSender.sendCloseInterface(other);
ActionSender.closeInventoryInterface(player);
ActionSender.closeInventoryInterface(other);
player.getInventory().refresh();
other.getInventory().refresh();
reset(player, other);
player.setActivity(Mob.DEFAULT_ACTIVITY);
other.setActivity(Mob.DEFAULT_ACTIVITY);
player.sendMessage("You've declined the duel.");
other.sendMessage("Other player has declined the duel.");
stop(false);
return true;
}

Share this post


Link to post
Share on other sites
  • 0
I just gave you the fucking code.
If you seriously can't copy/paste, and change some names, then I'm not going to help you.

Share this post


Link to post
Share on other sites
  • 0
^no need to rage , if it doesn't work for me , it doesn't , Bump still need help

Share this post


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

×