summaryrefslogtreecommitdiff
path: root/world/map/npc/items
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2014-11-01 22:20:41 -0500
committerWushin <pasekei@gmail.com>2014-11-01 22:20:41 -0500
commite0107f44ce41a6e130030cef2f79748cdf67b250 (patch)
tree6468d496b3385097b5475fb740f226d379880062 /world/map/npc/items
parent82ce751849a79c29d76a2b2ee5f5ec2a820ae700 (diff)
parentb2aaa61286c1e3a107df7fcd8d63086b360aa0f6 (diff)
downloadserverdata-e0107f44ce41a6e130030cef2f79748cdf67b250.tar.gz
serverdata-e0107f44ce41a6e130030cef2f79748cdf67b250.tar.bz2
serverdata-e0107f44ce41a6e130030cef2f79748cdf67b250.tar.xz
serverdata-e0107f44ce41a6e130030cef2f79748cdf67b250.zip
Merge pull request #169 from mekolat/duels
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..29129eab 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;