|
3 | 3 | -- NPC: Cha Lebagta |
4 | 4 | -- Type: Standard NPC |
5 | 5 | -- !pos 58.385 -6.249 216.670 241 |
6 | | --- Involved in Quests: As Thick as Thieves, Mihgo's Amigo |
| 6 | +-- Involved in Quests: As Thick as Thieves, Mihgo's Amigo |
| 7 | +----------------------------------- |
| 8 | +require("scripts/globals/quests") |
7 | 9 | ----------------------------------- |
8 | 10 |
|
9 | 11 | function onTrade(player, npc, trade) |
10 | 12 | end |
11 | 13 |
|
12 | 14 | function onTrigger(player, npc) |
13 | | - local MihgosAmigo = player:getQuestStatus(WINDURST, tpz.quest.id.windurst.MIHGO_S_AMIGO) |
14 | | - local thickAsThieves = player:getQuestStatus(WINDURST, tpz.quest.id.windurst.AS_THICK_AS_THIEVES) |
15 | | - local thickAsThievesCS = player:getCharVar("thickAsThievesCS") |
16 | | - |
17 | | - -- As Thick As Thieves (THF AF) |
18 | | - if thickAsThieves == QUEST_ACCEPTED then |
19 | | - player:startEvent(507, 0, 17474) |
20 | | - if thickAsThievesCS == 1 then |
21 | | - player:setCharVar("thickAsThievesCS", 3) |
22 | | - elseif thickAsThievesCS == 2 then |
23 | | - player:setCharVar("thickAsThievesCS", 4) |
24 | | - local rand1 = math.random(2, 7) |
25 | | - player:setCharVar("thickAsThievesGrapplingCS", rand1) |
26 | | - player:setCharVar("thickAsThievesGamblingCS", 1) |
27 | | - end |
28 | | - |
29 | | - -- Mihgo's Amigo |
30 | | - elseif MihgosAmigo == QUEST_ACCEPTED then |
31 | | - player:startEvent(85, 0, 498) -- hint dialog |
| 15 | + local mihgosAmigo = player:getQuestStatus(WINDURST, tpz.quest.id.windurst.MIHGO_S_AMIGO) |
32 | 16 |
|
33 | | - -- standard dialog |
34 | | - elseif MihgosAmigo == QUEST_COMPLETED then |
35 | | - player:startEvent(91, 0, 498) -- new standard dialog after Mihgo's Amigo |
| 17 | + if player:getQuestStatus(WINDURST, tpz.quest.id.windurst.AS_THICK_AS_THIEVES) == QUEST_ACCEPTED then |
| 18 | + player:startEvent(507, 0, 17474) -- Grappling hint |
| 19 | + elseif mihgosAmigo == QUEST_ACCEPTED then |
| 20 | + player:startEvent(85, 0, 498) -- Migho's Amigo hint dialog |
| 21 | + elseif mihgosAmigo == QUEST_COMPLETED then |
| 22 | + player:startEvent(91, 0, 498) -- New standard dialog after Mihgo's Amigo completion |
36 | 23 | else |
37 | | - player:startEvent(78) -- normal dialog |
| 24 | + player:startEvent(78) -- Standard dialog |
38 | 25 | end |
39 | 26 | end |
40 | 27 |
|
|
0 commit comments