<movevent type="StepIn" itemid="0000" event="script" value="script.lua"/>
local action = 12345
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition)
if not isPlayer(cid) or isPlayerGhost(cid) then
return true
end
if item.actionid == action then
doPlayerSendOutfitWindow(cid)
end
return true
end
<movevent type="StepIn" fromid="36663" toid="14874" event="script" value="doout.lua"/>
<movevent type="StepOut" fromid="36663" toid="14874" event="script" value="doout.lua"/>
function onStepIn(cid, position, fromPosition)
doPlayerSendOutfitWindow(cid)
end
function onStepOut(cid, position, fromPosition)
doPlayerSendOutfitWindow(cid)
end
Which TFS?
Tfs 0.4
function onStepIn(cid, item, position, fromPosition)
if(item.actionid > xxx and item.actionid < xxx) then
doPlayerSendOutfitWindow(cid)
end
return true
end
function onStepIn(cid, item, position, fromPosition)
ifitem.actionid == xxxx then
doPlayerSendOutfitWindow(cid)
end
return true
end
<movevent type="StepIn" itemid="0000" event="script" value="script.lua"/>
local action = 12345
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition)
if not isPlayer(cid) or isPlayerGhost(cid) then
return true
end
if item.actionid == action then
doPlayerSendOutfitWindow(cid)
end
return true
end
try this
LUA:function onStepIn(cid, item, position, fromPosition) if(item.actionid > xxx and item.actionid < xxx) then doPlayerSendOutfitWindow(cid) end return true end
also you can try this
LUA:function onStepIn(cid, item, position, fromPosition) ifitem.actionid == xxxx then doPlayerSendOutfitWindow(cid) end return true end
Remember to change the item ID (below) and give the tile an action ID (in map editor):
movements.xml
Code:<movevent type="StepIn" itemid="0000" event="script" value="script.lua"/>
script.lua
LUA:local action = 12345 function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition) if not isPlayer(cid) or isPlayerGhost(cid) then return true end if item.actionid == action then doPlayerSendOutfitWindow(cid) end return true end