summaryrefslogtreecommitdiff
path: root/npc/001-5/worker.txt
blob: b94e2f6c9f519dd937f1ecc69c0d4be4f3098764 (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
55
56
57
// TMW2 Script
// Author: Jesusalva
// Workers from Worker Day

001-5,23,73,0	script	Soren	NPC_CONSTR_WORKER,{
    mesn;
    mesq l("You can get @@ anywhere, although here is a little easier to get.", getitemlink(Pearl));
    next;
    mesn;
    mesq l("You can trade them for quite nice items with my friend over there.");
    close;
}

001-5,75,69,0	script	Simon	NPC_CONSTR_WORKER,{
    mesn;
    mesq l("Hey dude. During this event you can trade one @@ for more... useful items.", getitemlink(Pearl));
    if (countitem(Pearl) == 0)
        close;
    next;
    select(
        l("5x Strange Coins"),
        l("2x Snake Egg"),
        l("1x Bronze Gift"),
        l("800 GP"),
        rif(countitem(Pearl) >= 2, l("Trade 2 Pearl for a Silver Gift")),
        l("Nothing right now.")
    );
    switch (@menu) {
        case 1:
            delitem Pearl, 1;
            getitem StrangeCoin, 5;
            break;
        case 2:
            delitem Pearl, 1;
            getitem SnakeEgg, 2;
            break;
        case 3:
            delitem Pearl, 1;
            getitem BronzeGift, 1;
            break;
        case 4:
            delitem Pearl, 1;
            Zeny=Zeny+800;
            break;
        case 5:
            delitem Pearl, 2;
            getitem SilverGift, 1;
            break;

    }

    close;


}