• 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!

Lua OnUse Sewer Grate

Sir Bananas

Lua Scripter, Spriter
Joined
Jul 19, 2011
Messages
344
Reaction score
29
Location
Brazil
So i have a really simple OnUse .lua script

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?
 
Back
Top