Thread: Anti Duping + setting max item amount new way.

Results 1 to 8 of 8
  1. #1 Anti Duping + setting max item amount new way. 
    ~Legend Rene
    Guest
    Purpose : to add a anti duping for a certain item and setting max amount of it

    Difficulty : 1/10

    Base : None

    Credits : me?

    Step 1 open up client.java and add this under client extends player implements runnable {
    Code:
    public int AntiDupe = 500;//Check AntiDupe
    and this
    Code:
      public void AntiDupe(){
    AntiDupe = 50;
        for(int i = 0; i < playerBankSize; i++) {// Check bank for item
          if(bankItems[i] == 1042) {
            if(bankItemsN[i] >= 10){ // Setting max amount of item 10 atm
              bankItems[i] = 1042; // Item ID , replaces item with lower value with same or diff item
              bankItemsN[i] = 5;// Item value that you get instead of old value
            }
          }
        }
        for(int i2 = 0; i2 < playerItems.length; i2++) {//Check inv for item
          if(playerItems[i2] == 566) { // Check Item ID
            if(playerItemsN[i2] >= 5001){ //Max item value , if overrided replace by..
              int newamount = playerItemsN[i2];//Replaces item
              deleteItem(1042, getItemSlot(1042), playerItemsN[i2]);//Deletes old item
              addItem(1042, 5);//... This item + value
            }
          }
        }
    You might want to add AntiDupe(); in your process to scan the item every 500ms.
    Done , explanation behind lines so you cant possibly mess up.
     

  2. #2  
    x19
    Guest
    Nice work rene.. This will be usefull if you only want like 5 of a certain item
     

  3. #3  
    Registered Member
    fabjan's Avatar
    Join Date
    Jul 2007
    Age
    30
    Posts
    552
    Thanks given
    0
    Thanks received
    0
    Rep Power
    101
    woow
    no lifer!!!
    nice tut anyway.. again
    Please vote:

    btb.servegame.com:
     

  4. #4  
    ~Legend Rene
    Guest
    Lawl I have a life , but im to bored atm , so im just posting some crap
     

  5. #5  
    ~Legend Rene
    Guest
    Felt like bumping this since many ppl seem to need.
     

  6. #6  
    Old School Member

    Join Date
    Feb 2008
    Age
    29
    Posts
    2,163
    Thanks given
    372
    Thanks received
    40
    Rep Power
    687
    bumpooooooooooooooooooooooo

    Quote Originally Posted by Colby View Post
    Rofl, moron. They're ALL going to be null idiot. This is such complete bullshit, it makes me want to strangle you.
     

  7. #7  
    Ex Administrator
    Aj's Avatar
    Join Date
    Dec 2007
    Age
    33
    Posts
    4,350
    Thanks given
    17
    Thanks received
    3,366
    Rep Power
    5000
    get a shovel
    dig a ditch
    lie in it
    and die,
    you grave digging bitch.


    Please do not contact me about RSPS related issues, if you require assistance related to Rune-Server you can send me a private message.




    I use
    <code></code>
     

  8. #8  
    Registered Member Sabsabi's Avatar
    Join Date
    Mar 2008
    Posts
    438
    Thanks given
    6
    Thanks received
    8
    Rep Power
    52
    its say's client.java:50: illegal start of expression i tried to put on all dig place..
     


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
  •