Friends I have a problem in the postman quest, like when a player passes the floor without even being in the quest, a message to him "You visited Carlin. Now head to Edron." I would like the script to work only for those who are doing the quest
Script
Script
local travel = {
[9840] = {1, "You visited Carlin. Now head to Edron."},
[9842] = {2, "You visited Edron. Now head to Venore."},
[9843] = {3, "You visited Venore. Now head to Cormaya."},
[9844] = {4, "You visited Cormaya. Now head to the Kevin's Post Office."},
}
function onStepIn(cid, item, position, lastPosition)
if (isPlayer(cid) == false) then
return false
end
if(getPlayerStorageValue(cid, 250 + travel[item.actionid][1]) < 1) then
setPlayerStorageValue(cid, 250 + travel[item.actionid][1], 1)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, travel[item.actionid][2])
end
return true
end