read it, it's saying if player has a santa hat, they can search and get another
|
fixed
read it, it's saying if player has a santa hat, they can search and get another
today i can't waven solve the easyest thing i don't know what's wrong with me..
So with code i was thinking if player has santa hat in inventory it sends error but if player doesnt give santa..
How does it not work? Tell us what your problem is.
removed
Code:case 365:// sack if (!c.getItems().playerHasItem(1050,1) && c.getItems().freeSlots() >= 1) { c.sendMessage("After while searching you finded santa hat inside of them!"); c.getItems().addItem(1050, 1); } else { c.sendMessage("You already have santa in your bag"); } break;
Try this :Code:case 365: if (c.getItems().freeSlots() >= 1) { if (!c.getItems().playerHasItem(14084)) { c.getItems().addItem(14084, 1); } else { c.sendMessage("You already have wrapped candy in your bag"); return; } } else { c.sendMessage("You don't have enough space in your inventory!"); return; } break;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |