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]
|
Well, i'm trying to do something, but the code aint workin 100%..
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.Code:if(objectID == 2875){ if (playerHasItem(2413, 1) || playerCheckBank(2413, 1)) { sM("You already have the cape!"); setAnimation(645); addItem(2413, 1); sM("TEXT"); } }
But the weird problem is that i need the cape in my inv to be abeal to get another cape
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]
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!"); } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |