summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-08-02 12:18:41 -0300
committerJesusaves <cpntb1@ymail.com>2018-08-02 12:18:41 -0300
commitc4ff36178a1aa11d88cf91780e896ce83de4fea3 (patch)
treef389f658f7b0d72e6ba185ab39e556a7d60b31d5 /npc
parentfffc0bfb48cb64f3e5a30b420336fae3f4a8328d (diff)
downloadserverdata-c4ff36178a1aa11d88cf91780e896ce83de4fea3.tar.gz
serverdata-c4ff36178a1aa11d88cf91780e896ce83de4fea3.tar.bz2
serverdata-c4ff36178a1aa11d88cf91780e896ce83de4fea3.tar.xz
serverdata-c4ff36178a1aa11d88cf91780e896ce83de4fea3.zip
Minor touches to Laranja
Diffstat (limited to 'npc')
-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;
}