summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2011-12-02 21:38:46 +0100
committerReid <reidyaro@gmail.com>2011-12-02 21:38:46 +0100
commita99e879e1ee923190be21d8599d32dc003cd45eb (patch)
tree4128ea43fcd2292c345da55ed90821df868d05cd
parentdd9f2c6c9e621e671d8ee8133b5f4d2260bcdcac (diff)
downloadserverdata-a99e879e1ee923190be21d8599d32dc003cd45eb.tar.gz
serverdata-a99e879e1ee923190be21d8599d32dc003cd45eb.tar.bz2
serverdata-a99e879e1ee923190be21d8599d32dc003cd45eb.tar.xz
serverdata-a99e879e1ee923190be21d8599d32dc003cd45eb.zip
Add script.conf file,
Add PoisonedWater script for item_db.txt, Changed map name on area script, Corrected usable items script on item_db.txt.
-rw-r--r--db/item_db.txt16
-rw-r--r--npc/000-0/area.txt2
-rw-r--r--npc/items/PoisonedWater.txt15
-rw-r--r--npc/scripts.conf7
4 files changed, 31 insertions, 9 deletions
diff --git a/db/item_db.txt b/db/item_db.txt
index bbef7454..dc0450c1 100644
--- a/db/item_db.txt
+++ b/db/item_db.txt
@@ -1,13 +1,13 @@
#ID, Name, Label, Attr, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Gender, Loc, wLV, eLV, View, LifeTime, {UseScript}, {EquipScript} {UnEquipScript}
0, DEFAULT, Default, 0, 0, 0, 0, 10, , , , , , 2, , , , , 0, {}, {} ,
-501, Acorn, Acorn, 0, 0, 10, 2, 2, , , , , , 2, , , 0, , 0, { itemheal 15, 0; }, 0;}, ,
-502, Bread, Bread, 0, 0, 15, 8, 5, , , , , , 2, , , 0, , 0, { itemheal 30, 0; }, 0;}, ,
-503, Carrot, Carrot, 0, 0, 20, 10, 6, , , , , , 2, , , 0, , 0, { itemheal 25, 0; }, 0;}, ,
-504, Cheese, Cheese, 0, 0, 40, 18, 6, , , , , , 2, , , 0, , 0, { itemheal 50, 0; }, 0;}, ,
-505, Piouslegs, Pious legs, 0, 0, 50, 35, 8, , , , , , 2, , , 0, , 0, { itemheal 40, 0; }, 0;}, ,
-506, Lettuce, Lettuce, 0, 0, 25, 12, 5, , , , , , 2, , , 0, , 0, { itemheal 15, 0; }, 0;}, ,
-507, Piberries, Piberries, 0, 0, 40, 20, 3, , , , , , 2, , , 0, , 0, { itemheal 20, 0; }, 0;}, ,
-508, Seadrop, Sea drop, 0, 0, 5, 1, 2, , , , , , 2, , , 0, , 0, { itemheal 15, 0; }, 0;}, ,
+501, Acorn, Acorn, 0, 0, 10, 2, 2, , , , , , 2, , , 0, , 0, { itemheal 15, 0; }, {}, ,
+502, Bread, Bread, 0, 0, 15, 8, 5, , , , , , 2, , , 0, , 0, { itemheal 30, 0; }, {}, ,
+503, Carrot, Carrot, 0, 0, 20, 10, 6, , , , , , 2, , , 0, , 0, { itemheal 25, 0; }, {}, ,
+504, Cheese, Cheese, 0, 0, 40, 18, 6, , , , , , 2, , , 0, , 0, { itemheal 50, 0; }, {}, ,
+505, Piouslegs, Pious legs, 0, 0, 50, 35, 8, , , , , , 2, , , 0, , 0, { itemheal 40, 0; }, {}, ,
+506, Lettuce, Lettuce, 0, 0, 25, 12, 5, , , , , , 2, , , 0, , 0, { itemheal 15, 0; }, {}, ,
+507, Piberries, Piberries, 0, 0, 40, 20, 3, , , , , , 2, , , 0, , 0, { itemheal 20, 0; }, {}, ,
+508, Seadrop, Sea drop, 0, 0, 5, 1, 2, , , , , , 2, , , 0, , 0, { callfunc "usePoisonedWater"; }, {}, ,
700, Three-leafclover, Three-leaf clover, 0, 3, 10, 3, 5, , , , , , , , , , , 0, {}, {}, ,
701, Piousfeathers, Pious feathers, 0, 3, 60, 35, 1, , , , , , , , , , , 0, {}, {}, ,
702, Tortugasshellfragment, Tortugas shell fragment,0, 3, 40, 15, 15, , , , , , , , , , , 0, {}, {}, ,
diff --git a/npc/000-0/area.txt b/npc/000-0/area.txt
index caed50cc..0d62cff5 100644
--- a/npc/000-0/area.txt
+++ b/npc/000-0/area.txt
@@ -31,6 +31,6 @@
mesq l("The sailors take you aboard their ship to help you."); //italic
next;
- warp 002-0-x.gat,0,0;
+ warp 000-2-x.gat,0,0;
}
diff --git a/npc/items/PoisonedWater.txt b/npc/items/PoisonedWater.txt
new file mode 100644
index 00000000..40e93093
--- /dev/null
+++ b/npc/items/PoisonedWater.txt
@@ -0,0 +1,15 @@
+// Evol scripts.
+// Authors:
+// Alastrim, Vasily_Makarov, Reid
+// Description:
+// Heal of 25hp and add 1/4 bad luck to be poisoned.
+
+function|script|usePoisonedWater|{
+ set @temp, rand(4);
+ if (!@temp) sc_start sc_poison, 1, 50;
+ if (!@temp) message strcharinfo(0), "Debug: Poisoned";
+ if (@temp) itemheal 15, 0;
+ if (@temp) message strcharinfo(0), "Debug: Healed";
+ set @temp, 0;
+ return;
+}
diff --git a/npc/scripts.conf b/npc/scripts.conf
new file mode 100644
index 00000000..2bfd0bdd
--- /dev/null
+++ b/npc/scripts.conf
@@ -0,0 +1,7 @@
+// This is the main script import file
+
+// NPC Functions
+// npc: npc/functions/.txt
+
+// maps
+import: npc/_import.txt