summaryrefslogblamecommitdiff
path: root/npc/003-1/oldwell.txt
blob: 20fd9cab0f3a07f8a29882aea3761ceb0b0af1a6 (plain) (tree)




































                                                                                                 
// 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,47,79,0	script	Old Well	NPC_PLAYER,{


    mes col("You found a free well, It's time to plenty some @@!", 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;
    close;

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


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