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

018-2-4,54,28,0	script	Ultimate Exchanger#0	NPC_M_COINKEEPER,{
    openshop;
    closedialog;
    close;

OnInit:
    .@npcId = getnpcid(.name$);
    setunitdata(.@npcId, UDT_HEADTOP, TopHat);
    setunitdata(.@npcId, UDT_HEADMIDDLE, SaviorArmor);
    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 ElixirOfLife,320;
	sellitem CelestiaTea,180;
	sellitem HastePotion,150;
	sellitem StrengthPotion,150;
	sellitem Grenade,rand(90,140); // I really don't care about the price of this. Used to be 12.
    sellitem CursedArrow,80;
	sellitem Curshroom,60;
	end;

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

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

}

018-2-4,54,49,0	duplicate(Ultimate Exchanger#0)	Ultimate Exchanger#1	NPC_M_COINKEEPER