summaryrefslogtreecommitdiff
path: root/world/map/npc/items
diff options
context:
space:
mode:
authormekolat <mekolat@gmail.com>2014-09-07 15:44:33 -0400
committermekolat <mekolat@gmail.com>2014-10-30 14:21:17 -0400
commite5190f9ddff51a2e246a7af5538909ec212e00db (patch)
tree6f626346b5fb37d24688c0defdffba55a509cb48 /world/map/npc/items
parent0bc1c20799c9b01e60035ce1c82fd8a38c110c4c (diff)
downloadserverdata-e5190f9ddff51a2e246a7af5538909ec212e00db.tar.gz
serverdata-e5190f9ddff51a2e246a7af5538909ec212e00db.tar.bz2
serverdata-e5190f9ddff51a2e246a7af5538909ec212e00db.tar.xz
serverdata-e5190f9ddff51a2e246a7af5538909ec212e00db.zip
add fight club
Diffstat (limited to 'world/map/npc/items')
-rw-r--r--world/map/npc/items/check_wand.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/world/map/npc/items/check_wand.txt b/world/map/npc/items/check_wand.txt
index 4d8016bb..0e0a9a7e 100644
--- a/world/map/npc/items/check_wand.txt
+++ b/world/map/npc/items/check_wand.txt
@@ -2,6 +2,8 @@
// Author: Wushin
function|script|WandMana|,
{
+ if(isin("009-7.gat", $@fightclub_x1, $@fightclub_y1, $@fightclub_x2, $@fightclub_y2) && ((@Duel_Fighter != 1) || ($@Duel_NoMagic == 1)))
+ goto L_Return;
callfunc "CheckWand";
set @WandCost, (@Wand * ((MaxSp / 10) + 2));
set @WandAttack, 0;
@@ -20,7 +22,7 @@ L_NoWand:
message strcharinfo(0), "You need a wand Equipped!";
set @WandAttack, 0;
goto L_Return;
-
+
L_LowSp:
message strcharinfo(0), "Out of Mana";
set @WandAttack, 0;