This repository has been archived by the owner on Dec 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/trust' into canary
# Conflicts: # src/map/navmesh.cpp
- Loading branch information
Showing
31 changed files
with
412 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
----------------------------------- | ||
-- Area: Davoi | ||
-- NM: Hematic Cyst | ||
-- Involved in Quest: Tea with a Tonberry? | ||
----------------------------------- | ||
|
||
function onMobDeath(mob, player, isKiller) | ||
player:setCharVar("TEA_WITH_A_TONBERRY_PROG", 4) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
----------------------------------- | ||
-- Area: Davoi | ||
-- NPC: ??? (qm2) | ||
-- Involved in Quest: Tea with a Tonberry | ||
-- !pos 189.201 1.2553 -383.921 149 | ||
----------------------------------- | ||
require("scripts/globals/npc_util") | ||
local ID = require("scripts/zones/Davoi/IDs") | ||
----------------------------------- | ||
|
||
function onTrade(player, npc, trade) | ||
if player:getCharVar('TEA_WITH_A_TONBERRY_PROG') == 3 then | ||
if npcUtil.tradeHas(trade, 1682) and not GetMobByID(ID.mob.HEMATIC_CYST):isSpawned() then | ||
-- Treasury Gold spawns Hematic Cyst | ||
SpawnMob(ID.mob.HEMATIC_CYST):updateClaim(player) | ||
player:confirmTrade() | ||
player:messageText(npc, ID.text.UNDER_ATTACK, false) | ||
end | ||
end | ||
end | ||
|
||
function onTrigger(player, npc) | ||
local teaProg = player:getCharVar('TEA_WITH_A_TONBERRY_PROG') | ||
|
||
if teaProg == 3 then | ||
player:messageSpecial(7920, 0, 1682) | ||
elseif teaProg == 4 then | ||
player:startEvent(126, 149, 1682) | ||
elseif teaProg == 5 then | ||
player:messageText(npc, ID.text.NOTHING_TO_DO, false) | ||
else | ||
player:messageSpecial(ID.text.NOTHING_OUT_OF_ORDINARY) | ||
end | ||
end | ||
|
||
function onEventUpdate(player, csid, option) | ||
end | ||
|
||
function onEventFinish(player, csid, option) | ||
if csid == 126 then | ||
player:setCharVar('TEA_WITH_A_TONBERRY_PROG', 5) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.