From 1989e676542d47d4ebb4f50a2513886723992850 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 8 Aug 2018 01:52:17 -0300 Subject: Ultra experimental Laranja --- npc/016-1/laranja.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/016-1/laranja.txt b/npc/016-1/laranja.txt index eea6b162c..ef132cd6a 100644 --- a/npc/016-1/laranja.txt +++ b/npc/016-1/laranja.txt @@ -19,8 +19,17 @@ l("Yeah sure let's Trade."), -, l("Sorry another day maybe."), L_Close; + // Restock shop if needed (ULTRA EXPERIMENTAL) + // It won't work if instance_id() is 0, but that should be Nard@Candor. + if (instance_id()) { + if ('day != gettime(5)) { + 'day=gettime(5); + restoreshopitem OrangeDye, -1, 3; + } + } + closedialog; - shop "Laranja"; // Not using .name$ because instance (This is yet to raise countless bugs) + shop instance_npcname(.name$); close; L_Close: @@ -53,6 +62,9 @@ OnInstanceInit: setunitdata(.@npcId, UDT_HAIRSTYLE, 10); setunitdata(.@npcId, UDT_HAIRCOLOR, 9); tradertype(NST_MARKET); + + sellitem OrangeDye, -1, 3; + 'day=gettime(5); end; OnClock2000: -- cgit v1.2.3-70-g09d2