summaryrefslogtreecommitdiff
path: root/npc/020-7-2/connor.txt
blob: 18dce7d2cd042e1ec237af8b39c0f69ad8b9e8a8 (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
// TMW2 scripts.
// Authors:
//    Jesusalva
//    TMW LoF (Paxel)
// Description:
//    Makes Raw Coal to fool the Blue Sage

020-7-2,72,23,0	script	Connor	NPC_LOF_FURNACE,{
    .@l=CONNOR_LASTDAY;
    .@t=gettimeparam(GETTIME_DAYOFMONTH);
    mesn;
    mesq l("Meh, the Blue Sage is truly extravagant. We take @@ for the simplest things as keeping the house warm.", getitemlink(Coal));
    next;
    mesn;
    mesq l("But @@ is too valorous, you can only forge with it! So it sells well, about @@ GP.", getitemlink(Coal), getiteminfo(Coal, ITEMINFO_SELLPRICE));
    if (.@t == .@l)
        close;
    next;
    mesn;
    mesq l("Well, I could burn @@ @@ to make Raw Coal and the Blue Sage would be none the wiser.", 15, getitemlink(RawLog));
    next;
    mesn;
    mesq l("I can even share with you @@ @@, whaddaya say?", l("a couple of"), getitemlink(Coal)); // ie. whaddaya say -> what do you say
    if (countitem(RawLog) < 15)
        close;
    if (askyesno() == ASK_YES) {
        inventoryplace Coal, 2;
        delitem RawLog, 15;
        getitem Coal, 2;
        CONNOR_LASTDAY=.@t;
        getexp getiteminfo(Coal, ITEMINFO_SELLPRICE)+BaseLevel+JobLevel, 15;
        mes "";
        mesn;
        mesq l("Thanks, pal. See you tomorrow.");
    }
    close;

OnInit:
    .sex=G_MALE;
    .distance=5;
    end;
}