Difficulty: Easy
Discription: Fast Debug from the duel/bank system from the dodian/davias source
Files to be edit: client.java
i founded a bug in the duel system of the dodian/davias source
when ur in duel and you open bank and close the bank you duplicate the items you stake (item what you win or lose)
the duplicate will be something like:
player 1 = 100k
player 2 = 100k
after banking: 200k = player1 stake + player 2 stake
this is the easy way to fix it
find in client.java
-----------------------------------------------------------------------Step 1.
you will see something like this:Code:if (objectID == 2213) { // Bank Booth
replace this with:Code:if (objectID == 2213) { // Bank Booth skillX = objectX; skillY = objectY; NpcWanneTalk = 2; }
Code:if (objectID == 2213) { // Bank Booth if(duelFight == true){ sendMessage("Sorry you cant open you bank in duel!"); }else{ skillX = objectX; skillY = objectY; NpcWanneTalk = 2; } }-----------------------------------------------------------------------Step 2.
now find:
you will see something like this:Code:if ((objectID == 2213) || (objectID == 2214) || (objectID == 3045) || (objectID == 5276) || (objectID == 6084)) {
replace it with this:Code:if ((objectID == 2213) || (objectID == 2214) || (objectID == 3045) || (objectID == 5276) || (objectID == 6084)) { skillX = objectX; skillY = objectY; WanneBank = 1; }
this was my first tutorial since i remake my runescape scriptCode:if ((objectID == 2213) || (objectID == 2214) || (objectID == 3045) || (objectID == 5276) || (objectID == 6084)) { if(duelFight == true){ sendMessage("You may not use your bank when ur in duel"); } else{ skillX = objectX; skillY = objectY; WanneBank = 1; } }
i hope you like this simple tutorial
p.s. DONT LEECH!!!
greetz. slabbetje/blackpol


![[Tut] fixing a duel bug (dodian source)](http://ragezone.com/hyper728.png)


