Thread: Keep item NO matter what on death like firecape? but it isnt working why? error!

Results 1 to 10 of 10
  1. #1 Keep item NO matter what on death like firecape? but it isnt working why? error! 
    omgmike1
    Guest
    ok well u kno on all delta based servers, that on death u keep a firecape even if u are skulled and not item protcedting.
    well im trying to do this with some other items such as d claws. so i search 6570(fcape id) and i copy the code and replace the IDS. but i get this error.

    NOTE: it works fine for firecape but same like of code with diff ID gives error?!?!?!

    ALSO SINCE IT CANNOT FIND THE VARIABLE can some one help make 1?

    Reply With Quote  
     

  2. #2  
    Mister Ricky .
    Ricky's Avatar
    Join Date
    May 2009
    Age
    30
    Posts
    186
    Thanks given
    0
    Thanks received
    2
    Rep Power
    41
    maybe you need to add another bracket not sure though gl

    ~ Rickyy
    Ricky
    Reply With Quote  
     

  3. #3  
    Registered Member
    Wiffles's Avatar
    Join Date
    Dec 2007
    Posts
    1,168
    Thanks given
    100
    Thanks received
    198
    Rep Power
    493
    Call Public boolean keep8002 = false;


    =p

    wow omg rickyy it saids it cant find the variable i dont know where the fux you got missing bracket at.
    Reply With Quote  
     

  4. #4  
    Codex
    Rowan's Avatar
    Join Date
    Sep 2008
    Age
    28
    Posts
    1,593
    Thanks given
    0
    Thanks received
    20
    Rep Power
    1092
    yh indeed, you don't have the keep8002 method
    Reply With Quote  
     

  5. #5  
    Registered Member
    Wiffles's Avatar
    Join Date
    Dec 2007
    Posts
    1,168
    Thanks given
    100
    Thanks received
    198
    Rep Power
    493
    Could you post the 6570 method?
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Dec 2007
    Posts
    120
    Thanks given
    0
    Thanks received
    3
    Rep Power
    44
    You should only have to declare the keep #### boolean at the beginning of client.java.
    Reply With Quote  
     

  7. #7  
    Registered Member
    tommo's Avatar
    Join Date
    Aug 2008
    Posts
    420
    Thanks given
    30
    Thanks received
    36
    Rep Power
    200
    search
    Code:
    boolean keep6570
    and paste the code here
    23:06 <t4> of course, you can just reverse their wavygravy cipher to produce the public volatile boolean needed
    22:58 <t4> careful it sends bologna packets to the login servers
    22:58 <t4> very unsafe kernel flash
    Reply With Quote  
     

  8. #8  
    omgmike1
    Guest
    I did this

    public class client extends Player implements Runnable {
    public boolean keep8002 = false;

    i pasted the code under it but when i log in and killed the guy he loses d claws and doesnt keep them NO MATTER WHAT.

    is there a diff place to paste it and i search keep6570 boolean on the client.java and nothing shows up O_O??
    Reply With Quote  
     

  9. #9  
    Registered Member
    Wiffles's Avatar
    Join Date
    Dec 2007
    Posts
    1,168
    Thanks given
    100
    Thanks received
    198
    Rep Power
    493
    any errors compiling it?

    Also Find the whole public boolean keep6780 and paste it here in
    Code:
    code
    Code:
    code
    Code:
    code
    format
    Reply With Quote  
     

  10. #10  
    omgmike1
    Guest
    i get no erros what so ever.

    look about the public boolean thing.. it should have 6570 in the public boolean right?

    so i opend client.java and searched "6570"

    only few things came up nothing with public boolean tho. this is what came up btw:


    public void youdied()
    {

    if(playerHasItem(5509)){
    deleteItem(5509, 1);
    }
    if(playerHasItem(5510)){
    deleteItem(5510, 1);
    }
    if(playerHasItem(5512)){
    deleteItem(5512, 1);
    }
    if(playerHasItem(5514)){
    deleteItem(5514, 1);
    }
    if(playerHasItem(6570)){
    keep6570 = true;
    deleteItem(6570, 1);
    }





    }
    } catch(Exception e) { sM("ERROR: Removing Equipment"); }
    }
    if(playerHasItem(5509)){
    deleteItem(5509, 1);
    }
    if(playerHasItem(5510)){
    deleteItem(5510, 1);
    }
    if(playerHasItem(5512)){
    deleteItem(5512, 1);
    }
    if(playerHasItem(5514)){
    deleteItem(5514, 1);
    }
    if(playerHasItem(6570)){
    keep6570 = true;
    deleteItem(6570, 1);



    } catch(Exception e) {}
    ItemHandler.addItem(526, absX, absY, 1, KillerId, false);
    try {
    } catch(Exception e) {}
    if (itemKept1 > 0)
    addItem(itemKept1, 1);
    if (itemKept2 > 0)
    addItem(itemKept2, 1);
    addItem(itemKept3, 1);
    if (itemKept4 > 0)
    addItem(itemKept4, 1);
    if (keep6570) {
    addItem(6570, 1);
    keep6570 = false;
    }
    if (keep8002) {
    addItem(8002, 1);
    keep8002 = false;
    }
    resetKeepItem();
    hitDiff = 0;
    updateRequired = true; appearanceUpdateRequired = true;
    }
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •