summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-09 12:21:23 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-09 12:21:23 -0300
commit6cffe650d28d260eb01c93569627ffeda5c38183 (patch)
tree37de931591cf6a5f0e64cc776e020ae309e3992e
parent32298da90daf4762883185cc2c233ba10fd1fa56 (diff)
downloadserverdata-6cffe650d28d260eb01c93569627ffeda5c38183.tar.gz
serverdata-6cffe650d28d260eb01c93569627ffeda5c38183.tar.bz2
serverdata-6cffe650d28d260eb01c93569627ffeda5c38183.tar.xz
serverdata-6cffe650d28d260eb01c93569627ffeda5c38183.zip
Time Flask
-rw-r--r--db/re/item_db.conf14
-rw-r--r--npc/items/teleporter.txt27
2 files changed, 32 insertions, 9 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index c36b5c210..61cf9cbaa 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -2274,6 +2274,20 @@ item_db: (
*/
">
},
+{
+ Id: 614
+ AegisName: "TimeFlask"
+ Name: "Time Flask"
+ Type: "IT_USABLE"
+ Buy: 0
+ Sell: 0
+ Weight: 40
+ KeepAfterUse: true
+ Refine: false
+ Script: <"
+ doevent "LoF Teleporter::OnUse";
+ ">
+},
// Generic
diff --git a/npc/items/teleporter.txt b/npc/items/teleporter.txt
index 5d4ad5497..13068e6c7 100644
--- a/npc/items/teleporter.txt
+++ b/npc/items/teleporter.txt
@@ -19,19 +19,28 @@ OnUse:
goto L_Cooldown;
mesn;
- mesc l("Do you want to cut this @@?", getitemlink(Croconut));
+ mesc l("Ozthokk, a great sage from the Land Of Fire, holds secrets of time and space travel.");
+ mesc l("This is not magic, it is science!");
+ mes "";
+ mesc l("PS. Additional reagents may be required for warps.");
next;
menu
- l("Yes."), L_Weapon,
- l("No."), -;
+ l("Don't warp"), -,
+ l("Land Of Fire Village (30m)"), L_LoF,
+ l("Save Point (30m)"), L_Save;
- getitem Croconut, 1;
close;
-L_Weapon:
- mesc l("You perfectly cut your @@ into two edible parts.", getitemlink(Croconut));
-
- getitem HalfCroconut, 2;
- close;
+L_Save:
+ warp "Save", 0, 0;
+ TELEPORTER_TIME=gettimetick(2)+(60*30);
+ closedialog;
+ end;
+
+L_LoF:
+ warp "017-1", 0, 0;
+ TELEPORTER_TIME=gettimetick(2)+(60*30);
+ closedialog;
+ end;
}