muphet
New Member
- Joined
- Apr 27, 2008
- Messages
- 233
- Reaction score
- 2
Hi. I have next problem. This is my code:
But this one not workin'. If someone step on tile, nothing happens.. (btw, there are no tp function. that will be added when script show text :<)
Lua:
function onStepIn(cid, item, pos)
local storage = getPlayerStorageValue(uid, 65001)
if isPlayer(cid) then
if(item.uniqueid = 19701) and storage = 0 then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, 'Sorry, you cant pass this gate. You must be on quest: Dragon Empire.')
elseif (item.uid = 19701) and getPlayerStorageValue(uid, 65001) = 1 then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, 'Dragon Empire quest started...')
end
end
return true
end
But this one not workin'. If someone step on tile, nothing happens.. (btw, there are no tp function. that will be added when script show text :<)