sharpy
New Member
- Joined
- Jan 4, 2010
- Messages
- 77
- Reaction score
- 0
Im trying to make a tile with an action id that when you step on it a book like message pops up on the players screen here is the code ive got it returns no errors in the server but does nothing when you step on it
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if onStepIn(cid, {getPlayerLevel(cid)}) then
if getPlayerLevel(cid) == 1 then
doPlayerPopupFYI(cid, "You venture onto a wierd town with a lever that somehow spawns rats.")
end
end
return 1
end