Heya there!
Im trying to learn lua, and I still suck, even a 5 years old girl would be better than me, haha.
Anyway, could you Please fix these?
EDIT: I need help with 1 script only, the problem is.. I think I get storage value, but I can use it unlimited times even, but I should not be able to, only 1 time
Rep ++ for the one who fix this :*
sincerely,
Furstwin.
Im trying to learn lua, and I still suck, even a 5 years old girl would be better than me, haha.
Anyway, could you Please fix these?
EDIT: I need help with 1 script only, the problem is.. I think I get storage value, but I can use it unlimited times even, but I should not be able to, only 1 time
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 6087 and getPlayerStorageValue(cid,6087) == -1 then
setPlayerStorageValue(cid, 6087)
doCreatureSay(cid, "You have learned the first verse of hymn", 19)
doRemoveItem(item.uid,1)
else
doCreatureSay(cid,"You have already learned this verse of hymn.",19)
end
return TRUE
end
sincerely,
Furstwin.
Last edited: