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






                                                                                    
                                                       
 
                                                                                                                          



                     
                                     





                                               
                                 
                                          
                                                                      


                   
                                                             








                   
// TMW-2 Script
// Author:
//    Saulc
//    Jesusalva
// Description:
//    Free well that give sewer water. a good place for tulim kids to miss school :b

003-1,53,144,0	script	Old Well#003-1	NPC_NO_SPRITE,{

    mes col(l("You found an old well with a bucket on it! It's time to fill plenty of @@!", getitemlink(EmptyBottle)), 9);
    input .@count;

    if (.@count == 0)
        close;
    .@empty = countitem(EmptyBottle);

    if (.@empty < .@count)
        goto L_NotEnoughBottles;
    getinventorylist;
    inventoryplace BottleOfSewerWater, .@count;

    delitem EmptyBottle, .@count;
    getitem "BottleOfSewerWater", .@count;
    dispbottom("Eek, Sewer Water! What the?! Better not drink this!");
    close;

L_NotEnoughBottles:
    mes col(l("You don't have that many empty bottles!"), 9);
    close;


OnInit:
    .sex = G_OTHER;
    .distance = 3;
    end;
}