summaryrefslogblamecommitdiff
path: root/npc/015-8-1/campaign.txt
blob: 152da954f9e012a703bbcc9a0ee6f3fe92312714 (plain) (tree)
1
2
3
4
5
6
7



                
                              
 
                                                               







                                      

                  

                                                                     







                                                                                   

        
                                               
                                                  
 
        
                     
                    




                                                                         
                                                                







                                             
 
 
 
// TMW2 scripts.
// Authors:
//    Jesusalva
// Description:
//    Sagratha Quest (field 3)

015-8-1,49,38,0	script	#SaggyDungeonCore	NPC_NO_SPRITE,{
    // Not in instance, we don't care.
    if (instance_id() < 0)
        end;

    end;

// There is no instance init
OnBegin:
    .@m$=getmap();

    setq3 HurnscaldQuest_Sagratha, 1;
    // We're in an instance, ofc. Here we still have player attached.
    npctalk3 l("Open your eyes!");

    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, .name$+"::OnError", Size_Medium, 2;
    monster .@m$, 51, 41, "AI Xt", RedSlime, 1, .name$+"::OnError", Size_Medium, 2;

    addtimer(5000, "#SaggyDungeonCore::OnError");
    end;

// Assassin, HoodedNinja, HoodedAssassin (boss)
// Mouboo, ForestMushroom, Fluffy, Sagratha (boss)

OnError:
    debugmes "Error";
    npctalk "Error";
    end;

}

// 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";
    end;
}