summaryrefslogtreecommitdiff
path: root/npc/024-5/rychell.txt
blob: ac6ba5670309e68b619bb9b8f8533b17aa743dd3 (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 scripts.
// Authors:
//    Jesusalva
// Description:
//    Random shops

024-5,33,23,0	script	Rychell	NPC_ELF,{
    npcshopattach(.name$);
    shop .name$;
    close;

OnInit:
    .@npcId = getnpcid(.name$);
    setunitdata(.@npcId, UDT_HEADTOP, NPCEyes);
    setunitdata(.@npcId, UDT_HEADMIDDLE, any(Chainmail, LightPlatemail, CopperArmor, AssassinChest));
    setunitdata(.@npcId, UDT_HEADBOTTOM, any(RaidTrousers, LeatherTrousers, JeansChaps, BromenalPants, AssassinPants, ChainmailSkirt));
    setunitdata(.@npcId, UDT_WEAPON, BlueKnightShield);
    setunitdata(.@npcId, UDT_HAIRSTYLE, rand2(5,15));
    setunitdata(.@npcId, UDT_HAIRCOLOR, rand2(2,10));

    .sex = G_MALE;
    .distance = 4;
    sleep(SHOPWAIT);
    tradertype(NST_MARKET);

    sellitem BritShield, -1, 1;
    sellitem Chainmail, -1, 1;
    //sellitem CopperArmor, -1, 1;
    sellitem SilkPants, -1, 1;
    sellitem ChainmailSkirt, -1, 1;
    sellitem BromenalGloves, -1, 1;
    sellitem BromenalHelmet, -1, 1;
    end;

OnClock1251:
OnClock0113:
    restoreshopitem BritShield, 1;
    restoreshopitem Chainmail, 1;
    //restoreshopitem CopperArmor, 1;
    restoreshopitem SilkPants, 1;
    restoreshopitem ChainmailSkirt, 1;
    restoreshopitem BromenalGloves, 1;
    restoreshopitem BromenalHelmet, 1;
    end;

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

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