summaryrefslogtreecommitdiff
path: root/npc/016-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-08-08 01:52:17 -0300
committerJesusaves <cpntb1@ymail.com>2018-08-08 01:52:17 -0300
commit1989e676542d47d4ebb4f50a2513886723992850 (patch)
tree148663686677088bda9679fd2d685597c6d0cfc6 /npc/016-1
parent6479423ce02f8111fd0ecfcf626e7060457bfec3 (diff)
downloadserverdata-1989e676542d47d4ebb4f50a2513886723992850.tar.gz
serverdata-1989e676542d47d4ebb4f50a2513886723992850.tar.bz2
serverdata-1989e676542d47d4ebb4f50a2513886723992850.tar.xz
serverdata-1989e676542d47d4ebb4f50a2513886723992850.zip
Ultra experimental Laranja
Diffstat (limited to 'npc/016-1')
-rw-r--r--npc/016-1/laranja.txt14
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: