summaryrefslogtreecommitdiff
path: root/npc/018-2-4/lv3.txt
blob: e0927ce61201f0f2b7d71ba5e3d25c1df12a7c0f (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
58
59
60
// TMW2/LoF scripts.
// Authors:
//    TMW-LoF Team
//    Jesusalva
// Description:
//    Heroes Hold Exchanger - Level 3

018-2-4,47,28,0	script	Master Exchanger#0	NPC_M_COINKEEPER,{
    .@q=getq2(LoFQuest_HH);
    if (.@q & HH_ADVANCED)
        openshop;
    goodbye;
    closedialog;
    close;

OnInit:
    .@npcId = getnpcid(.name$);
    setunitdata(.@npcId, UDT_HEADTOP, TopHat);
    setunitdata(.@npcId, UDT_HEADMIDDLE, WarlordPlate);
    setunitdata(.@npcId, UDT_WEAPON, JeansChaps);
    setunitdata(.@npcId, UDT_HEADBOTTOM, DeepBlackBoots);
    setunitdata(.@npcId, UDT_HAIRSTYLE, 25);
    setunitdata(.@npcId, UDT_HAIRCOLOR, 4);

    .sex = G_OTHER;
    .distance = 5;
    npcsit;

	tradertype(NST_CUSTOM);

	sellitem Kanabo,5400;
	sellitem EquipmentBlueprintC,4200;
	sellitem ArcmageBoxset,3250;

	sellitem SteelShovel,2000;
	sellitem MercBoxA,1200;

	sellitem SilverGift,480;
	//sellitem Lockpicks,112;

	sellitem IronAmmoBox,1080;
	sellitem IronArrow,6;

	end;

OnCountFunds:
	setcurrency(countitem(HeroCoin));
	end;

OnPayFunds:
	if( countitem(HeroCoin) < @price )
		end;
	delitem HeroCoin,@price;
	purchaseok();
	end;

}

018-2-4,47,49,0	duplicate(Master Exchanger#0)	Master Exchanger#1	NPC_M_COINKEEPER