summaryrefslogtreecommitdiff
path: root/npc/016-1/laranja.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/016-1/laranja.txt')
-rw-r--r--npc/016-1/laranja.txt22
1 files changed, 15 insertions, 7 deletions
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;
}