[Tut] fixing a duel bug (dodian source)

Results 1 to 4 of 4
  1. #1
    CloudCMS Developer blackpol is offline
    MemberRank
    Aug 2006 Join Date
    The NetherlandsLocation
    232Posts

    [Tut] fixing a duel bug (dodian source)

    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.
    Code:
    if (objectID == 2213) { // Bank Booth
    you will see something like this:
    Code:
    if (objectID == 2213) { // Bank Booth
                    skillX = objectX;
                    skillY = objectY;
                    NpcWanneTalk = 2;
                }
    replace this with:
    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:
    Code:
    if ((objectID == 2213) || (objectID == 2214) || (objectID == 3045)
                        || (objectID == 5276) || (objectID == 6084)) {
    you will see something like this:
    Code:
    if ((objectID == 2213) || (objectID == 2214) || (objectID == 3045)
                        || (objectID == 5276) || (objectID == 6084)) {
                    skillX = objectX;
                    skillY = objectY;
                    WanneBank = 1;
                }
    replace it with this:
    Code:
    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;
        }
                }
    this was my first tutorial since i remake my runescape script
    i hope you like this simple tutorial

    p.s. DONT LEECH!!!

    greetz. slabbetje/blackpol


  2. #2
    Laravel Core Programmer Jangan is offline
    DeveloperRank
    Jul 2007 Join Date
    Dubai, UAELocation
    2,113Posts

    Re: [tut/mod] fixing a duel bug (dodian source)

    oh wow that is pretty impressive, i didnt notice that bug, well the other easy way to fix it is to

    1. Remove the bank command.
    2. remove the bank button.

  3. #3
    Member BamBamBam is offline
    MemberRank
    Apr 2007 Join Date
    62Posts

    Re: [tut/mod] fixing a duel bug (dodian source)

    Simple, but effective. Don't think there is any other way to do it to be completely honest.

  4. #4
    CloudCMS Developer blackpol is offline
    MemberRank
    Aug 2006 Join Date
    The NetherlandsLocation
    232Posts

    Re: [tut/mod] fixing a duel bug (dodian source)

    Quote Originally Posted by Jangan View Post
    oh wow that is pretty impressive, i didnt notice that bug, well the other easy way to fix it is to

    1. Remove the bank command.
    2. remove the bank button.

    the is no bank button i think in the dodian source only the bankbooth can be used so if you use a button you
    can better fix that too same way as i did ;)



Advertisement