From c4ff36178a1aa11d88cf91780e896ce83de4fea3 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 2 Aug 2018 12:18:41 -0300 Subject: Minor touches to Laranja --- npc/016-1/laranja.txt | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'npc/016-1') diff --git a/npc/016-1/laranja.txt b/npc/016-1/laranja.txt index b95e027e1..e5d272a86 100644 --- a/npc/016-1/laranja.txt +++ b/npc/016-1/laranja.txt @@ -7,20 +7,20 @@ 016-1,25,24,0 script Laranja NPC_PLAYER,{ mesn; - mesq l("I'm Laranja"); + mesq l("I'm Laranja."); next; mesn; - mesq l("My father lead a dye fabric, i'm in charge to sell @@ around the world.", getitemlink(OrangeDye)); + mesq l("My father lead a dye fabric, I'm in charge to sell @@ around the world.", getitemlink(OrangeDye)); next; mesn; - mesq l("Would you like to buy some ?.") ; + mesq l("Would you like to buy some?"); mes ""; menu l("Yeah sure let's Trade."), -, l("Sorry another day maybe."), L_Close; closedialog; - shop .name$; + shop "Laranja"; // Not using .name$ because instance (This is yet to raise countless bugs) close; L_Close: @@ -42,12 +42,20 @@ OnInit: tradertype(NST_MARKET); sellitem OrangeDye, -1, 3; + end; - +OnInstanceInit: + .@npcId = getnpcid(0, instance_npcname(.name$)); + setunitdata(.@npcId, UDT_HEADTOP, NPCEyes); + setunitdata(.@npcId, UDT_HEADMIDDLE, ShortTankTop); + setunitdata(.@npcId, UDT_HEADBOTTOM, RaidTrousers); + setunitdata(.@npcId, UDT_WEAPON, LousyMoccasins); // Boots + setunitdata(.@npcId, UDT_HAIRSTYLE, 10); + setunitdata(.@npcId, UDT_HAIRCOLOR, 9); end; OnClock2000: - restoreshopitem IronArrow, -1, 1; - + restoreshopitem OrangeDye, -1, 3; + end; } -- cgit v1.2.3-60-g2f50