summaryrefslogtreecommitdiff
path: root/world/map/conf/magic-procedures.sex
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/conf/magic-procedures.sex
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/conf/magic-procedures.sex')
-rw-r--r--world/map/conf/magic-procedures.sex39
1 files changed, 19 insertions, 20 deletions
diff --git a/world/map/conf/magic-procedures.sex b/world/map/conf/magic-procedures.sex
index 6f9c3246..bce579fc 100644
--- a/world/map/conf/magic-procedures.sex
+++ b/world/map/conf/magic-procedures.sex
@@ -280,36 +280,35 @@
(PROCEDURE install_melee_spell (charges base_delay attack_animation)
(CALL install_attack_spell charges base_delay 1 attack_animation))
-(PROCEDURE summon_spell (mob_id count delay lifetime control_level)
- (CALL default_effect)
- (sfx location SFX_SUMMON_START 0)
- (WAIT delay)
- (sfx location SFX_SUMMON_FIRE 0)
- (spawn
- (rbox location 2)
- caster
- mob_id
- (if_then_else
- (>=
- (skill caster ASTRAL)
- control_level)
- 2
- 1)
- count
- lifetime)) "pets when level is high enough"
+(PROCEDURE fightclub_check ()
+ (IF (&&
+ (is_in (location caster)
+ (@+
+ (@ "009-7.gat" (script_int caster "$@fightclub_x1") (script_int caster "$@fightclub_y1"))
+ (- (script_int caster "$@fightclub_x2") (script_int caster "$@fightclub_x1"))
+ (- (script_int caster "$@fightclub_y2") (script_int caster "$@fightclub_y1"))))
+ (||
+ (== (script_int caster "$@Duel_NoMagic") 1)
+ (!= (script_int caster "@Duel_Fighter") 1)))
+ (ABORT)))
-(PROCEDURE summon_dark_spell (mob_id count delay lifetime control_level)
+(PROCEDURE summon_spell (mob_id count delay lifetime control_level school)
(CALL default_effect)
(sfx location SFX_SUMMON_START 0)
(WAIT delay)
(sfx location SFX_SUMMON_FIRE 0)
(spawn
- (rbox location 2)
+ (rbox location (if_then_else
+ (is_in (location caster)
+ (@+
+ (@ "009-7.gat" (- (script_int caster "$@fightclub_x1") 2) (- (script_int caster "$@fightclub_y1") 2))
+ (+ (- (script_int caster "$@fightclub_x2") (script_int caster "$@fightclub_x1")) 2)
+ (+ (- (script_int caster "$@fightclub_y2") (script_int caster "$@fightclub_y1")) 2))) 1 2))
caster
mob_id
(if_then_else
(>=
- (skill caster DARK)
+ (skill caster school)
control_level)
2
1)