summaryrefslogblamecommitdiff
path: root/npc/007-1/caelum.txt
blob: 3773ec3327200516572f93a0141de10da35f5285 (plain) (tree)
1
2
3
4
5
6
7
8
9

              

                 


               
                                                                   
                            
 
                                            

                                       


























                                                                                                                                                                 
                              


                                  
                
 
       




                       
       

           



                                                                                         
                                                                

                                                                        
                                                                                                             







                                                         
                                             



                         

                                               
                                               
                                               
                                               

                                               
                       


                                  
                            
                                     
                                   
                         
                             

                             

                            

                               




























                                                                                           
                
 




                                                    













                                                        
// TMW2 Script
// Author:
//      SkyDragon
//      Saulc
// Reviewer:
//    Jesusalva
// Description:
//    Caelum Miner, main author Skydragon Caelum mean Sky in Latin.
// id:193  MineQuests_Caelum

007-1,138,49,0	script	Caelum	NPC_PLAYER,{
    .@Miner = getq(MineQuests_Caelum);
    if (BaseLevel < 28) goto L_TooWeak;
    if (.@Miner == 1) goto L_Check;
    if (.@Miner == 2) goto L_Complete;

L_GiveTask:
    mesn;
    mesq lg("Hello, wanderer!");
    next;
    mesq l("How did you end up here?");
    next;

    menu
        l("To be honest, I don't know. I was only walking, seeking for adventure!"), L_Quest,
        l("It's none of your business."), L_Quit;


L_Quest:
    mes "";
    mesn;
    mesq l("You perchance said in adventure? Then you've came to the right place! I can ask you for some stuff, and in exchange, I'll give some useful gloves!");
    next;

    menu
        l("Really? What do you need?"), L_Start,
        l("Better do this some other time..."), L_Quit;


L_Start:
    setq MineQuests_Caelum, 1;
    mes "";
    mesn;
    mesq l("Ok, what I need is:");
    goto L_List;

L_Quit:
    mes "";
    mesn;
    mesq l("Alright.");
    close;

L_List:
    mes "";
    mesn;
    mes l("Here's what I need:");
    mes l("@@/1 @@", countitem(CottonCloth), getitemlink(CottonCloth));
    mes l("@@/2 @@", countitem(BlackScorpionStinger), getitemlink(BlackScorpionStinger));
    mes l("@@/8 @@", countitem(RedScorpionStinger), getitemlink(RedScorpionStinger));
    mes l("@@/10 @@", countitem(BatWing), getitemlink(BatWing));
    mes l("@@/10 @@", countitem(CactusDrink), getitemlink(CactusDrink));
    mes l("@@/20 @@", countitem(MaggotSlime), getitemlink(MaggotSlime));
    mes l("@@/5 @@, just because I'm hungry as a bear.", countitem(ScorpionClaw), getitemlink(ScorpionClaw));
    close;

L_Check:
    mesn;
    mesq l("Did you brought me everything I asked for?");
    next;
    menu
        l("Yes!"), L_Give,
        l("I forgot what you need!"), L_List,
        l("No!"), L_Quit;

L_Give:
    if (
        countitem(CottonCloth)          < 1  ||
        countitem(BlackScorpionStinger) < 2  ||
        countitem(RedScorpionStinger)   < 8  ||
        countitem(BatWing)              < 10 ||
        countitem(CactusDrink)          < 10 ||
        countitem(MaggotSlime)          < 20 ||
        countitem(ScorpionClaw)         < 5
        ) goto L_Lying;

    inventoryplace MinerGloves, 1;

    delitem(CottonCloth, 1);
    delitem(BlackScorpionStinger, 2);
    delitem(RedScorpionStinger, 8);
    delitem(BatWing, 10);
    delitem(CactusDrink, 10);
    delitem(MaggotSlime, 20);
    delitem(ScorpionClaw, 5);

    getitem(MinerGloves, 1);
    getexp(855, 3);
    setq(MineQuests_Caelum, 2);

    mes "";
    mesn;
    mesq l("Here, all yours. Thank you.");
    close;

L_Complete:
    mesn;
    mesq l("Wandering too much? Take care to don't get lost.");
    close;

// Funnier to write than to read, but the player lied. :angel:
L_Lying:
    mesn;
    mesq l("No no no, that's wrong.");
    next;
    mes col("The miner goes to count your stuff again.", 9);
    next;
    mes col("And again.", 9);
    next;
    mes col("And again, and again.", 9);
    next;
    mes col("And again, and again, again.", 9);
    next;
    mes col("You wonder, maybe he entered on an infinite loop? Hellooo, anybody home?", 9);
    next;
    mesn;
    mesq l("No no no, you don't have everything I've asked for!");
    next;
    goto L_List;

L_TooWeak:
    mesn;
    mesq l("Wanderer, here is dangerous! Go back!");
    close;

OnInit:
    .@npcId = getnpcid(0, .name$);
    setunitdata(.@npcId, UDT_HEADTOP, MinerHat);
    setunitdata(.@npcId, UDT_HEADMIDDLE, LeatherShirt);
    setunitdata(.@npcId, UDT_HEADBOTTOM, BromenalPants);
    setunitdata(.@npcId, UDT_WEAPON, DeepBlackBoots);
    setunitdata(.@npcId, UDT_HAIRSTYLE, 4);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 3);

    .sex = G_MALE;
    .distance = 4;

    end;
}