• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Erro Script Postman Quest

rodrilois

New Member
Joined
Jun 9, 2009
Messages
94
Reaction score
1
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

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
 
That script is wrong anyway. It's supposed to update the storage when you travel from one place to another via a specific npc. Just remove that script and edit the appropriate travel npcs.
 
Back
Top