diff options
author | Reid <reidyaro@gmail.com> | 2011-12-02 21:38:46 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2011-12-02 21:38:46 +0100 |
commit | a99e879e1ee923190be21d8599d32dc003cd45eb (patch) | |
tree | 4128ea43fcd2292c345da55ed90821df868d05cd /npc | |
parent | dd9f2c6c9e621e671d8ee8133b5f4d2260bcdcac (diff) | |
download | serverdata-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.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/000-0/area.txt | 2 | ||||
-rw-r--r-- | npc/items/PoisonedWater.txt | 15 | ||||
-rw-r--r-- | npc/scripts.conf | 7 |
3 files changed, 23 insertions, 1 deletions
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 |