orts / server

A real map datapack based on TFS 1.2 engine
98 stars 62 forks source link

The Travelling Trader Quest (Rashid) #250

Open jeansouzak opened 9 years ago

jeansouzak commented 9 years ago

Second Rashid mission is bugged in door next Npc Snake Eye (Outlaw Camp). This door contain a chest with a package for Rashid its necessary to complete second mission. I solved this below:

data/actions/actions.xml add this: <!--The Travelling Trader Quest--> <!--Position: 32660, 32192, 8 --> <action actionid="1108" script="quests/the travelling trader quest/package_door.lua" />

create the folder "the travelling trader quest/package_door.lua" in data/actions/quests create a script with name "package_door.lua" put below in package_door.lua:

--Third Mission package for Rashid function onUse(player, item, fromPosition, target, toPosition, isHotkey) -- Cannot use opened door if item.itemid == 5133 then return false end

if player:getStorageValue(Storage.TravellingTrader.Mission02) < 1 then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'This door seems to be sealed against unwanted intruders.') return true end local doorItem = Tile(Position(32660, 32192, 8)):getItemById(1223) if doorItem then doorItem:transform(1224) player:teleportTo(toPosition, true) end return true end