summaryrefslogblamecommitdiff
path: root/npc/018-2-4/lv2.txt
blob: 3738e8efb87e20f5400243e709f32c702cad9594 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                  
                           


                              

















                                                         
                                          





                                 

                                  
                               
















                                                                                        
// TMW2/LoF scripts.
// Authors:
//    TMW-LoF Team
//    Jesusalva
// Description:
//    Heroes Hold Exchanger - Level 2

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

OnInit:
    .@npcId = getnpcid(.name$);
    setunitdata(.@npcId, UDT_HEADTOP, TopHat);
    setunitdata(.@npcId, UDT_HEADMIDDLE, Chainmail);
    setunitdata(.@npcId, UDT_WEAPON, JeansShorts);
    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 EquipmentBlueprintB,3000;
	sellitem ShortSword,1800;
	sellitem Chainmail,1400;

	sellitem BronzeGift,120;
	sellitem CoinBag,60;

	sellitem ArrowAmmoBox,540;
	sellitem Arrow,3;
	sellitem CasinoCoins,4;
	end;

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

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

}

018-2-4,40,49,0	duplicate(Advanced Exchanger#0)	Advanced Exchanger#1	NPC_M_COINKEEPER