function onStepIn(cid, item, fromPosition, toPosition)
if item.uid == 6000 then
if getPlayerLevel(cid) < 10 then
doPlayerSendTutorial(cid, 1)
end
return true
end
end
local config = {
storage = 5000, -- for saving done tutorials in storage
}
function onStepIn(cid, item, fromPosition, toPosition)
if getPlayerStorageValue(cid, item.actionid) == -1 then
doPlayerSendTutorial(cid, item.actionid - config.storage)
setPlayerStorageValue(cid, item.actionid, 1)
end
end
<movevent type="StepIn" fromaid="5000" toaid="5050" event="script" value="tutorials.lua"/>
local config = {
storage = 5000 -- for saving done tutorials in storage
}
function onStepIn(cid, item, fromPosition, toPosition)
if getPlayerStorageValue(cid, item.actionid) == -1 then
doPlayerSendTutorial(cid, item.actionid - config.storage)
setPlayerStorageValue(cid, item.actionid, 1)
end
end