• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

(Help) Check Item, Remove Item, Then Functions(Wont Work)

BlackList

PassingWrath.us
Joined
Aug 30, 2007
Messages
133
Reaction score
26
It wont work at all, idk what is the issue with it :/

Basically i want it to check for itemid, see if there is 15, then remove 15 then summon and ect.

But here you go:
Code:
    if getPlayerItemCount(cid,2160) == 15 then
       doRemoveItem(2160, 15)
       doCreateMonster("Ulim Ghost", {x = 281, y = 252, z = 6})
       doPlayerSendTextMessage(cid, 21, "You have raided a Ulim Ghost!")
       setPlayerStorageValue(cid, 54876, os.time()+5*60)
    else
       doPlayerSendTextMessage(cid, 21, "You need 15 points to raid!")
    end
end
return true
end

Any help would be appreciated!
 
If you trying this with 16 or more it won't work, the script is looking for ONLY 15, i think you need to use this:

Lua:
if getPlayerItemCount(cid,2160) >= 15 then

You have just forgot to add the function at the top right? As its missing too :?
 
sl5uts.png
 
Back
Top