Thread: What's wrong with this one?

Results 1 to 3 of 3
  1. #1 What's wrong with this one? 
    Fuck yeah!
    Mergim's Avatar
    Join Date
    May 2009
    Age
    31
    Posts
    2,309
    Thanks given
    218
    Thanks received
    187
    Rep Power
    1619
    Well, i'm trying to do something, but the code aint workin 100%..

    Code:
      if(objectID == 2875){
      if (playerHasItem(2413, 1) || playerCheckBank(2413, 1)) {
        sM("You already have the cape!");
        setAnimation(645);
        addItem(2413, 1);
        sM("TEXT");
      }
    }
    What i'm trying to do is that when a player clicks on the statue, they get guthix cape.. But i also added playerHasItem(2413, 1), so if they already have the item, they wont be abeal to get another one.
    But the weird problem is that i need the cape in my inv to be abeal to get another cape
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Sep 2009
    Posts
    201
    Thanks given
    0
    Thanks received
    17
    Rep Power
    147
    if(objectID == 2875){
    if (!(playerHasItem(2413, 1)) && !(playerCheckBank(2413, 1))) {
    setAnimation(645);
    addItem(2413, 1);
    sM("TEXT");
    } else {
    sM("You already have the cape!");
    }
    }
    need more help add me [email protected]
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Mar 2009
    Age
    31
    Posts
    1,008
    Thanks given
    32
    Thanks received
    7
    Rep Power
    111
    Code:
    if(objectID == 2875){
    if (!(playerHasItem(2413, 1)) && !(playerCheckBank(2413, 1))) {
    setAnimation(645);
    addItem(2413, 1);
    sM("TEXT");
    } else {
    f ((playerHasItem(2413, 1)) && (playerCheckBank(2413, 1))) {
    sM("You already have the cape!");
    }
    }
    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
  •