diff options
Diffstat (limited to 'npc/015-8-1/campaign.txt')
-rw-r--r-- | npc/015-8-1/campaign.txt | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/npc/015-8-1/campaign.txt b/npc/015-8-1/campaign.txt index fa3e97b9a..96a943782 100644 --- a/npc/015-8-1/campaign.txt +++ b/npc/015-8-1/campaign.txt @@ -16,6 +16,10 @@ OnBegin: .@m$=getmap(); .@in=getq2(HurnscaldQuest_Sagratha); + //debugmes "Initialized - Inst ID %d", .@in; + //debugmes "Map %s.gat - NPC Name %s", .@m$, .name$; + //debugmes "NPC UUID %s (%s)", instance_npcname(.name$), instance_npcname(.name$, .@in); + setq3 HurnscaldQuest_Sagratha, 1; // We're in an instance, ofc. Here we still have player attached. //npctalk3 l("Open your eyes!"); @@ -28,10 +32,10 @@ OnBegin: monster .@m$, 49, 45, "Real Monster", RedSlime, 1; // max AI id 4. You are in 49,39 - monster .@m$, 49, 41, "AI Tx", RedSlime, 1, instance_npcname(.name$, .@in)+"::OnError", Size_Medium, 2; - monster .@m$, 51, 41, "AI Xt", RedSlime, 1, instance_npcname(.name$, .@in)+"::OnError", Size_Medium, 2; + monster .@m$, 49, 41, "AI Tx", RedSlime, 1, instance_npcname(.name$)+"::OnError", Size_Medium, 2; + monster .@m$, 51, 41, "AI Xt", RedSlime, 1, instance_npcname(.name$)+"::OnError", Size_Medium, 2; - addtimer(5000, instance_npcname(.name$, .@in)+"::OnError"); + addtimer(5000, instance_npcname(.name$)+"::OnError"); end; // Assassin, HoodedNinja, HoodedAssassin (boss) @@ -52,13 +56,21 @@ OnInit: // Dummy NPC to fire #SaggyDungeonCore when you get close to battle scene 015-8-1,49,39,0 script #SaggyDungeonFire NPC_HIDDEN,1,0,{ end; + OnTouch: if (instance_id() < 0) end; - if (!getq3(HurnscaldQuest_Sagratha)) - doevent "#SaggyDungeonCore::OnBegin"; + if (!getq3(HurnscaldQuest_Sagratha)) { + .@in=getq2(HurnscaldQuest_Sagratha); + doevent(instance_npcname("#SaggyDungeonCore", .@in)+"::OnBegin"); + } + end; + +OnInit: + .distance=0; end; + } |