From a99e879e1ee923190be21d8599d32dc003cd45eb Mon Sep 17 00:00:00 2001 From: Reid Date: Fri, 2 Dec 2011 21:38:46 +0100 Subject: 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. --- npc/000-0/area.txt | 2 +- npc/items/PoisonedWater.txt | 15 +++++++++++++++ npc/scripts.conf | 7 +++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 npc/items/PoisonedWater.txt create mode 100644 npc/scripts.conf (limited to 'npc') 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 -- cgit v1.2.3-70-g09d2