diff options
-rw-r--r-- | npc/016-1/laranja.txt | 14 |
1 files changed, 13 insertions, 1 deletions
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: |