summaryrefslogtreecommitdiff
path: root/npc/006-2-1/server.txt
blob: 8f0d04c6205a10bcb31c0944d5b33630915fbedc (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
46
47
48
49
50
51
52
53
54
// TMW2 Script.
// Author:
//    Jesusalva
// Modified by:
//	  +seeds

006-2-1,41,74,0	script	Server	NPC_PIOU_SERVER,{

    mesn;
    mesq l("Hello! Would you like to try some piou delicacies?");
    next;
    closedialog;
    npcshopattach(.name$);
    shop .name$;
    close;

OnInit:

    .sex = G_OTHER;
    .distance = 5;

    tradertype(NST_MARKET);
    sellitem Piberries, 20, 20;
    sellitem Aquada, 120, 5;
    sellitem LettuceLeaf, 30, 15;
    sellitem Bread, 46, 10;
    sellitem Cheese, 55, 15;

    end;

OnClock0556:
OnClock1201:
OnClock1759:
OnClock0003:
    restoreshopitem Piberries, 20, 20;
    restoreshopitem Aquada, 120, 5;
    restoreshopitem LettuceLeaf, 30, 15;
    restoreshopitem Bread, 46, 10;
    restoreshopitem Cheese, 55, 15;
    end;


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

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

}