summaryrefslogtreecommitdiff
path: root/npc/024-9/barkeeper.txt
blob: 3bfe518a9012de61423792895397f1c2426cd58a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// TMW-2 Script
// Author:
//    Jesusalva
// Description:
//    Sells beer

// Temporary Sprite
024-9,39,31,0	script	Bar Jobs	NPC_DWARF_TRADER,{
    hello;
    npcshopattach(.name$);
    shop .name$;
    close;

OnInit:
    tradertype(NST_MARKET);

    sellitem DwarvenSake, 1100, 5;
    sellitem Beer, 300, 20;
    if ($ARKIM_ST >= 4000)
        sellitem ClothoLiquor, -1, (($ARKIM_ST-4000)/500)+1;

    .sex = G_MALE;
    .distance = 5;
    end;

OnClock2358:
    restoreshopitem DwarvenSake, 1100, 5;
    restoreshopitem Beer, 300, 20;
    if ($ARKIM_ST >= 4000)
        restoreshopitem ClothoLiquor, (($ARKIM_ST-4000)/500)+1;
    end;

// Pay your taxes!
OnBuyItem:
    debugmes("Purchase confirmed");
    PurchaseTaxes();
    end;

OnSellItem:
    debugmes("Sale confirmed");
    SaleTaxes();
    end;

}