Angel Of Death
Rise Of Tibia ServerOwner
- Joined
- Mar 12, 2012
- Messages
- 91
- Reaction score
- 0
LUA:
elseif(msgcontains(msg, "Skill")) then
if(getPlayerStorageValue(cid, 60010) < 0) then
if doPlayerRemoveMoney(cid, 5000) == true then
setPlayerStorageValue(cid, 60010, 1)
npcHandler:say("This {Skill} is a very high quality item. Use it wisely.", cid, 1000)
else
npcHandler:say("You don't have enught money to learn this {Skill}.", cid, 1000)
end
end
i want it to check player storage to see of it = 0 before setting the player storage to 1
i dont think i can have 2 if statements in one line and if so i don't know how
so simply i want it to check storage then check for money and if both come back true i want it to take the money and then set player storage