Sir Bananas
Lua Scripter, Spriter
So i have a really simple OnUse .lua script
I used to script on a sewer grate, i set the Action ID and everything, but then when i use the sewer grate, i go down of course, but the script, nothing happens.
Does anyone know whats wrong?
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, 40001) == 0 then
doPlayerSendTextMessage(cid,25,"You've entered the sewers, now you must find the statues Terence told you about.")
doPlayerSetStorageValue(cid, 40001, 1)
else
doPlayerSendTextMessage(cid,25,"Its working!")
end
return TRUE
end
I used to script on a sewer grate, i set the Action ID and everything, but then when i use the sewer grate, i go down of course, but the script, nothing happens.
Does anyone know whats wrong?