summaryrefslogblamecommitdiff
path: root/npc/003-10/guarddevoir.txt
blob: ae7c966ad00f6b3c850e703a82ef3d5fa96a8266 (plain) (tree)
1
2
3
4
5
6
7
8
9




               
                                                                                                                      


                             
                                                                 

         
                                                                                                                



                                     
         
                                                                                               

           
                                                                              
                                            




                                    
                                                                         

                                  
                                                     
                                                                   




                                                                                                                  


           
                                                                                                                        
         
                                                                                                                                                                                            

           
                                                                                
                                      
                          

         
                                                                         
         
                                                                      

           
                                                                                


                                      


                                   
                                          
                                                          
                                             

           
                                                                                                  

          


                                  
                                        
                                                        
                                             

           
                                                                                                  



           
                                           
         
                                                                                                         







                        




                    
 
// TMW2 Script
// Author:
//  Jesusalva
//  Saulc
// Description:
//      Guard ask you to clean the cave of red scorpion. bring her some red scorpion stingers to prove you do it well.
// Variable:
//      TulimsharQuest_Devoir

003-10,38,60,0	script	Guard Devoir	NPC_TONORI_GUARD_FEMALE,{

    mesn;
    mesq l("That's terrible! Monsters are piling up near the city gates! We need to stop them from advancing!");
    if (BaseLevel >= 25) goto L_Menu;
    close;

L_Menu:
    mesn;
    mesq l("Would you like to help us to protect the town from the red scorpion infestation?");
    mes "";
    menu
        l("Yeah, sure! I'm as brave as Simon."),L_Quest, // famous player name
        l("Where can I find them?"),L_Where,
        l("No, thanks."),L_Close;

L_Quest:
    mes "";
    .@q=getq(TulimsharQuest_Devoir);
    mesq l("Amazing! I want you to kill some red scorpions, as I said!");
    next;
    if (.@q == 0) goto L_Continue;
    .@q2=getq2(TulimsharQuest_Devoir) + 60 * 60 * 36;
    if (santime() >= .@q2) goto L_Repeat; // Repeats every 36 hours
    mesn;
    mesq l("But, it wouldn't look nice if I let you do all the killing! The other guards are working right now!");
    next;
    mesn;
    mesq l("Come back in a few hours, and we can fix that!");
    close;

L_Continue:
    mesq l("Red Scorpions breed as fast as Rattos! They are multiplying fast and soon they will outnumber us greatly.");
    next;
    mesq l("I usually ask for just 7, but to prove you are going to help us in this purge, I will ask you for 14 %s! I will reward you for your bravery.", getitemlink(RedScorpionStinger));
    mes "";
    menu
        rif(countitem(RedScorpionStinger) >= 14, l("Here they are!")), L_Finish,
        l("I'll get to it."), L_Close;
    close; // double check

L_Repeat:
    mesq l("How is the extermination going? I hope you are successful!");
    next;
    mesq l("Did you bring me 7 @@?", getitemlink(RedScorpionStinger));
    mes "";
    menu
        rif(countitem(RedScorpionStinger) >= 7, l("Here they are!")), L_Finish2,
        l("I'll get to it."), L_Close;
    close;

// First Time Only
L_Finish:
    delitem RedScorpionStinger, 14;
    getexp 2203, 11; // r7.5 1703 → 2203
    Zeny = (Zeny + 1960); // 70*14 = 980 base (100% bonus)
    setq TulimsharQuest_Devoir, 1, santime();
    mes "";
    mesn;
    mesq l("Many thanks! Come back later to bring me extra %s!", getitemlink(RedScorpionStinger));
    close;

// Repeat
L_Finish2:
    delitem RedScorpionStinger, 7;
    getexp 1193, 0; // r7.5 993 → 1193
    Zeny = (Zeny + 980); // 70*7 = 490 base (100% bonus)
    setq TulimsharQuest_Devoir, 1, santime();
    mes "";
    mesn;
    mesq l("Many thanks! Come back later to bring me extra %s!", getitemlink(RedScorpionStinger));
    close;

L_Where:
    mes "";
    mesq l("There are lots in the mines.");
    next;
    mes l("Take care though, don't attack them when there are multiple of them, since they will swarm!");
    next;
    mes l("Good luck.");
    goto L_Close;

L_Close:
    closedialog;
    goodbye;
    close;

OnInit:
    .sex = G_FEMALE;
    .distance = 5;
    end;
}