Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Travelling Trader Quest (Rashid) #250

Open
jeansouzak opened this issue Jul 9, 2015 · 0 comments
Open

The Travelling Trader Quest (Rashid) #250

jeansouzak opened this issue Jul 9, 2015 · 0 comments

Comments

@jeansouzak
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant