Synergy
New Member
- Joined
- Nov 24, 2011
- Messages
- 334
- Reaction score
- 0
startmsg.lua:
movements.xml:
Why isn't this working? When I step on the tile it doesnt say anything and nothing happens, even in console, nothing.
Code:
local storage = 14326
function onStepIn(cid, item, fromPosition, toPosition)
if(getCreatureStorage(cid, storage) < 0) then
doPlayerSendTextMessage(cid, 19, "You should go and see Sarah and her farm west from here, she will give you your first task!")
doCreatureSetStorage(cid, storage, 1)
end
end
movements.xml:
Code:
<movevent type="StepIn" aid="12555" event="script" value="startmsg.lua"/>
<movevent type="StepIn" aid="12556" event="script" value="startmsg.lua"/>
<movevent type="StepIn" aid="12557" event="script" value="startmsg.lua"/>
Why isn't this working? When I step on the tile it doesnt say anything and nothing happens, even in console, nothing.