summaryrefslogblamecommitdiff
path: root/world/map/npc/021-1/weellos.txt
blob: 9f34e6a56ac78191bd47a0f888eca4f501de4a31 (plain) (tree)
1
2
3
4
5
6
7
8
9
              
                                                
 
                                      
 
                                                   

                            
                                                                     
                                                                            
 
                                                       
 
                    
                                                                                                               
                       


                                                 

                                                           










                                                                         
          
 
// A historian
// takes part in quest given by 021-2/kylian.txt

021-1.gat,130,125,0|script|Weellos|103
{
    set @halloween_npc_id, $@halloween_npc_weellos;
    callfunc "TrickOrTreat";

    set QUEST_NorthTulimshar, QUEST_NorthTulimshar | $@knowWeellosNT;
    set @kylian, ((QUEST_NorthTulimshar & NIBBLE_5_MASK) >> NIBBLE_5_SHIFT);

    if isin("021-1.gat", 130, 120, 140, 125) goto L_In;

    mes "[Weellos]";
    mes "\"This is a very historic building. One of the oldest in the area. It's been turned into a museum.\"";
    goto L_BeforeClose;

// If the player is inside the fence with Weellos
L_In:
    mes "[Weellos]";
    mes "\"What did you think of the historic building?\"";
    goto L_BeforeClose;

L_BeforeClose:
    if (@kylian != 4)
        goto L_Close;
    next;
    mes "You wonder if Kylian would be interested to see this building.";
    goto L_Close;

L_Close:
    set @kylian, 0;
    close;
}