;============================================================ ;Wavestorm - By Jarel Jones (http://wavestorm.rangerwiki.com) ;============================================================ ; ;Information on file usage in Readme.txt. ;This file contains the following: ;Attack, magic, item/shop, and omega storm aliases. alias attack { if ((%wavestorm-battleon == 1) && (%wavestorm-z01 != 1) && (%wavestorm-z04 != 1) && (%wavestorm-z07 != 1)) { if (%wavestorm-z17 == 1) { goto teleport } if ($1 !ison %wavechat) { display3 %wavechat You can only attack someone in the channel! return } if (%wavestorm-z15test == 1) { unset %wavestorm-z15test set %wavestorm-z15dummy 1 goto teleport } if (%wavestorm-z20test == 1) { unset %wavestorm-z20test set %wavestorm-z20dummy 1 goto teleport } if ((%wavestorm-battletimer != $null) && (%wavestorm-battletimer > 0)) { display3 %wavechat You have %wavestorm-battletimer more seconds before you can perform an action. return } if ((%wavestorm-z23 == 1) || ($1 == %wavestorm-enemy1) || ($1 == %wavestorm-enemy2) || ($1 == %wavestorm-enemy3) || ($1 == %wavestorm-enemy4) || ((%wavestorm-melee == 1) && ($1 ison %wavechat) && ($1 != $me))) { if ($readini(" $+ $scriptdirWSInfo3.ini",$1,z01) == 1) { display3 %wavechat $1 has fallen and cannot be attacked return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b02) == 1) { display3 %wavechat $1 has been knocked off the airship, and cannot be attacked until they get back on it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b09) == 1) { display3 %wavechat $1 has fallen in a pitfall, and cannot be attacked until they climb out of it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b17) == 1) { display3 %wavechat $1 has been knocked off the motorcycle, and cannot be attacked until they get back on it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b24) == 1) { display3 %wavechat $1 has been paralyzed by an electric floor, and cannot be attacked until they're unparalyzed return } if ($2 == cart) && (%wavestorm-battleground == s06) { if (%wavestorm-s06cart == 1) { display2 %wavechat hops in a nearby mine cart and flies headfirst into $+($1,!) .notice $1 Wavestorm %wavestorm-battleground $1 b05 $hget(Player,Level) unset %wavestorm-weaponrand unset %wavestorm-s06cart startbattletimer return } else { display3 %wavechat You are not near any mine carts. Wait for one to come nearby when you're off the tracks. return } } :teleport if ($hget(Player,Wavelength) == 0) { set %wavestorm-levelsend $hget(Player,Level) } elseif ($hget(Player,Wavelength) == 1) { set %wavestorm-levelsend $calc($hget(Player,Level) * 9 / 10) } elseif ($hget(Player,Wavelength) == 2) { set %wavestorm-levelsend $calc($hget(Player,Level) * 9 / 10) } elseif ($hget(Player,Wavelength) == 3) { set %wavestorm-levelsend $calc($hget(Player,Level) * 9 / 10) } elseif ($hget(Player,Wavelength) == 4) { set %wavestorm-levelsend $calc($hget(Player,Level) * 8 / 10) } elseif ($hget(Player,Wavelength) == 5) { set %wavestorm-levelsend $calc($hget(Player,Level) * 8 / 10) } elseif ($hget(Player,Wavelength) == 6) { set %wavestorm-levelsend $calc($hget(Player,Level) * 7 / 10) } elseif ($hget(Player,Wavelength) == 7) { set %wavestorm-levelsend $calc($hget(Player,Level) * 8 / 10) } elseif ($hget(Player,Wavelength) == 8) { set %wavestorm-levelsend $calc($hget(Player,Level) * 9 / 10) } elseif ($hget(Player,Wavelength) == 9) { set %wavestorm-levelsend $calc($hget(Player,Level) * 8 / 10) } elseif ($hget(Player,Wavelength) == 10) { set %wavestorm-levelsend $calc($hget(Player,Level) * 8 / 10) } if ($hget(Player,Weapon) == 1) { set %wavestorm-levelsend $calc($hget(Player,Level) * 1.19) } elseif ($hget(Player,Weapon) == 2) { set %wavestorm-levelsend $calc($hget(Player,Level) * 1.12) } elseif ($hget(Player,Weapon) == 3) { set %wavestorm-levelsend $calc($hget(Player,Level) * 1.23) } elseif ($hget(Player,Weapon) == 4) { set %wavestorm-levelsend $calc($hget(Player,Level) * 1.09) } elseif ($hget(Player,Weapon) == 5) { set %wavestorm-levelsend $calc($hget(Player,Level) * 1.21) } elseif ($hget(Player,Weapon) == 6) { set %wavestorm-levelsend $calc($hget(Player,Level) * 1.14) } elseif ($hget(Player,Weapon) == 7) { set %wavestorm-levelsend $calc($hget(Player,Level) * 1.25) } elseif ($hget(Player,Weapon) == 8) { set %wavestorm-levelsend $calc($hget(Player,Level) * 1.07) } elseif ($hget(Player,Weapon) == 9) { set %wavestorm-levelsend $calc($hget(Player,Level) * 1.16) } elseif ($hget(Player,Weapon) == 10) { set %wavestorm-levelsend $calc($hget(Player,Level) * 1.05) } if (%wavestorm-z08 == 1) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 3 / 4) } if (%wavestorm-z12 == 1) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 5 / 4) } if (%wavestorm-s05mode == 1) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 2) } elseif (%wavestorm-s05mode == 2) { set %wavestorm-levelsend $calc(%wavestorm-levelsend / 2) } if (%wavestorm-z17 == 1) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 3) } if ((%wavestorm-z17 == 2) && (%wavestorm-z17haste == 1)) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 0.4) } if (%wavestorm-battleground == s16) { set %wavestorm-levelsend $calc(%wavestorm-levelsend / 2) } if ((%wavestorm-battleground == s18) && ($rand(1,4) == 2)) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 2) | display2 %wavechat blinks as a random wind blast increases %wavestorm-gender3 attack power! } if (%wavestorm-z20dummy == 1) { set %wavestorm-levelsend $calc(%wavestorm-levelsend / 9) } set %wavestorm-levelsend $round(%wavestorm-levelsend,0) if ($hget(Player,Weapon) == 1) { set %wavestorm-weaponrand $rand(1,10) } elseif ($hget(Player,Weapon) == 2) { set %wavestorm-weaponrand $rand(11,20) } elseif ($hget(Player,Weapon) == 3) { set %wavestorm-weaponrand $rand(21,30) } elseif ($hget(Player,Weapon) == 4) { set %wavestorm-weaponrand $rand(31,40) } elseif ($hget(Player,Weapon) == 5) { set %wavestorm-weaponrand $rand(41,50) } elseif ($hget(Player,Weapon) == 6) { set %wavestorm-weaponrand $rand(51,60) } elseif ($hget(Player,Weapon) == 7) { set %wavestorm-weaponrand $rand(61,70) } elseif ($hget(Player,Weapon) == 8) { set %wavestorm-weaponrand $rand(71,80) } elseif ($hget(Player,Weapon) == 9) { set %wavestorm-weaponrand $rand(81,90) } elseif ($hget(Player,Weapon) == 10) { set %wavestorm-weaponrand $rand(91,100) } var %wavestorm-target = $1 if (%wavestorm-z23 == 1) { if ($ini(" $+ $scriptdirWSInfo3.ini",0) > 0) { var %wavestorm-target = $ini(" $+ $scriptdirWSInfo3.ini",$rand(1,$ini(" $+ $scriptdirWSInfo3.ini",0))) } else { :blurtarget1 var %wavestorm-target = $nick(%wavechat,$rand(1,$nick(%wavechat,0))) if ((%wavestorm-target == $me) && ($nick(%wavechat,0) > 1)) { goto blurtarget } } } if ($exists(" $+ $scriptdirWSphysical.wvs") == $false) { goto custom-physical1 } if ((%wave-custom-physical1 != 1) && (%wave-custom-physical2 != 1)) { goto custom-physical1 } elseif ((%wave-custom-physical1 == 1) && (%wave-custom-physical2 != 1)) { goto custom-physical1 } elseif ((%wave-custom-physical2 == 1) && (%wave-custom-physical1 != 1)) { goto custom-physical2 } elseif ((%wave-custom-physical1 == 1) && (%wave-custom-physical2 == 1)) { var %wave-custom-physical3 = $rand(1,$calc(100 + $lines(" $+ $scriptdirWSphysical.wvs"))) if (%wave-custom-physical3 <= 100) { goto custom-physical1 } else { goto custom-physical2 } } :custom-physical1 var %wave-custom-physical5 $rand(1,10) var %wave-custom-physical5-1 = $readini(" $+ $scriptdirWSInfo1.ini",Weapon,$+($hget(Player,Weapon),$hget(Player,Modifier))) if ($hget(Player,Weapon) == 1) { if (%wave-custom-physical5 == 1) { var %wave-custom-physical4 = smacks %wavestorm-target in the head with %wavestorm-gender3 $+(%wave-custom-physical5-1,'s) pommel } elseif (%wave-custom-physical5 == 2) { var %wave-custom-physical4 = arcs %wavestorm-gender3 %wave-custom-physical5-1 downwards in a mid-air cut that slices $+(%wavestorm-target,'s) chest open } elseif (%wave-custom-physical5 == 3) { var %wave-custom-physical4 = slashes %wavestorm-gender3 %wave-custom-physical5-1 down and then back up, making a miniature X cut on %wavestorm-target } elseif (%wave-custom-physical5 == 4) { var %wave-custom-physical4 = performs a tornado cut that slices %wavestorm-target across the hip } elseif (%wave-custom-physical5 == 5) { var %wave-custom-physical4 = shoves %wavestorm-gender3 %wave-custom-physical5-1 into the ground and swings forward on it, flipping up and over and smashing %wavestorm-target in the face with %wavestorm-gender3 feet } elseif (%wave-custom-physical5 == 6) { var %wave-custom-physical4 = sends %wavestorm-gender3 %wave-custom-physical5-1 right into $+(%wavestorm-target,'s) middle } elseif (%wave-custom-physical5 == 7) { var %wave-custom-physical4 = slams %wavestorm-gender3 %wave-custom-physical5-1 sideways through air, smacking %wavestorm-target in the side of the head } elseif (%wave-custom-physical5 == 8) { var %wave-custom-physical4 = ducks down and slashes outward, slicing $+(%wavestorm-target,'s) legs } elseif (%wave-custom-physical5 == 9) { var %wave-custom-physical4 = slices upward in a diagonal cut, splitting open %wavestorm-target from right thigh to left shoulder } elseif (%wave-custom-physical5 == 10) { var %wave-custom-physical4 = darts past $+(%wavestorm-target,'s) guard and sends in a straight thrust that gashes open $+(%wavestorm-target,'s) left hip } } if ($hget(Player,Weapon) == 2) { if (%wave-custom-physical5 == 1) { var %wave-custom-physical4 = drives %wavestorm-gender3 %wave-custom-physical5-1 into $+(%wavestorm-target,'s) foot, then flips it up into $+(%wavestorm-target,'s) face } elseif (%wave-custom-physical5 == 2) { var %wave-custom-physical4 = jumps into the air and comes down at $+(%wavestorm-target,$chr(44)) twirling %wavestorm-gender3 %wave-custom-physical5-1 straight for $+(%wavestorm-target,'s) skull } elseif (%wave-custom-physical5 == 3) { var %wave-custom-physical4 = flings his %wave-custom-physical5-1 from afar, watching it rotate through the air and slam right into $+(%wavestorm-target,'s) legs } elseif (%wave-custom-physical5 == 4) { var %wave-custom-physical4 = swings %wavestorm-gender3 %wave-custom-physical5-1 down on $+(%wavestorm-target,'s) hands, sending %wavestorm-target to the ground on the knees } elseif (%wave-custom-physical5 == 5) { var %wave-custom-physical4 = flings %wavestorm-gender3 %wave-custom-physical5-1 straight up into $+(%wavestorm-target,'s) chin, sending %wavestorm-target into the air } elseif (%wave-custom-physical5 == 6) { var %wave-custom-physical4 = runs past %wavestorm-target and swings %wavestorm-gender3 %wave-custom-physical5-1 straight back as he goes, smacking %wavestorm-target in the behind } elseif (%wave-custom-physical5 == 7) { var %wave-custom-physical4 = throws %wavestorm-gender3 %wave-custom-physical5-1 straight forward and watches it slam into $+(%wavestorm-target,'s) throat } elseif (%wave-custom-physical5 == 8) { var %wave-custom-physical4 = slides past %wavestorm-target and swings %wavestorm-gender3 %wave-custom-physical5-1 into the back of $+(%wavestorm-target,'s) knees, tripping %wavestorm-target up } elseif (%wave-custom-physical5 == 9) { var %wave-custom-physical4 = jumps into the air and, as %wavestorm-gender1 falls, rotates around quickly with %wavestorm-gender3 %wave-custom-physical5-1 stretched out, spinning like an insane helicopter straight into %wavestorm-target } elseif (%wave-custom-physical5 == 10) { var %wave-custom-physical4 = shoots %wavestorm-gender3 %wave-custom-physical5-1 into a niche in the ground and throws $+(%wavestorm-gender2,self) forward, rotating around the ground and swinging around counter-clockwise to send a flying kick at %wavestorm-target } } if ($hget(Player,Weapon) == 3) { if (%wave-custom-physical5 == 1) { var %wave-custom-physical4 = runs toward %wavestorm-target and swings, but %wavestorm-target makes a sudden movement, throwing $+($me,'s) aim off. $me reacts by smacking %wavestorm-target in the back as %wavestorm-gender1 passes } elseif (%wave-custom-physical5 == 2) { var %wave-custom-physical4 = cocks the slide, dropping the spent magazine into %wavestorm-gender3 hand, and throws the empty container straight at $+(%wavestorm-target,'s) head } elseif (%wave-custom-physical5 == 3) { var %wave-custom-physical4 = sights in with %wavestorm-gender3 %wave-custom-physical5-1 and shoots %wavestorm-target in the chest } elseif (%wave-custom-physical5 == 4) { var %wave-custom-physical4 = swings %wavestorm-gender3 %wave-custom-physical5-1 up and smashes %wavestorm-target in the side of the head } elseif (%wave-custom-physical5 == 5) { var %wave-custom-physical4 = sprays an umbrella of ammo towards %wavestorm-target } elseif (%wave-custom-physical5 == 6) { var %wave-custom-physical4 = shoots at $+(%wavestorm-target,'s) feet, forcing %wavestorm-target to hop up and down on tiptoes } elseif (%wave-custom-physical5 == 7) { var %wave-custom-physical4 = sends ammo into $+(%wavestorm-target,'s) leg, dropping %wavestorm-target to the ground in pain } elseif (%wave-custom-physical5 == 8) { var %wave-custom-physical4 = blasts %wavestorm-target straight in the forehead, smacking %wavestorm-target backwards violently } elseif (%wave-custom-physical5 == 9) { var %wave-custom-physical4 = aims %wavestorm-gender3 %wave-custom-physical5-1 and drops several well-placed blasts into $+(%wavestorm-target,'s) body } elseif (%wave-custom-physical5 == 10) { var %wave-custom-physical4 = aims %wavestorm-gender3 %wave-custom-physical5-1 low, and then fires a spread of ammo upwards, piercing %wavestorm-target from foot to head } } if ($hget(Player,Weapon) == 4) { if (%wave-custom-physical5 == 1) { var %wave-custom-physical4 = twirls the %wave-custom-physical5-1 in %wavestorm-gender3 hand, and then tosses them at %wavestorm-target } elseif (%wave-custom-physical5 == 2) { var %wave-custom-physical4 = wraps %wavestorm-gender %wave-custom-physical5-1 around $+(%wavestorm-target,'s) wrist and spins, flipping %wavestorm-target to the ground } elseif (%wave-custom-physical5 == 3) { var %wave-custom-physical4 = wraps %wavestorm-gender3 %wave-custom-physical5-1 around $+(%wavestorm-target,'s) neck and pulls, then throws the choking %wavestorm-target to the ground } elseif (%wave-custom-physical5 == 4) { var %wave-custom-physical4 = violently twirls %wavestorm-gender3 %wave-custom-physical5-1 into $+(%wavestorm-target,'s) face } elseif (%wave-custom-physical5 == 5) { var %wave-custom-physical4 = flips %wavestorm-gender3 %wave-custom-physical5-1 across $+(%wavestorm-target,'s) right arm, then brings them around in a figure-eight into $+(%wavestorm-target,'s) chest } elseif (%wave-custom-physical5 == 6) { var %wave-custom-physical4 = wraps both %wave-custom-physical5-1 around $+(%wavestorm-target,'s) arm and pulls, twisting the arm painfully and sending %wavestorm-target whirling to the ground } elseif (%wave-custom-physical5 == 7) { var %wave-custom-physical4 = extends %wavestorm-gender3 arm and whips %wavestorm-gender3 %wave-custom-physical5-1 across $+(%wavestorm-target,'s) chest } elseif (%wave-custom-physical5 == 8) { var %wave-custom-physical4 = pulls a single $left(%wave-custom-physical5-1,-1) out from under %wavestorm-gender3 arm, swings it down, and whips it upwards into $+(%wavestorm-target,'s) chin } elseif (%wave-custom-physical5 == 9) { var %wave-custom-physical4 = pulls a single $left(%wave-custom-physical5-1,-1) out from under %wavestorm-gender3 arm, swings it up, and slams it downwards into $+(%wavestorm-target,'s) skull } elseif (%wave-custom-physical5 == 10) { var %wave-custom-physical4 = ducks downwards and whips %wavestorm-gender3 %wave-custom-physical5-1 horizontally across $+(%wavestorm-target,'s) waist } } if ($hget(Player,Weapon) == 5) { if (%wave-custom-physical5 == 1) { var %wave-custom-physical4 = swings %wavestorm-gender3 %wave-custom-physical5-1 down on top of $+(%wavestorm-target,'s) head } elseif (%wave-custom-physical5 == 2) { var %wave-custom-physical4 = runs up and flings %wavestorm-gender3 %wave-custom-physical5-1 into $+(%wavestorm-target,'s) side, toppling %wavestorm-target to the ground } elseif (%wave-custom-physical5 == 3) { var %wave-custom-physical4 = smashes the ground in front of %wavestorm-target with %wavestorm-gender3 $+(%wave-custom-physical5-1,$chr(44)) shaking the area and making %wavestorm-target trip } elseif (%wave-custom-physical5 == 4) { var %wave-custom-physical4 = smashes %wavestorm-target in the side of the head with %wavestorm-gender3 $+(%wave-custom-physical5-1,$chr(44)) sending %wavestorm-target flying } elseif (%wave-custom-physical5 == 5) { var %wave-custom-physical4 = throws %wavestorm-gender3 %wave-custom-physical5-1 through the air and watches as it gashes the side of $+(%wavestorm-target,'s) head as it goes } elseif (%wave-custom-physical5 == 6) { var %wave-custom-physical4 = slams %wavestorm-gender3 %wave-custom-physical5-1 onto $+(%wavestorm-target,'s) foot, making %wavestorm-target jump up and down in immense pain } elseif (%wave-custom-physical5 == 7) { var %wave-custom-physical4 = thrusts %wavestorm-gender3 %wave-custom-physical5-1 straight into $+(%wavestorm-target,'s) stomach } elseif (%wave-custom-physical5 == 8) { var %wave-custom-physical4 = slams %wavestorm-gender3 %wave-custom-physical5-1 into $+(%wavestorm-target,'s) chest, breaking several ribs } elseif (%wave-custom-physical5 == 9) { var %wave-custom-physical4 = runs and slips under $+(%wavestorm-target,'s) legs, flinging %wavestorm-gender3 %wave-custom-physical5-1 up at $+(%wavestorm-target,'s) backside as %wavestorm-gender1 slides across the ground } elseif (%wave-custom-physical5 == 10) { var %wave-custom-physical4 = jumps into the air and comes down with %wavestorm-gender3 %wave-custom-physical5-1 screaming through the air. $me slams into %wavestorm-target from above, knocking %wavestorm-target to the ground } } if ($hget(Player,Weapon) == 6) { if (%wave-custom-physical5 == 1) { var %wave-custom-physical4 = tosses %wavestorm-gender3 %wave-custom-physical5-1 at $+(%wavestorm-target,$chr(44)) puncturing %wavestorm-target in the leg } elseif (%wave-custom-physical5 == 2) { var %wave-custom-physical4 = runs up and twirls %wavestorm-gender3 %wave-custom-physical5-1 like a staff, braining %wavestorm-target in the temple } elseif (%wave-custom-physical5 == 3) { var %wave-custom-physical4 = swings %wavestorm-gender3 %wave-custom-physical5-1 low horizontally, sweeping out $+(%wavestorm-target,'s) legs and sending %wavestorm-target falling } elseif (%wave-custom-physical5 == 4) { var %wave-custom-physical4 = throws %wavestorm-gender3 %wave-custom-physical5-1 spinning to the floor, tripping %wavestorm-target up } elseif (%wave-custom-physical5 == 5) { var %wave-custom-physical4 = swings %wavestorm-gender3 %wave-custom-physical5-1 into $+(%wavestorm-target,'s) head, then whips it down into $+(%wavestorm-target,'s) hip } elseif (%wave-custom-physical5 == 6) { var %wave-custom-physical4 = sticks %wavestorm-gender3 %wave-custom-physical5-1 into the ground, pulls back on it, and lets it go, watching it spring forward into $+(%wavestorm-target,'s) face } elseif (%wave-custom-physical5 == 7) { var %wave-custom-physical4 = throws the %wave-custom-physical5-1 towards the wall and watches as it bounces off, ricocheting across %wavestorm-target's thigh } elseif (%wave-custom-physical5 == 8) { var %wave-custom-physical4 = grabs and spins %wavestorm-target around, then whips %wavestorm-gender3 %wave-custom-physical5-1 across $+(%wavestorm-target,'s) twirling form, sending %wavestorm-target crashing to the ground } elseif (%wave-custom-physical5 == 9) { var %wave-custom-physical4 = turns %wavestorm-gender3 %wave-custom-physical5-1 around and jabs the blunt end straight into $+(%wavestorm-target,'s) face } elseif (%wave-custom-physical5 == 10) { var %wave-custom-physical4 = tosses %wavestorm-gender3 %wave-custom-physical5-1 into the air and watches as it comes spiraling down into $+(%wavestorm-target,'s) skull } } if ($hget(Player,Weapon) == 7) { if (%wave-custom-physical5 == 1) { var %wave-custom-physical4 = swings %wavestorm-gender3 %wave-custom-physical5-1 down, slicing into $+(%wavestorm-target,'s) left arm } elseif (%wave-custom-physical5 == 2) { var %wave-custom-physical4 = whips %wavestorm-gender3 %wave-custom-physical5-1 across $+(%wavestorm-target,'s) midline, slicing %wavestorm-target up } elseif (%wave-custom-physical5 == 3) { var %wave-custom-physical4 = slams %wavestorm-gender3 %wave-custom-physical5-1 sideways into $+(%wavestorm-target,$chr(44)) using the flattened profile of the axe to send %wavestorm-target tumbling } elseif (%wave-custom-physical5 == 4) { var %wave-custom-physical4 = tosses the %wave-custom-physical5-1 through the air, watching as it spirals past, nicking %wavestorm-target on the right arm } elseif (%wave-custom-physical5 == 5) { var %wave-custom-physical4 = smashes %wavestorm-gender3 %wave-custom-physical5-1 downwards, letting it land flat on $+(%wavestorm-target,'s) foot } elseif (%wave-custom-physical5 == 6) { var %wave-custom-physical4 = slices the %wave-custom-physical5-1 into $+(%wavestorm-target,'s) leg, sending %wavestorm-target tumbling down } elseif (%wave-custom-physical5 == 7) { var %wave-custom-physical4 = stabs %wavestorm-gender3 %wave-custom-physical5-1 straight forward into $+(%wavestorm-target,'s) chest } elseif (%wave-custom-physical5 == 8) { var %wave-custom-physical4 = attacks from the side, whipping %wavestorm-gender3 %wave-custom-physical5-1 around and slicing $+(%wavestorm-target,'s) arm to ribbons } elseif (%wave-custom-physical5 == 9) { var %wave-custom-physical4 = flips %wavestorm-gender3 %wave-custom-physical5-1 upside-down and smashes %wavestorm-target in the face with the handle } elseif (%wave-custom-physical5 == 10) { var %wave-custom-physical4 = flips into the air and swings %wavestorm-gender3 %wave-custom-physical5-1 at %wavestorm-target as %wavestorm-gender1 passes, slicing into the back of $+(%wavestorm-target,'s) neck } } if ($hget(Player,Weapon) == 8) { if (%wave-custom-physical5 == 1) { var %wave-custom-physical4 = calmly loads an arrow onto %wavestorm-gender3 %wave-custom-physical5-1, and fires it towards %wavestorm-target } elseif (%wave-custom-physical5 == 2) { var %wave-custom-physical4 = hides in the shadows, aiming with %wavestorm-gender3 %wave-custom-physical5-1 and an arrow, and fires at %wavestorm-target } elseif (%wave-custom-physical5 == 3) { var %wave-custom-physical4 = takes %wavestorm-gender3 $+(%wave-custom-physical5-1,'s) quiver from %wavestorm-gender3 back and smacks %wavestorm-target in the face with it } elseif (%wave-custom-physical5 == 4) { var %wave-custom-physical4 = swiftly loads a flame tipped bolt into %wavestorm-gender $+(%wave-custom-physical5-1,$chr(44)) and fires a flaming arrow straight at $+(%wavestorm-target,'s) chest } elseif (%wave-custom-physical5 == 5) { var %wave-custom-physical4 = loads an electric arrow into %wavestorm-gender3 %wave-custom-physical5-1 and fires, sending several hundred volts into $+(%wavestorm-target,'s) body } elseif (%wave-custom-physical5 == 6) { var %wave-custom-physical4 = loads an arrow with a ball tip in %wavestorm-gender3 %wave-custom-physical5-1 and sends it at $+(%wavestorm-target,.) The arrow hits %wavestorm-target and opens, flinging a giant net that traps %wavestorm-target under it } elseif (%wave-custom-physical5 == 7) { var %wave-custom-physical4 = loads %wavestorm-gender3 %wave-custom-physical5-1 and lets loose with an arrow with a plasma tip. It hits the ground beneath $+(%wavestorm-target,'s) feet and explodes, sending %wavestorm-target flying! } elseif (%wave-custom-physical5 == 8) { var %wave-custom-physical4 = pulls 10 arrows from %wavestorm-gender3 quiver, aims %wavestorm-gender3 %wave-custom-physical5-1 to the sky, fires, and watches them rain down upon %wavestorm-target } elseif (%wave-custom-physical5 == 9) { var %wave-custom-physical4 = puts %wavestorm-gender3 %wave-custom-physical5-1 around $+(%wavestorm-target,'s) neck and strangles %wavestorm-target } elseif (%wave-custom-physical5 == 10) { var %wave-custom-physical4 = reaches for %wavestorm-gender3 $+(%wave-custom-physical5-1,'s) quiver, screams a taunt of the ancient language, and stabs %wavestorm-target with an arrow } } if ($hget(Player,Weapon) == 9) { if (%wave-custom-physical5 == 1) { var %wave-custom-physical4 = flings the %wave-custom-physical5-1 around and bashes %wavestorm-target in the side of the head } elseif (%wave-custom-physical5 == 2) { var %wave-custom-physical4 = slams the %wave-custom-physical5-1 into $+(%wavestorm-target,'s) stomach } elseif (%wave-custom-physical5 == 3) { var %wave-custom-physical4 = swipes the %wave-custom-physical5-1 across $+(%wavestorm-target,'s) body, giving %wavestorm-target several contusions } elseif (%wave-custom-physical5 == 4) { var %wave-custom-physical4 = spins %wavestorm-gender3 %wave-custom-physical5-1 around in the air and swings it at %wavestorm-target } elseif (%wave-custom-physical5 == 5) { var %wave-custom-physical4 = slams the %wave-custom-physical5-1 into the ground, sending several chunks of rock up at %wavestorm-target } elseif (%wave-custom-physical5 == 6) { var %wave-custom-physical4 = smacks %wavestorm-target in the face with the $+(%wave-custom-physical5-1,$chr(44)) then whips it around into $+(%wavestorm-target,'s) side } elseif (%wave-custom-physical5 == 7) { var %wave-custom-physical4 = smashes the %wave-custom-physical5-1 into the floor in front of and behind $+(%wavestorm-gender2,$chr(44)) creating a constant arc of flail-swinging that cuts into %wavestorm-target } elseif (%wave-custom-physical5 == 8) { var %wave-custom-physical4 = sends the %wave-custom-physical5-1 straight into $+(%wavestorm-target,'s) face, then flings it down the length of $+(%wavestorm-target,'s) body } elseif (%wave-custom-physical5 == 9) { var %wave-custom-physical4 = flings the %wave-custom-physical5-1 to the right of $+(%wavestorm-target,'s) neck, then whips it to the left, wrapping it around and cutting into $+(%wavestorm-target,'s) neck and face } elseif (%wave-custom-physical5 == 10) { var %wave-custom-physical4 = runs up and smacks %wavestorm-target in the chin with the $+(%wave-custom-physical5-1,'s) handle, then whips it backwards, sending the spiked ball up into $+(%wavestorm-target,'s) face } } if ($hget(Player,Weapon) == 10) { if (%wave-custom-physical5 == 1) { var %wave-custom-physical4 = spins around on %wavestorm-gender3 left leg, delivering a punishing roundhouse kick to $+(%wavestorm-target,'s) face } elseif (%wave-custom-physical5 == 2) { var %wave-custom-physical4 = pulls %wavestorm-gender3 hand back, palm open, and drives it forward, slapping %wavestorm-target with %wavestorm-gender3 %wave-custom-physical5-1 so hard the sound ricochets across the room } elseif (%wave-custom-physical5 == 3) { var %wave-custom-physical4 = lays a fierce $+(%wave-custom-physical5-1,-brandished)punch into $+(%wavestorm-target,'s) stomach and snaps %wavestorm-gender3 knee to the face, knocking %wavestorm-target to the ground } elseif (%wave-custom-physical5 == 4) { var %wave-custom-physical4 = gets a running start, launches into the air, and comes down on %wavestorm-target with a flying kick } elseif (%wave-custom-physical5 == 5) { var %wave-custom-physical4 = drops to the ground and pivots on %wavestorm-gender3 hands and feet, sending %wavestorm-gender3 leg into $+(%wavestorm-target,'s) legs, sweeping %wavestorm-target to the floor } elseif (%wave-custom-physical5 == 6) { var %wave-custom-physical4 = hops into the air, comes down with %wavestorm-gender3 knees on $+(%wavestorm-target,'s) shoulders, then backflips, sending %wavestorm-target flying through the air behind %wavestorm-gender2 } elseif (%wave-custom-physical5 == 7) { var %wave-custom-physical4 = takes a running leap and slides across the floor, scissoring $+(%wavestorm-target,'s) legs with %wavestorm-gender3 own, sending %wavestorm-target to the ground } elseif (%wave-custom-physical5 == 8) { var %wave-custom-physical4 = grabs $+(%wavestorm-target,'s) wrist and twists it around, then flips the entire arm, sending %wavestorm-target spinning to the floor } elseif (%wave-custom-physical5 == 9) { var %wave-custom-physical4 = jumps into the air and does a double-rotation tornado kick straight into %wavestorm-target } elseif (%wave-custom-physical5 == 10) { var %wave-custom-physical4 = drives a tightened $+(%wave-custom-physical5-1,-brandished) fist straight into $+(%wavestorm-target,'s) face } } goto custom-physical-skip :custom-physical2 set %wavestorm-weaponrand 101 var %wave-custom-physical4 = $replace($read(" $+ $scriptdirWSphysical.wvs"),!target,%wavestorm-target,!enemy,$nick,!me,$me,!gender1,%wavestorm-gender1,!gender2,%wavestorm-gender2,!gender3,%wavestorm-gender3) var %wave-custom-physical4 = $replace(%wave-custom-physical4,!weapon,$readini(" $+ $scriptdirWSInfo1.ini",Weapon,$+($hget(Player,Weapon),$hget(Player,Modifier)))) :custom-physical-skip set %wavestorm-critical $rand(1,20) if (%wavestorm-z20dummy != 1) { if (%wavestorm-critical == 20) { display2 %wavechat performs a Critical Hit! $me %wave-custom-physical4 } else { display2 %wavechat %wave-custom-physical4 } } wavesound 4 if (%wavestorm-weaponrand isnum 1 - 9) { set %wavestorm-weaponrand $+(00,%wavestorm-weaponrand) } if (%wavestorm-weaponrand isnum 10 - 99) { set %wavestorm-weaponrand $+(0,%wavestorm-weaponrand) } if ($hget(Player,Modifier) isletter dj) { if ((%wavestorm-mp < $int($calc($hget(Player,MagicPoints) / 33.3))) && (%wavestorm-omega < 2) && ($hget(Player,Modifier) == d)) { goto modifier-skip } set %wavestorm-levelsend $calc(%wavestorm-levelsend * 2) if ($hget(Player,Modifier) == d) { if (%wavestorm-mp >= $int($calc($hget(Player,MagicPoints) / 33.3))) { dec %wavestorm-mp $int($calc($hget(Player,MagicPoints) / 33.3)) if (%wavestorm-mp < 0) { set %wavestorm-mp 0 } } elseif (%wavestorm-omega >= 2) { dec %wavestorm-omega 2 if (%wavestorm-omega < 0) { set %wavestorm-omega 0 } } windowstatreset } } :modifier-skip if (($hget(Player,Modifier) == e) && (%wavestorm-modifiere isnum 1 - 10)) { set %wavestorm-weaponrand $calc((%wavestorm-modifiere * 10) + 200) } if (%wavestorm-wavebeast-21 == 1) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 2) } if ((%wavestorm-critical == 20) && (%wavestorm-z20dummy != 1)) { .notice %wavestorm-target Wavestorm %wavestorm-battleground $1 $+(a,%wavestorm-weaponrand) $calc(%wavestorm-levelsend * $rand(3,7)) %wavestorm-z23 } else { .notice %wavestorm-target Wavestorm %wavestorm-battleground $1 $+(a,%wavestorm-weaponrand) %wavestorm-levelsend %wavestorm-z23 } unset %wavestorm-critical if ((%wavestorm-wavebeast == 1) && (%wavestorm-wavebeast-15 == 1)) { display2 %wavechat watches as %wavestorm-gender3 clone mimics the physical attack, doubling its power! if ((%wavestorm-critical == 20) && (%wavestorm-z20dummy != 1)) { .notice $1 Wavestorm %wavestorm-battleground $1 $+(a,%wavestorm-weaponrand) $calc(%wavestorm-levelsend * $rand(3,7)) } else { .notice $1 Wavestorm %wavestorm-battleground $1 $+(a,%wavestorm-weaponrand) %wavestorm-levelsend } return } elseif (%wavestorm-z13 == 1) { display2 %wavechat watches as %wavestorm-gender3 clone performs a similar attack on $1 as well! .notice $1 Wavestorm %wavestorm-battleground $1 a000 %wavestorm-levelsend dec %wavestorm-z13turn 1 if (%wavestorm-z13turn < 1) { unset %wavestorm-z13* display2 %wavechat watches as %wavestorm-gender3 clone disappears } } if (%wavestorm-wavebeast-21 == 1) { set %wavestorm-levelsend $calc(%wavestorm-levelsend / 2) } if (%wavestorm-z15dummy == 1) { unset %wavestorm-z15* display2 %wavechat sighs as the iron curtain disappears, cancelling %wavestorm-gender3 ability to teleport } if (%wavestorm-z20dummy == 1) { unset %wavestorm-z20dummy } unset %wavestorm-weaponrand set -n %wavestorm-windowlasttarget $1 set %wavestorm-levelsend $hget(Player,Level) startbattletimer } elseif (%wavestorm-melee == 1) { display3 %wavechat You can only attack someone in $+(%wavechat,.) } else { display3 %wavechat You can only attack one of the enemies you've specified to fight: %wavestorm-enemy1 %wavestorm-enemy2 %wavestorm-enemy3 %wavestorm-enemy4 } } } alias magic { if ((%wavestorm-battleon == 1) && (%wavestorm-z01 != 1) && (%wavestorm-z04 != 1) && (%wavestorm-z07 != 1)) { if (%wavestorm-wavebeast == 1) { display3 %wavechat You are currently in Wavebeast form and cannot cast magic attacks for %wavestorm-wavebeast-turn more turns. return } if (%wavestorm-z21 == 1) { display3 %wavechat You are currently in a light void and cannot use magic for %wavestorm-z21turn more turns as a result. return } if (%wavestorm-z19 == 1) { display3 %wavechat You are currently neutralizing all physical and magical attacks, but you cannot use magic for %wavestorm-z19turn more turns as a result. return } if ((%wavestorm-battleground == s14) && (%wavestorm-s14dummy != 2)) { display3 %wavechat The photon accelerator is on! You can't cast magic right now! return } if ($1 !ison %wavechat) { display3 %wavechat You can only cast magic on someone in the channel! return } if ((%wavestorm-battletimer != $null) && (%wavestorm-battletimer > 0)) { display3 %wavechat You have %wavestorm-battletimer more seconds before you can perform an action. return } if ($hget(Player,Wavelength) == 0) { display3 %wavechat You have no wavelength and cannot perform any magic attacks. Please choose another option. return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b02) == 1) { display3 %wavechat $1 has been knocked off the airship, and cannot be attacked until they get back on it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b09) == 1) { display3 %wavechat $1 has fallen in a pitfall, and cannot be attacked until they climb out of it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b17) == 1) { display3 %wavechat $1 has been knocked off the motorcycle, and cannot be attacked until they get back on it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b24) == 1) { display3 %wavechat $1 has been paralyzed by an electric floor, and cannot be attacked until they're unparalyzed return } if ($2 !isnum 1 - 70) { display3 %wavechat You can only use up to 70 magic spells. Please use a number between 1 and 70. return } var %magic1check = $2 :magic1check if (%magic1check > 7) { var %magic1check = $calc(%magic1check - 7) goto magic1check } if ($hget(Player,$+(Spell,%magic1check)) != 1) { display3 %wavechat You don't have this magic attack to use. Please choose another option. return } if ((%wavestorm-s14dummy != 2) && ($readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),MP) > %wavestorm-mp)) { display3 %wavechat You do not have enough MP to perform this magic attack. Please choose another option. return } if ((%wavestorm-s14dummy == 2) && ($calc($readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),MP) / 2) > %wavestorm-mp)) { display3 %wavechat You do not have enough MP to perform this magic attack. Please choose another option. return } if ($hget(Player,Wavelength) == 1) { set %wavestorm-magicnum $2 } elseif ($hget(Player,Wavelength) == 2) { set %wavestorm-magicnum $calc(7 + $2) } elseif ($hget(Player,Wavelength) == 3) { set %wavestorm-magicnum $calc(14 + $2) } elseif ($hget(Player,Wavelength) == 4) { set %wavestorm-magicnum $calc(21 + $2) } elseif ($hget(Player,Wavelength) == 5) { set %wavestorm-magicnum $calc(28 + $2) } elseif ($hget(Player,Wavelength) == 6) { set %wavestorm-magicnum $calc(35 + $2) } elseif ($hget(Player,Wavelength) == 7) { set %wavestorm-magicnum $calc(42 + $2) } elseif ($hget(Player,Wavelength) == 8) { set %wavestorm-magicnum $calc(49 + $2) } elseif ($hget(Player,Wavelength) == 9) { set %wavestorm-magicnum $calc(56 + $2) } elseif ($hget(Player,Wavelength) == 10) { set %wavestorm-magicnum $calc(63 + $2) } if (%wavestorm-magicnum isnum 1 - 7) { set -n %wavestorm-magicnumcolor Red | set %wavestorm-magicnum2 %wavestorm-magicnum } elseif (%wavestorm-magicnum isnum 8 - 14) { set -n %wavestorm-magicnumcolor Yellow | set %wavestorm-magicnum2 $calc(%wavestorm-magicnum - 7) } elseif (%wavestorm-magicnum isnum 15 - 21) { set -n %wavestorm-magicnumcolor Green | set %wavestorm-magicnum2 $calc(%wavestorm-magicnum - 14) } elseif (%wavestorm-magicnum isnum 22 - 28) { set -n %wavestorm-magicnumcolor Blue | set %wavestorm-magicnum2 $calc(%wavestorm-magicnum - 21) } elseif (%wavestorm-magicnum isnum 29 - 35) { set -n %wavestorm-magicnumcolor Purple | set %wavestorm-magicnum2 $calc(%wavestorm-magicnum - 28) } elseif (%wavestorm-magicnum isnum 36 - 42) { set -n %wavestorm-magicnumcolor White | set %wavestorm-magicnum2 $calc(%wavestorm-magicnum - 35) } elseif (%wavestorm-magicnum isnum 43 - 49) { set -n %wavestorm-magicnumcolor Beige | set %wavestorm-magicnum2 $calc(%wavestorm-magicnum - 42) } elseif (%wavestorm-magicnum isnum 50 - 56) { set -n %wavestorm-magicnumcolor Black | set %wavestorm-magicnum2 $calc(%wavestorm-magicnum - 49) } elseif (%wavestorm-magicnum isnum 57 - 63) { set -n %wavestorm-magicnumcolor Ornage | set %wavestorm-magicnum2 $calc(%wavestorm-magicnum - 56) } elseif (%wavestorm-magicnum isnum 64 - 70) { set -n %wavestorm-magicnumcolor Gray | set %wavestorm-magicnum2 $calc(%wavestorm-magicnum - 63) } if (%wavestorm-z23 == 1) { goto z23skip2 } if ((%wavestorm-melee == 1) && ($readini(WSInfo1.ini",$+(1Tier,$2),Target) == 1) && ($1 != $me) && ($?!="This spell is a beneficial spell designed to be cast on yourself or your teammates. Are you sure you want to cast it on an enemy?" == $false)) { return } if ((%wavestorm-melee != 1) && (($1 == %wavestorm-friend1) || ($1 == %wavestorm-friend2) || ($1 == %wavestorm-friend3)) && ($readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Target) == 2)) { if ((%wavestorm-z14 == 1) && ($2 != 9) && ($2 != 20) && ($2 != 27) && ($2 != 32) && ($2 != 34) && ($2 !isnum 36 - 41) && ($2 != 43) && ($2 != 45) && ($2 !isnum 54 - 55)) { goto reflect-on } display3 %wavechat You can only cast this spell on an opponent: %wavestorm-enemy1 %wavestorm-enemy2 %wavestorm-enemy3 %wavestorm-enemy4 unset %wavestorm-magicnum* return } if ((%wavestorm-melee != 1) && (($1 == %wavestorm-enemy1) || ($1 == %wavestorm-enemy2) || ($1 == %wavestorm-enemy3) || ($1 == %wavestorm-enemy4)) && ($readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Target) == 1)) { display3 %wavechat You can only cast this spell on a teammate: %wavestorm-friend1 %wavestorm-friend2 %wavestorm-friend3 unset %wavestorm-magicnum* return } if (($readini(" $+ $scriptdirWSInfo3.ini",$1,z01) == 1) && (($2 != 39) && ($2 != 41))) { display3 %wavechat $1 has fallen. Only Honeydew Recall or Diamond Vitalize can be cast on a fallen person. unset %wavestorm-magicnum* return } if (($readini(" $+ $scriptdirWSInfo3.ini",$1,z01) != 1) && (($2 == 39) || ($2 == 41))) { display3 %wavechat Honeydew Recall and Diamond Vitalize can't be cast on a person that hasn't fallen. unset %wavestorm-magicnum* return } :z23skip2 var %wavestorm-target = $1 if (%wavestorm-z23 == 1) { if ($ini(" $+ $scriptdirWSInfo3.ini",0) > 0) { var %wavestorm-target = $ini(" $+ $scriptdirWSInfo3.ini",$rand(1,$ini(" $+ $scriptdirWSInfo3.ini",0))) } else { :blurtarget1 var %wavestorm-target = $nick(%wavechat,$rand(1,$nick(%wavechat,0))) if ((%wavestorm-target == $me) && ($nick(%wavechat,0) > 1)) { goto blurtarget } } } if (%wavestorm-target == $me) { :reflect-on if ((%wavestorm-z14 == 1) && (($2 == 1) || ($2 isnum 3 - 5) || ($2 isnum 7 - 8) || ($2 == 10 ) || ($2 == 12 ) || ($2 isnum 14 - 19 ) || ($2 isnum 21 - 22 ) || ($2 isnum 25 - 26 ) || ($2 isnum 28 - 29 ) || ($2 == 31 ) || ($2 == 33 ) || ($2 == 35 ) || ($2 isnum 44 - 45 ) || ($2 isnum 49 - 50 ) || ($2 == 53 ) || ($2 == 56) || ($2 == 57) || ($2 == 59) || ($2 == 61) || ($2 isnum 63 - 64) || ($2 == 66) || ($2 isnum 69 - 70))) { :reflectnickloop if ($nick(%wavechat,%wavestorm-reflectrand) != $me) { inc %wavestorm-reflectcount 1 } set %wavestorm-reflectrand $rand(1,$nick(%wavechat,0)) if ($nick(%wavechat,%wavestorm-reflectrand) == $me) { goto reflectnickloop } if (!$readini(" $+ $scriptdirWSInfo3.ini",$nick(%wavechat,%wavestorm-reflectrand),z01)) { if (%wavestorm-reflectcount > $calc($nick(%wavechat,0) * 2)) { goto :reflectnickon } goto reflectnickloop } :reflectnickon display2 %wavechat casts $+(,$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color1),$chr(44),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color2),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Title),!) $me $replace($readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Saying1),$1,$me) display2 %wavechat grins as the spell %wavestorm-gender1 just cast at $+(%wavestorm-gender2,self) bounces of the crystal mirror in front of %wavestorm-gender2 and flies toward $nick(%wavechat,%wavestorm-reflectrand) .notice $nick(%wavechat,%wavestorm-reflectrand) Wavestorm %wavestorm-battleground $nick(%wavechat,%wavestorm-reflectrand) $+(c,$2) $calc(%wavestorm-levelsend * 2) unset %wavestorm-z14* display2 %wavechat puts %wavestorm-gender3 guard up as %wavestorm-gender3 reflect shield sizzles out unset %wavestorm-reflect* return } if ($2 == 48) { goto 48check } if (($2 == 9) || ($2 == 13) || ($2 == 20) || ($2 == 32) || ($2 == 34) || ($2 == 36) || ($2 == 38) || ($2 == 40) || ($2 == 43) || ($2 isnum 54 - 55) || ($2 == 62) || ($2 isnum 67 - 68)) { var %wavestorm-magicidcheck = $2 if ($len(%wavestorm-magicidcheck) == 1) { var %wavestorm-magicidcheck = 0 $+ %wavestorm-magicidcheck } if (%wavestorm-melee != 1) { var %wavestorm-magicidmelee == 15 } else { var %wavestorm-magicidmelee == 0 } if (%wavestorm-magicidcheck isin 09 13 20 32 34 37 43 54 55 67 68) { if (%wavestorm-z03) { dec %wavestorm-magicidmelee 15 } if (%wavestorm-z05) { dec %wavestorm-magicidmelee 15 } if (%wavestorm-z09) { dec %wavestorm-magicidmelee 15 } if (%wavestorm-z10) { dec %wavestorm-magicidmelee 15 } if (%wavestorm-z12) { dec %wavestorm-magicidmelee 15 } if (%wavestorm-z13) { dec %wavestorm-magicidmelee 15 } if (%wavestorm-z14) { dec %wavestorm-magicidmelee 15 } if (%wavestorm-z15) { dec %wavestorm-magicidmelee 15 } if (%wavestorm-z16) { dec %wavestorm-magicidmelee 15 } if (%wavestorm-z18) { dec %wavestorm-magicidmelee 15 } if (%wavestorm-z19) { dec %wavestorm-magicidmelee 15 } if (%wavestorm-z20) { dec %wavestorm-magicidmelee 15 } } if ((%wavestorm-magicidcheck isin 09 13 20 32 34 37 43 54 55 67 68) && ($rand(1,100) !isnum 1 - $calc(75 + %wavestorm-magicidmelee + $int(($hget(Player,Level) / 4))))) { display2 %wavechat casts $+(,$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color1),$chr(44),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color2),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Title),!) $me $replace($readini($+ $scriptdirWSInfo1.ini,1Tier $+ $2,Failure1),!me,$me,!gender1,%wavestorm-gender1,!gender2,%wavestorm-gender2,!gender3,%wavestorm-gender3) goto checkskip } magiccommand 1 $2 2 } else { display3 %wavechat You cannot cast a magic attack or bad status spell on yourself. Please choose another option. return } if (%wavestorm-hpgain != $null) { set %wavestorm-hpgain $round(%wavestorm-hpgain,0) inc %wavestorm-hp %wavestorm-hpgain if (%wavestorm-hp > $hget(Player,HealthPoints)) { set %wavestorm-hp $hget(Player,HealthPoints) } } display2 %wavechat casts $+(,$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color1),$chr(44),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color2),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Title),!) $me $replace($readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Saying3),!target,$1,!me,$me,!gender1,%wavestorm-gender1,!gender2,%wavestorm-gender2,!gender3,%wavestorm-gender3) if (%wavestorm-hpgain != $null) { display2 %wavechat gains %wavestorm-hpgain HP! Current HP: %wavestorm-hp } unset %wavestorm-hpgain :checkskip if (($hget(Player,Color) != $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color1)) && ($hget(Player,Color) != $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color2))) { unset %wavestorm-fuse* } else { if ((%wavestorm-fuse2color == $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color1)) || (%wavestorm-fuse2color == $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color2))) { unset %wavestorm-fuse2* } else { unset %wavestorm-fuse1* } wavefusefix } if (%wavestorm-s14dummy != 2) { dec %wavestorm-mp $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),MP) } else { dec %wavestorm-mp $int($calc($readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),MP) / 2)) } if (%wavestorm-mp < 1) { set %wavestorm-mp 0 } unset %wavestorm-magicnum* startbattletimer return } :48check if ($2 == 48) { if (%wavestorm-lastspell !isnum 1 - 70) { display2 %wavechat casts $+(,$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,43),Color1),$chr(44),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,43),Color2),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,43),Title),!) $me $replace($readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,43),Saying1),!target,%wavestorm-target,!me,$me,!gender1,%wavestorm-gender1,!gender2,%wavestorm-gender2,!gender3,%wavestorm-gender3) if ($2 isnum 1 - 9) { var %wavestorm-magicnum = $+(0,$2) } elseif ($2 isnum 10 - 70) { var %wavestorm-magicnum = $2 } .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target $+(c,%wavestorm-magicnum) %wavestorm-levelsend goto lastspellpast } else { display2 %wavechat casts $+(,$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color1),$chr(44),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color2),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Title),!) $me $replace($readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Saying1),!target,%wavestorm-target,!me,$me,!gender1,%wavestorm-gender1,!gender2,%wavestorm-gender2,!gender3,%wavestorm-gender3) display2 %wavechat $replace($readini(" $+ $scriptdirWSInfo1.ini",1Tier $+ %wavestorm-lastspell,Saying1),!target,%wavestorm-target,!me,$me,!gender1,%wavestorm-gender1,!gender2,%wavestorm-gender2,!gender3,%wavestorm-gender3) if (%wavestorm-lastspell isnum 1 - 9) { set %wavestorm-lastspell $+(0,%wavestorm-lastspell) } .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target $+(c,%wavestorm-lastspell) %wavestorm-levelsend unset %wavestorm-lastspell } } else { if (($2 == 62) && (%wavestorm-melee == 1)) { display3 %wavechat You cannot cast this spell on anyone but yourself. Please choose another option. return } display2 %wavechat casts $+(,$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color1),$chr(44),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color2),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Title),!) $me $replace($readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Saying1),!target,%wavestorm-target,!me,$me,!gender1,%wavestorm-gender1,!gender2,%wavestorm-gender2,!gender3,%wavestorm-gender3) if ($2 isnum 1 - 9) { var %wavestorm-magicnum = $+(0,$2) } elseif ($2 isnum 10 - 70) { var %wavestorm-magicnum = $2 } .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target $+(c,%wavestorm-magicnum) %wavestorm-levelsend } :lastspellpast if (($hget(Player,Color) != $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color1)) && ($hget(Player,Color) != $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color2))) { unset %wavestorm-fuse* } else { if ((%wavestorm-fuse2color == $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color1)) || (%wavestorm-fuse2color == $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),Color2))) { unset %wavestorm-fuse2* } else { unset %wavestorm-fuse1* } wavefusefix } if (%wavestorm-s14dummy == 2) { dec %wavestorm-mp $int($cald($readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),MP) / 2)) } else { dec %wavestorm-mp $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),MP) } unset %wavestorm-magicnum* set -n %wavestorm-windowlasttarget %wavestorm-target startbattletimer } elseif (%wavestorm-melee == 1) { display3 %wavechat You can only attack someone in $+(%wavechat,.) } } alias magic2 { if ((%wavestorm-battleon == 1) && (%wavestorm-z01 != 1) && (%wavestorm-z04 != 1) && (%wavestorm-z07 != 1)) { if (%wavestorm-wavebeast == 1) { display3 %wavechat You are currently in Wavebeast form and cannot cast magic attacks for %wavestorm-wavebeast-turn more turns. return } if (($1 !ison %wavechat) && ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Target) isnum 1 - 2)) { display3 %wavechat You can only cast one-target magic on someone in the channel! return } if ((%wavestorm-battletimer != $null) && (%wavestorm-battletimer > 0)) { display3 %wavechat You have %wavestorm-battletimer more seconds before you can perform an action. return } if (%wavestorm-z21 == 1) { display3 %wavechat You are currently in a light void and cannot use magic for %wavestorm-z21turn more turns as a result. return } if ($hget(Player,Wavelength) == 0) { display3 %wavechat You have no wavelength and cannot perform any magic attacks. Please choose another option. return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b02) == 1) { display3 %wavechat $1 has been knocked off the airship, and cannot be attacked until they get back on it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b09) == 1) { display3 %wavechat $1 has fallen in a pitfall, and cannot be attacked until they climb out of it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b17) == 1) { display3 %wavechat $1 has been knocked off the motorcycle, and cannot be attacked until they get back on it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b24) == 1) { display3 %wavechat $1 has been paralyzed by an electric floor, and cannot be attacked until they're unparalyzed return } if ($2 !isnum 1 - 84) { display3 %wavechat You can only do 84 different 2nd Tier spells. Please type a number between 1 and 84. return } if ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),MP) > %wavestorm-mp) { display3 %wavechat You do not have enough MP to perform this magic spell. Please choose another option. return } if (($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Target) == 2) && ($1 == $me)) { display3 %wavechat You can't cast an attack spell on yourself! return } if ((%wavestorm-fuse1color == $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Color1)) || (%wavestorm-fuse1color == $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Color2))) { inc %wavestorm-2tiercheck 1 set -n %wavestorm-2tiername %wavestorm-fuse1nick } if ((%wavestorm-fuse2color == $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Color1)) || (%wavestorm-fuse2color == $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Color2))) { inc %wavestorm-2tiercheck 1 if (%wavestorm-2tiername) { set -n %wavestorm-2tiername $+(%wavestorm-2tiername,%wavestorm-fuse2nick) } else { set -n %wavestorm-2tiername %wavestorm-fuse2nick } } if (%!wavestorm-2tiername) { set %wavestorm-2tiername 1 } if (($hget(Player,Color) == $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Color1)) || ($hget(Player,Color) == $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Color2))) { inc %wavestorm-2tiercheck 1 } if (%wavestorm-2tiercheck < 2) { display3 %wavechat You need $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Color1) and $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Color2) fuses to cast this spell. unset %wavestorm-2tiercheck return } var %wavestorm-target = $1 if (%wavestorm-z23 == 1) { if ($ini(" $+ $scriptdirWSInfo3.ini",0) > 0) { var %wavestorm-target = $ini(" $+ $scriptdirWSInfo3.ini",$rand(1,$ini(" $+ $scriptdirWSInfo3.ini",0))) } else { :blurtarget1 var %wavestorm-target = $nick(%wavechat,$rand(1,$nick(%wavechat,0))) if ((%wavestorm-target == $me) && ($nick(%wavechat,0) > 1)) { goto blurtarget } } } if ((%wavestorm-target == $me) && ($2 == 79) && (%wavestorm-z19)) { display3 %wavechat You cannot cast a neutralizing spell on yourself when you're already shadowed. | return } if ((%wavestorm-target == $me) && ($2 == 81) && (%wavestorm-z18)) { display3 %wavechat You cannot cast a shadowing spell on yourself when you're already neutralized. | return } if ((%wavestorm-target != $me) && ($2 == 76)) { display3 %wavechat You can only use Zinc Retouch on yourself. | return } unset %wavestorm-2tiercheck if (($2 == 76) && (!$hget(Wavestorm-2Tier76))) { hmake Wavestorm-2Tier76 21 if (%wavestorm-hp > 0) { hadd Wavestorm-2Tier76 hp %wavestorm-hp } if (%wavestorm-z01) { hadd Wavestorm-2Tier76 z01 %wavestorm-z01 } if (%wavestorm-z03) { hadd Wavestorm-2Tier76 z03 %wavestorm-z03 } if (%wavestorm-z03turn) { hadd Wavestorm-2Tier76 z03turn %wavestorm-z03turn } if (%wavestorm-z05) { hadd Wavestorm-2Tier76 z05 %wavestorm-z05 } if (%wavestorm-z05turn) { hadd Wavestorm-2Tier76 z05turn %wavestorm-z05turn } if (%wavestorm-z09) { hadd Wavestorm-2Tier76 z09 %wavestorm-z09 } if (%wavestorm-z10) { hadd Wavestorm-2Tier76 z10 %wavestorm-z10 } if (%wavestorm-z12) { hadd Wavestorm-2Tier76 z12 %wavestorm-z12 } if (%wavestorm-z13) { hadd Wavestorm-2Tier76 z13 %wavestorm-z13 } if (%wavestorm-z13turn) { hadd Wavestorm-2Tier76 z13turn %wavestorm-z13turn } if (%wavestorm-z14) { hadd Wavestorm-2Tier76 z14 %wavestorm-z14 } if (%wavestorm-z15) { hadd Wavestorm-2Tier76 z15 %wavestorm-z15 } if (%wavestorm-z16) { hadd Wavestorm-2Tier76 z16 %wavestorm-z16 } if (%wavestorm-z16turn) { hadd Wavestorm-2Tier76 z16turn %wavestorm-z16turn } if (%wavestorm-z18) { hadd Wavestorm-2Tier76 z10 %wavestorm-z10 } if (%wavestorm-z18turn) { hadd Wavestorm-2Tier76 z18turn %wavestorm-z18turn } if (%wavestorm-z19) { hadd Wavestorm-2Tier76 z10 %wavestorm-z10 } if (%wavestorm-z19turn) { hadd Wavestorm-2Tier76 z19turn %wavestorm-z19turn } if (%wavestorm-z20) { hadd Wavestorm-2Tier76 z10 %wavestorm-z10 } if (%wavestorm-z20turn) { hadd Wavestorm-2Tier76 z20turn %wavestorm-z20turn } display2 %wavechat casts $replace($+($eval($+(,%wavestorm-2tiercolor),2),,$readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Title),,!) $me $replace($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Saying2),!target,%wavestorm-target,!me,$me,!gender1,%wavestorm-gender1,!gender2,%wavestorm-gender2,!gender3,%wavestorm-gender3) return } set %wavestorm-2tierrand $rand(1,2) if (%wavestorm-2tierrand == 1) { set %wavestorm-2tiercolor $+($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),ColorNum1),$chr(44),$readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),ColorNum2)) } else { set %wavestorm-2tiercolor $+($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),ColorNum2),$chr(44),$readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),ColorNum1)) } if (($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Target) == 1) && (%wavestorm-target == $me)) { display2 %wavechat casts $+($eval($+(,%wavestorm-2tiercolor),2),,$readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Title),,!) $me $replace($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Saying3),!target,%wavestorm-target,!me,$me,!gender1,%wavestorm-gender1,!gender2,%wavestorm-gender2,!gender3,%wavestorm-gender3) } else { display2 %wavechat casts $+($eval($+(,%wavestorm-2tiercolor),2),,$readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Title),,!) $me $replace($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Saying1),!target,%wavestorm-target,!me,$me,!gender1,%wavestorm-gender1,!gender2,%wavestorm-gender2,!gender3,%wavestorm-gender3) } unset %wavestorm-hpgain unset %wavestorm-mpgain if (%wavestorm-2tierrun == 28) { set %wavestorm-relocate 1 } if (($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Target) isnum 1 - 2) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Target) == 5)) { .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target %wavestorm-2tiername $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Target) $+(d,%wavestorm-2tierrun) %wavestorm-levelsend if ((($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Target) == 1) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Target) == 5)) && ((%wavestorm-z14 != 1) && (%wavestorm-z16 != 1) && (%wavestorm-z18 != 1) && (%wavestorm-z19 != 1))) { if ((%wavestorm-2tierrun == 34) && (%wavestorm-target != $me)) { goto wrongskip } magiccommand 2 %wavestorm-2tierrun 2 :wrongskip } } elseif (($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Target) isnum 3 - 4) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Target) == 6)) { .notice %wavechat Wavestorm %wavestorm-battleground %wavechat %wavestorm-2tiername $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Target) $+(d,%wavestorm-2tierrun) %wavestorm-levelsend if ((($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Target) == 3) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Target) == 6)) && ((%wavestorm-z14 != 1) && (%wavestorm-z16 != 1) && (%wavestorm-z18 != 1) && (%wavestorm-z19 != 1))) { if (%wavestorm-2tierrun == 13) { goto wrongskip2 } magiccommand 2 %wavestorm-2tierrun 2 :wrongskip2 } } if (($hget(Player,Color) != $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Color1)) && ($hget(Player,Color) != $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Color2))) { unset %wavestorm-fuse* } else { if ((%wavestorm-fuse2color == $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Color1)) || (%wavestorm-fuse2color == $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),Color2))) { unset %wavestorm-fuse2* } else { unset %wavestorm-fuse1* } wavefusefix } if (%wavestorm-s14dummy == 2) { dec %wavestorm-mp $int($calc($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),MP) / 2)) } else { dec %wavestorm-mp $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,%wavestorm-2tierrun),MP) } if (%wavestorm-mp < 0) { set %wavestorm-mp 0 } if (%wavestorm-target ison %wavechat) { set -n %wavestorm-windowlasttarget %wavestorm-target } if (%wavestorm-hpgain != $null) { set %wavestorm-hpgain $round(%wavestorm-hpgain,0) inc %wavestorm-hp %wavestorm-hpgain if (%wavestorm-hp > $hget(Player,HealthPoints)) { set %wavestorm-hp $hget(Player,HealthPoints) } } elseif (%wavestorm-hploss != $null) { set %wavestorm-hploss $round(%wavestorm-hploss,0) dec %wavestorm-hp %wavestorm-hploss inc %wavestorm-omega $int($calc($gettok(%wavestorm-target,$numtok(%wavestorm-target,32),32) ^ (1 / 3))) if (%wavestorm-omega >= 100) { set %wavestorm-omega 100 } } if (%wavestorm-hp < 1) { set %wavestorm-hp 0 } if (%wavestorm-hpgain != $null) { display2 %wavechat gains %wavestorm-hpgain HP! Current HP: %wavestorm-hp } elseif (%wavestorm-hploss != $null) { display2 %wavechat loses %wavestorm-hploss HP! Current HP: %wavestorm-hp } if (%wavestorm-mpgain != $null) { display2 %wavechat gains %wavestorm-mpgain MP! Current MP: %wavestorm-mp } elseif (%wavestorm-mploss != $null) { display2 %wavechat loses %wavestorm-mploss MP! Current MP: %wavestorm-mp } unset %wavestorm-hpgain unset %wavestorm-hploss if (%wavestorm-hp == 0) { nohp $nick | return } startbattletimer unset %wavestorm-2tier* } } alias magic3 { if ((%wavestorm-battleon == 1) && (%wavestorm-z01 != 1) && (%wavestorm-z04 != 1) && (%wavestorm-z07 != 1)) { if (%wavestorm-wavebeast == 1) { display3 %wavechat You are currently in Wavebeast form and cannot cast magic attacks for %wavestorm-wavebeast-turn more turns. return } if ((%wavestorm-battletimer != $null) && (%wavestorm-battletimer > 0)) { display3 %wavechat You have %wavestorm-battletimer more seconds before you can perform an action. return } if (%wavestorm-z21 == 1) { display3 %wavechat You are currently in a light void and cannot use magic for %wavestorm-z21turn more turns as a result. return } if ($hget(Player,Wavelength) == 0) { display3 %wavechat You have no wavelength and cannot perform any magic attacks. Please choose another option. return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b02) == 1) { display3 %wavechat $1 has been knocked off the airship, and cannot be attacked until they get back on it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b09) == 1) { display3 %wavechat $1 has fallen in a pitfall, and cannot be attacked until they climb out of it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b17) == 1) { display3 %wavechat $1 has been knocked off the motorcycle, and cannot be attacked until they get back on it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b24) == 1) { display3 %wavechat $1 has been paralyzed by an electric floor, and cannot be attacked until they're unparalyzed return } if ($2 !isnum 1 - 240) { display3 %wavechat You can only do 240 different 3rd Tier spells. Please type a number between 1 and 240. return } if ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),MP) > %wavestorm-mp) { display3 %wavechat You do not have enough MP to perform this magic spell. Please choose another option. return } if ((%wavestorm-fuse1color == $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Color1)) || (%wavestorm-fuse1color == $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Color2)) || (%wavestorm-fuse1color == $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Color3))) { inc %wavestorm-3tiercheck 1 set -n %wavestorm-3tiername %wavestorm-fuse1nick } if ((%wavestorm-fuse2color == $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Color1)) || (%wavestorm-fuse2color == $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Color2)) || (%wavestorm-fuse2color == $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Color3))) { inc %wavestorm-3tiercheck 1 if (%wavestorm-3tiername) { set -n %wavestorm-3tiername $+(%wavestorm-3tiername,%wavestorm-fuse2nick) } else { set -n %wavestorm-3tiername %wavestorm-fuse2nick } } if (%!wavestorm-3tiername) { set %wavestorm-3tiername 1 } if (($hget(Player,Color) == $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Color1)) || ($hget(Player,Color) == $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Color2)) || ($hget(Player,Color) == $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Color3))) { inc %wavestorm-3tiercheck 1 } if (%wavestorm-3tiercheck < 3) { display3 %wavechat You need $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Color1) $= , $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Color2) $+ , and $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Color3) fuses to cast this spell. unset %wavestorm-3tiercheck return } unset %wavestorm-3tiercheck var %wavestorm-target = $1 set %wavestorm-3tierrand $rand(1,2) if (%wavestorm-3tierrand == 1) { set %wavestorm-3tiercolor $+($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),ColorNum1),$chr(44),$readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),ColorNum2)) } else { set %wavestorm-3tiercolor $+($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),ColorNum2),$chr(44),$readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),ColorNum1)) } display2 %wavechat casts $+($eval($+(,%wavestorm-3tiercolor),2),,$readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Title),,!) $me $replace($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Saying1),!me,$me,!gender1,%wavestorm-gender1,!gender2,%wavestorm-gender2,!gender3,%wavestorm-gender3) unset %wavestorm-hpgain unset %wavestorm-mpgain if (($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Target) isnum 3 - 4) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Target) == 6)) { .notice %wavechat Wavestorm %wavestorm-battleground %wavechat %wavestorm-3tiername $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Target) $+(e,%wavestorm-3tierrun) %wavestorm-levelsend if ((($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Target) == 3) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),Target) == 6)) && ((%wavestorm-z14 != 1) && (%wavestorm-z16 != 1) && (%wavestorm-z18 != 1) && (%wavestorm-z19 != 1))) { magiccommand 3 %wavestorm-3tierrun 2 } } unset %wavestorm-fuse* wavefusefix if (%wavestorm-s14dummy == 2) { dec %wavestorm-mp $int($calc($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),MP) / 2)) } else { dec %wavestorm-mp $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,%wavestorm-3tierrun),MP) } if (%wavestorm-mp < 0) { set %wavestorm-mp 0 } if ($1 ison %wavechat) { set -n %wavestorm-windowlasttarget $1 } if (%wavestorm-hpgain != $null) { set %wavestorm-hpgain $round(%wavestorm-hpgain,0) inc %wavestorm-hp %wavestorm-hpgain if (%wavestorm-hp > $hget(Player,HealthPoints)) { set %wavestorm-hp $hget(Player,HealthPoints) } } elseif (%wavestorm-hploss != $null) { set %wavestorm-hploss $round(%wavestorm-hploss,0) dec %wavestorm-hp %wavestorm-hploss inc %wavestorm-omega $int($calc($gettok($1-,$numtok($1-,32),32) ^ (1 / 3))) if (%wavestorm-omega >= 100) { set %wavestorm-omega 100 } } if (%wavestorm-hp < 1) { set %wavestorm-hp 0 } if (%wavestorm-hpgain != $null) { display2 %wavechat gains %wavestorm-hpgain HP! Current HP: %wavestorm-hp } elseif (%wavestorm-hploss != $null) { display2 %wavechat loses %wavestorm-hploss HP! Current HP: %wavestorm-hp } if (%wavestorm-mpgain != $null) { display2 %wavechat gains %wavestorm-mpgain MP! Current MP: %wavestorm-mp } elseif (%wavestorm-mploss != $null) { display2 %wavechat loses %wavestorm-mploss MP! Current MP: %wavestorm-mp } unset %wavestorm-hpgain unset %wavestorm-hploss if (%wavestorm-hp == 0) { nohp $nick | return } startbattletimer unset %wavestorm-3tier* } } alias magic4 { if ((%wavestorm-battleon == 1) && (%wavestorm-z01 != 1) && (%wavestorm-z04 != 1) && (%wavestorm-z07 != 1)) { if (%wavestorm-wavebeast == 1) { display3 %wavechat You are currently in Wavebeast form and cannot cast magic attacks for %wavestorm-wavebeast-turn more turns. return } if (!$readini(" $+ $scriptdirWSInfo1.ini",$+(4Tier,$2),Target)) { display3 This spell is not yet fully coded. Please cast a different spell. return } if (($1 !ison %wavechat) && ($readini(" $+ $scriptdirWSInfo1.ini",$+(4Tier,$2),Target) isnum 1 - 2)) { display3 %wavechat You can only cast one-target magic on someone in the channel! return } if ((%wavestorm-battletimer != $null) && (%wavestorm-battletimer > 0)) { display3 %wavechat You have %wavestorm-battletimer more seconds before you can perform an action. return } if (%wavestorm-z21 == 1) { display3 %wavechat You are currently in a light void and cannot use magic for %wavestorm-z21turn more turns as a result. return } if ($hget(Player,Wavelength) == 0) { display3 %wavechat You have no wavelength and cannot perform any magic attacks. Please choose another option. return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b02) == 1) { display3 %wavechat $1 has been knocked off the airship, and cannot be attacked until they get back on it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b09) == 1) { display3 %wavechat $1 has fallen in a pitfall, and cannot be attacked until they climb out of it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b17) == 1) { display3 %wavechat $1 has been knocked off the motorcycle, and cannot be attacked until they get back on it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b24) == 1) { display3 %wavechat $1 has been paralyzed by an electric floor, and cannot be attacked until they're unparalyzed return } if ($2 !isnum 1 - 20) { display3 %wavechat You can only do 20 different summons. Please use a number between 1 and 20. return } if ($readini(" $+ $scriptdirWSInfo1.ini",$+(4Tier,$2),MP) > %wavestorm-mp) { display3 %wavechat You do not have enough MP to perform this magic spell. Please choose another option. return } if (%wavestorm-fuse1 == $round($calc(%wavestorm-4tierrun / 2),0)) { inc %wavestorm-4tiercheck 1 set %wavestorm-4tiername %wavestorm-fuse1nick } if (%wavestorm-fuse2 == $round($calc(%wavestorm-4tierrun / 2),0)) { inc %wavestorm-4tiercheck 1 if (%wavestorm-4tiername) { set %wavestorm-4tiername $+(%wavestorm-4tiername,%wavestorm-fuse2nick) } else { set %wavestorm-4tiername %wavestorm-fuse2nick } } if (%!wavestorm-4tiername) { set %wavestorm-4tiername 1 } if ($hget(Player,Wavelength) == $round($calc(%wavestorm-4tierrun / 2),0)) { inc %wavestorm-4tiercheck 1 } if (%wavestorm-4tiercheck < 2) { display3 %wavechat You need two sources of $readini(" $+ $scriptdirWSInfo1.ini",$+(4Tier,%wavestorm-4tierrun),Color) energy to cast this spell. unset %wavestorm-4tiercheck return } unset %wavestorm-4tiercheck display2 %wavechat summons $+(,$readini(" $+ $scriptdirWSInfo1.ini",$+(4Tier,%wavestorm-4tierrun),Color1),$chr(44),$readini(" $+ $scriptdirWSInfo1.ini",$+(4Tier,%wavestorm-4tierrun),Color2),$readini(" $+ $scriptdirWSInfo1.ini",$+(4Tier,%wavestorm-4tierrun),Title),!) $readini(" $+ $scriptdirWSInfo1.ini",$+(4Tier,%wavestorm-4tierrun),Title) $replace($readini(" $+ $scriptdirWSInfo1.ini",$+(4Tier,%wavestorm-4tierrun),Saying1),!target,$1,!me,$me,!gender1,%wavestorm-gender1,!gender2,%wavestorm-gender2,!gender3,%wavestorm-gender3) unset %wavestorm-hpgain unset %wavestorm-mpgain if ($readini(" $+ $scriptdirWSInfo1.ini",$+(4Tier,%wavestorm-4tierrun),Target) isnum 1 - 2) { .notice $1 Wavestorm %wavestorm-battleground $1 %wavestorm-4tiername $readini(" $+ $scriptdirWSInfo1.ini",$+(4Tier,%wavestorm-4tierrun),Target) $+(f,%wavestorm-4tierrun) %wavestorm-levelsend } elseif ($readini(" $+ $scriptdirWSInfo1.ini",$+(4Tier,%wavestorm-4tierrun),Target) isnum 3 - 4) { .notice %wavechat Wavestorm %wavestorm-battleground %wavechat %wavestorm-4tiername $readini(" $+ $scriptdirWSInfo1.ini",$+(4Tier,%wavestorm-4tierrun),Target) $+(f,%wavestorm-4tierrun) %wavestorm-levelsend } if (%wavestorm-4tierrun == 11) { magiccommand 4 %wavestorm-4tierrun 2 } if ($hget(Player,Wavelength) != $round($calc(%wavestorm-4tierrun / 2),0)) { unset %wavestorm-fuse* } else { if (%wavestorm-fuse2 == $round($calc(%wavestorm-4tierrun / 2),0)) { unset %wavestorm-fuse2* } else { unset %wavestorm-fuse1* } wavefusefix } if (%wavestorm-s14dummy == 2) { dec %wavestorm-mp $int($calc($readini(" $+ $scriptdirWSInfo1.ini",$+(4Tier,%wavestorm-4tierrun),MP) / 2)) } else { dec %wavestorm-mp $readini(" $+ $scriptdirWSInfo1.ini",$+(4Tier,%wavestorm-4tierrun),MP) } if (%wavestorm-mp < 0) { set %wavestorm-mp 0 } if ($1 ison %wavechat) { set -n %wavestorm-windowlasttarget $1 } startbattletimer unset %wavestorm-4tier* } } alias magic2r { :magic2 if ($len($gettok($2-,$calc($numtok($2-,32) - 1),32)) == 2) { set %wavestorm-magic2id $right($gettok($2-,$calc($numtok($2-,32) - 1),32),1) } elseif ($len($gettok($2-,$calc($numtok($2-,32) - 1),32)) == 3) { set %wavestorm-magic2id $right($gettok($2-,$calc($numtok($2-,32) - 1),32),2) } if (%wavestorm-z01 == 1) { return } if ((%wavestorm-melee != 1) && ($7 != 1)) { if ((($1 == %wavestorm-enemy1) || ($1 == %wavestorm-enemy2) || ($1 == %wavestorm-enemy3) || ($1 == %wavestorm-enemy4)) && (($gettok($2-,$calc($numtok($2-,32) - 2),32) == 1) || ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 3))) { return } if ((($1 == %wavestorm-friend1) || ($1 == %wavestorm-friend2) || ($1 == %wavestorm-friend3)) && (($gettok($2-,$calc($numtok($2-,32) - 2),32) == 2) || ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 4))) { return } } else { if (($me isin $gettok($2-,$calc($numtok($2-,32) - 3),32)) && (($gettok($2-,$calc($numtok($2-,32) - 2),32) == 2) || ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 4))) { return } if (($me !isin $gettok($2-,$calc($numtok($2-,32) - 3),32)) && (($gettok($2-,$calc($numtok($2-,32) - 2),32) == 1) || ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 3))) { if (%wavestorm-magic2id != 56) { return } } } if ((%wavestorm-melee != 1) && (($gettok($2-,$calc($numtok($2-,32) - 2),32) == 1) || ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 3)) && (($1 != %wavestorm-friend1) && ($1 != %wavestorm-friend2) && ($1 != %wavestorm-friend3))) { return } if ((%wavestorm-melee != 1) && (($gettok($2-,$calc($numtok($2-,32) - 2),32) == 2) || ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 4)) && (($1 != %wavestorm-enemy1) && ($1 != %wavestorm-enemy2) && ($1 != %wavestorm-enemy3) && ($1 != %wavestorm-enemy4))) { return } if (%wavestorm-magic-wavebeast == 1) { unset %wavestorm-magic-wavebeast | return } if ((%wavestorm-z14 == 1) && (($gettok($2-,$calc($numtok($2-,32) - 2),32) == 2) || ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 4))) { display2 %wavechat grins as the crystal mirror in front of %wavestorm-gender2 shimmers, and bounces summon right back at $1 .notice $1 Wavestorm $gettok($2-,$calc($numtok($2-,32) - 5),32) $1 $gettok($2-,$calc($numtok($2-,32) - 1),32) $gettok($2-,$numtok($2-,32),32) unset %wavestorm-z14* display2 %wavechat puts %wavestorm-gender3 guard up as %wavestorm-gender3 reflect shield sizzles out return } if ((%wavestorm-z16 == 1) && (($gettok($2-,$calc($numtok($2-,32) - 2),32) == 2) || ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 4))) { dec %wavestorm-z16turn 1 display2 %wavechat gets ready to get smacked, but the obsidian cover in front of %wavestorm-gender2 cancels the magic attack unset %wavestorm-z16* if ((%wavestorm-z16turn < 1) || (%wavestorm-z16turn == $null)) { unset %wavestorm-z16* display2 %wavechat prepares to fight as %wavestorm-gender3 magic shield disintegrates } return } if ((%wavestorm-z18 == 1) && (($gettok($2-,$calc($numtok($2-,32) - 2),32) == 2) || ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 4))) { display2 %wavechat shifts into shadow form and phases right through the attack! if ((%wavestorm-z18turn < 1) || (%wavestorm-z18turn == $null)) { unset %wavestorm-z18* display2 %wavechat prepares to fight as %wavestorm-gender3 shadow abilities vanish } return } if (%wavestorm-z19 == 1) { display2 %wavechat throws up %wavestorm-gender3 arms and neutralizes the magic! if ((%wavestorm-z19turn < 1) || (%wavestorm-z19turn == $null)) { unset %wavestorm-z19* display2 %wavechat prepares to fight as %wavestorm-gender3 neutralization powers fades } return } if (((%wavestorm-magic2id == 61) || (%wavestorm-magic2id == 78)) && ($hget(Player,Modifier) isletter hj)) { return } var %wavestorm-magic2idcheck = %wavestorm-magic2id if ($len(%wavestorm-magic2idcheck) == 1) { var %wavestorm-magic2idcheck = 0 $+ %wavestorm-magic2idcheck } if (%wavestorm-melee != 1) { var %wavestorm-magic2idmelee == 15 } else { var %wavestorm-magic2idmelee == 0 } if (%wavestorm-magic2idcheck isin 10 21 34 35 37 61 74 78 87 95) { if (%wavestorm-z03) { dec %wavestorm-magic2idmelee 15 } if (%wavestorm-z05) { dec %wavestorm-magic2idmelee 15 } if (%wavestorm-z09) { dec %wavestorm-magic2idmelee 15 } if (%wavestorm-z10) { dec %wavestorm-magic2idmelee 15 } if (%wavestorm-z12) { dec %wavestorm-magic2idmelee 15 } if (%wavestorm-z13) { dec %wavestorm-magic2idmelee 15 } if (%wavestorm-z14) { dec %wavestorm-magic2idmelee 15 } if (%wavestorm-z15) { dec %wavestorm-magic2idmelee 15 } if (%wavestorm-z16) { dec %wavestorm-magic2idmelee 15 } if (%wavestorm-z18) { dec %wavestorm-magic2idmelee 15 } if (%wavestorm-z19) { dec %wavestorm-magic2idmelee 15 } if (%wavestorm-z20) { dec %wavestorm-magic2idmelee 15 } if (%wavestorm-z23) { dec %wavestorm-magic2idmelee 15 } } if ((%wavestorm-magic2idcheck isin 10 21 34 35 37 61 74 78 87 95) && ($rand(1,100) !isnum 1 - $calc(75 + %wavestorm-magic2idmelee + $gettok($1-,$numtok($1-,32),32) - $hget(Player,Level)))) { display2 %wavechat $replace($readini($+ $scriptdirWSInfo1.ini,2Tier $+ %wavestorm-magic2id,Failure2),!me,$me,!gender1,%wavestorm-gender1,!gender2,%wavestorm-gender2,!gender3,%wavestorm-gender3) return } if (($me isin $gettok($2-,$calc($numtok($2-,32) - 3),32)) && ((%wavestorm-magic2id == 78))) { magiccommand 2 %wavestorm-magic2id 2 $1 $8 } else { magiccommand 2 %wavestorm-magic2id 1 $1 $8 } if (%wavestorm-hpgain != $null) { set %wavestorm-hpgain $round(%wavestorm-hpgain,0) inc %wavestorm-hp %wavestorm-hpgain if (%wavestorm-hp > $hget(Player,HealthPoints)) { set %wavestorm-hp $hget(Player,HealthPoints) } } elseif (%wavestorm-hploss != $null) { set %wavestorm-hploss $round(%wavestorm-hploss,0) dec %wavestorm-hp %wavestorm-hploss inc %wavestorm-omega $int($calc($gettok($2-,$numtok($2-,32),32) ^ (1 / 3))) if (%wavestorm-omega >= 100) { set %wavestorm-omega 100 } } if (%wavestorm-mpgain != $null) { set %wavestorm-mpgain $round(%wavestorm-mpgain,0) inc %wavestorm-mp %wavestorm-mpgain if (%wavestorm-mp > $hget(Player,MagicPoints)) { set %wavestorm-mp $hget(Player,MagicPoints) } } elseif (%wavestorm-mploss != $null) { set %wavestorm-mploss $round(%wavestorm-mploss,0) dec %wavestorm-mp %wavestorm-mploss } if (%wavestorm-hp < 1) { set %wavestorm-hp 0 } if ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$right($gettok($2-,6,32),-1)),Saying2)) { display2 %wavechat $replace($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$right($gettok($2-,6,32),-1)),Saying2),!me,$me,!gender1,%wavestorm-gender1,!gender2,%wavestorm-gender2,!gender3,%wavestorm-gender3)) } if (%wavestorm-hpgain != $null) { display2 %wavechat gains %wavestorm-hpgain HP! Current HP: %wavestorm-hp } elseif (%wavestorm-hploss != $null) { var %soundtest = $rand(1,2) if (%soundtest == 2) { var %soundtest = 3 } wavesound %soundtest if ($gettok($2-,$calc($numtok($2-,32) - 2),32) isnum 1 - 2) { display2 %wavechat loses %wavestorm-hploss HP! Current HP: %wavestorm-hp } else { display2 %wavechat is hit! $me loses %wavestorm-hploss HP! Current HP: %wavestorm-hp } } if (%wavestorm-mpgain != $null) { display2 %wavechat gains %wavestorm-mpgain MP! Current MP: %wavestorm-mp } elseif (%wavestorm-mploss != $null) { display2 %wavechat loses %wavestorm-mploss MP! Current MP: %wavestorm-mp } unset %wavestorm-hpgain unset %wavestorm-hploss unset %wavestorm-mpgain unset %wavestorm-mploss if (%wavestorm-hp == 0) { nohp $1 1 $gettok($2-,$calc($numtok($2-,32) - 3),32) | return } } alias magic3r { :magic3 if ($len($gettok($2-,$calc($numtok($2-,32) - 1),32)) == 2) { set %wavestorm-magic3id $right($gettok($2-,$calc($numtok($2-,32) - 1),32),1) } elseif ($len($gettok($2-,$calc($numtok($2-,32) - 1),32)) == 3) { set %wavestorm-magic3id $right($gettok($2-,$calc($numtok($2-,32) - 1),32),2) } elseif ($len($gettok($2-,$calc($numtok($2-,32) - 1),32)) == 4) { set %wavestorm-magic3id $right($gettok($2-,$calc($numtok($2-,32) - 1),32),3) } if (%wavestorm-z01 == 1) { return } if ((%wavestorm-melee != 1) && ($7 != 1)) { if ((($1 == %wavestorm-enemy1) || ($1 == %wavestorm-enemy2) || ($1 == %wavestorm-enemy3) || ($1 == %wavestorm-enemy4)) && ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 3)) { return } if ((($1 == %wavestorm-friend1) || ($1 == %wavestorm-friend2) || ($1 == %wavestorm-friend3)) && ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 4)) { return } } else { if (($me isin $gettok($2-,$calc($numtok($2-,32) - 3),32)) && ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 4)) { return } if (($me !isin $gettok($2-,$calc($numtok($2-,32) - 3),32)) && ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 3)) { return } } if ((%wavestorm-melee != 1) && ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 3) && (($1 != %wavestorm-friend1) && ($1 != %wavestorm-friend2) && ($1 != %wavestorm-friend3))) { return } if ((%wavestorm-melee != 1) && ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 4) && (($1 != %wavestorm-enemy1) && ($1 != %wavestorm-enemy2) && ($1 != %wavestorm-enemy3) && ($1 != %wavestorm-enemy4))) { return } if (%wavestorm-magic-wavebeast == 1) { unset %wavestorm-magic-wavebeast | return } if ((%wavestorm-z14 == 1) && (($gettok($2-,$calc($numtok($2-,32) - 2),32) == 4) || ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 6))) { display2 %wavechat grins as the crystal mirror in front of %wavestorm-gender2 shimmers, and bounces summon right back at $1 .notice $1 Wavestorm $gettok($2-,$calc($numtok($2-,32) - 5),32) $1 $gettok($2-,$calc($numtok($2-,32) - 1),32) $gettok($2-,$numtok($2-,32),32) unset %wavestorm-z14* display2 %wavechat puts %wavestorm-gender3 guard up as %wavestorm-gender3 reflect shield sizzles out return } if ((%wavestorm-z16 == 1) && (($gettok($2-,$calc($numtok($2-,32) - 2),32) == 4) || ($gettok($2-,$calc($numtok($2-,32) - 2),32) == 6))) { dec %wavestorm-z16turn 1 display2 %wavechat gets ready to get smacked, but the obsidian cover in front of %wavestorm-gender2 cancels the magic attack unset %wavestorm-z16* if ((%wavestorm-z16turn < 1) || (%wavestorm-z16turn == $null)) { unset %wavestorm-z16* display2 %wavechat prepares to fight as %wavestorm-gender3 magic shield disintegrates } return } if ((%wavestorm-z18 == 1) && (($gettok($2-,$calc($numtok($2-,32) - 2),32) == 4) || ($gettok($2-,$calc($numtok($2-,32) - 6),32) == 4))) { display2 %wavechat shifts into shadow form and phases right through the attack! if ((%wavestorm-z18turn < 1) || (%wavestorm-z18turn == $null)) { unset %wavestorm-z18* display2 %wavechat prepares to fight as %wavestorm-gender3 shadow abilities vanish } return } if (%wavestorm-z19 == 1) { display2 %wavechat throws up %wavestorm-gender3 arms and neutralizes the magic! if ((%wavestorm-z19turn < 1) || (%wavestorm-z19turn == $null)) { unset %wavestorm-z19* display2 %wavechat prepares to fight as %wavestorm-gender3 neutralization powers fades } return } if ($me isin $gettok($2-,$calc($numtok($2-,32) - 3),32) { magiccommand 3 $right($gettok($2-,6,32),-1) 2 $1 $8 } else { magiccommand 3 $right($gettok($2-,6,32),-1) 2 $1 $8 } if (%wavestorm-hpgain != $null) { set %wavestorm-hpgain $round(%wavestorm-hpgain,0) inc %wavestorm-hp %wavestorm-hpgain if (%wavestorm-hp > $hget(Player,HealthPoints)) { set %wavestorm-hp $hget(Player,HealthPoints) } } elseif (%wavestorm-hploss != $null) { set %wavestorm-hploss $round(%wavestorm-hploss,0) dec %wavestorm-hp %wavestorm-hploss inc %wavestorm-omega $int($calc($gettok($2-,$numtok($2-,32),32) ^ (1 / 3))) if (%wavestorm-omega >= 100) { set %wavestorm-omega 100 } } if (%wavestorm-mpgain != $null) { set %wavestorm-mpgain $round(%wavestorm-mpgain,0) inc %wavestorm-mp %wavestorm-mpgain if (%wavestorm-mp > $hget(Player,MagicPoints)) { set %wavestorm-mp $hget(Player,MagicPoints) } } elseif (%wavestorm-mploss != $null) { set %wavestorm-mploss $round(%wavestorm-mploss,0) dec %wavestorm-mp %wavestorm-mploss } if (%wavestorm-hp < 1) { set %wavestorm-hp 0 } if (%wavestorm-hpgain != $null) { display2 %wavechat gains %wavestorm-hpgain HP! Current HP: %wavestorm-hp } elseif (%wavestorm-hploss != $null) { var %soundtest = $rand(1,2) if (%soundtest == 2) { var %soundtest = 3 } wavesound %soundtest if ($gettok($2-,$calc($numtok($2-,32) - 2),32) isnum 1 - 2) { display2 %wavechat loses %wavestorm-hploss HP! Current HP: %wavestorm-hp } else { display2 %wavechat is hit! $me loses %wavestorm-hploss HP! Current HP: %wavestorm-hp } } if (%wavestorm-mpgain != $null) { display2 %wavechat gains %wavestorm-mpgain MP! Current MP: %wavestorm-mp } elseif (%wavestorm-mploss != $null) { display2 %wavechat loses %wavestorm-mploss MP! Current MP: %wavestorm-mp } unset %wavestorm-hpgain unset %wavestorm-hploss unset %wavestorm-mpgain unset %wavestorm-mploss if (%wavestorm-hp == 0) { nohp $1 1 $gettok($2-,$calc($numtok($2-,32) - 3),32) | return } } alias fuse { if ((%wavestorm-battleon == 1) && (%wavestorm-z01 != 1) && (%wavestorm-z04 != 1) && (%wavestorm-z07 != 1)) { if (%wavestorm-wavebeast-suffer == 1) { display3 %wavechat You are currently suffering from Wavebeast symptoms and cannot fuse. return } if ($1 == weapon) { goto weapon } if ($1 !ison %wavechat) { display3 %wavechat You can only give magic energy to someone in the channel! return } if ((%wavestorm-battletimer != $null) && (%wavestorm-battletimer > 0)) { display3 %wavechat You have %wavestorm-battletimer more seconds before you can perform an action. return } if ($1 == $me) { display3 %wavechat You can't give magic energy to yourself! return } if ($hget(Player,Wavelength) == 0) { display3 %wavechat You have no wavelength and cannot give magic energy. Please choose another option. return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b02) == 1) { display3 %wavechat $1 has been knocked off the airship, and cannot be attacked until they get back on it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b09) == 1) { display3 %wavechat $1 has fallen in a pitfall, and cannot be attacked until they climb out of it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b17) == 1) { display3 %wavechat $1 has been knocked off the motorcycle, and cannot be attacked until they get back on it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b24) == 1) { display3 %wavechat $1 has been paralyzed by an electric floor, and cannot be attacked until they're unparalyzed return } if (%wavestorm-mp < 50) { display3 %wavechat You do not have enough MP to perform this fuse. Please choose another option. return } if ((%wavestorm-melee != 1) && (($1 == %wavestorm-enemy1) || ($1 == %wavestorm-enemy2) || ($1 == %wavestorm-enemy3) || ($1 == %wavestorm-enemy4))) { display3 %wavechat You can only give magic energy to a teammate: %wavestorm-friend1 %wavestorm-friend2 %wavestorm-friend3 return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,z01) == 1) { display3 %wavechat $1 has fallen. Only Honeydew Recall or Diamond Vitalize can be cast on a fallen person. return } dec %wavestorm-mp 50 display2 %wavechat throws some of %wavestorm-gender3 $hget(Player,Color) energy straight towards $1 .notice $1 Wavestorm %wavestorm-battleground $1 fuse $hget(Player,Wavelength) $hget(Player,Color) %wavestorm-levelsend startbattletimer return :weapon if ((%wavestorm-battletimer != $null) && (%wavestorm-battletimer > 0)) { display3 %wavechat You have %wavestorm-battletimer more seconds before you can perform an action. return } if ($hget(Player,Wavelength) == 0) { display3 %wavechat You have no wavelength and cannot give magic energy. Please choose another option. return } if (%wavestorm-mp < 50) { display3 %wavechat You do not have enough MP to perform this fuse. Please choose another option. return } if ($hget(Player,Modifier) != e) { display3 %wavechat You are not using the Energy Container modifier on your $hget(Player,Weaponname) to be able to perform this specialized fuse. Please choose another option. return } dec %wavestorm-mp 50 display2 %wavechat filters some of %wavestorm-gender3 $hget(Player,Color) energy into his $readini(" $+ $scriptdirWSInfo1.ini",Weapon,$+($hget(Player,Weapon),$hget(Player,Modifier))) set %wavestorm-modifier $hget(Player,Wavelength) startbattletimer } } alias drop { if ($1 !isnum 1 - 5) { display3 %wavechat Please type "/drop 1" through "/drop 6". return } if (($1 == 1) || (($1 == 3) && ($hget(Player,Modifier) == e))) { if (!%wavestorm-fuse1) { display3 %wavechat You don't have an energy fuse to drop! return } else { if ($dialog(Datascope)) { did -b datascope 18,24 did -r datascope 18 did -i datascope 18 1 Drop Fuse (1) } if ($1 == 3) { set %wavestorm-modifier %wavestorm-fuse1 display2 %wavechat drops the %wavestorm-fuse1color magic energy from %wavestorm-fuse1nick into %wavestorm-gender3 $readini(" $+ $scriptdirWSInfo1.ini",Weapon,$+($hget(Player,Weapon),$hget(Player,Modifier))) } else { display2 %wavechat drops the %wavestorm-fuse1color magic energy from %wavestorm-fuse1nick } unset %wavestorm-fuse1* if (%wavestorm-fuse2) { set %wavestorm-fuse1 %wavestorm-fuse2 set -n %wavestorm-fuse1nick %wavestorm-fuse2nick set -n %wavestorm-fuse1color %wavestorm-fuse2color unset %wavestorm-fuse2* if ($dialog(Datascope)) { did -b datascope 19,25 did -r datascope 19 did -i datascope 19 1 Drop Fuse (2) did -r datascope 18 did -i datascope 18 1 Drop Fuse (1 - $+(%wavestorm-fuse1color,$chr(41)) did -e datascope 18 if ($hget(Player,Modifier) == e) { did -e datascope 24 } } } datascoperefresh return } } elseif (($1 == 2) || (($1 == 4) && ($hget(Player,Modifier) == e))) { if (!%wavestorm-fuse2) { display3 %wavechat You don't have a second energy fuse to drop! return } else { if ($dialog(Datascope)) { did -b datascope 19,25 did -r datascope 19 did -i datascope 19 1 Drop Fuse (2) } if ($1 == 4) { set %wavestorm-modifier %wavestorm-fuse2 display2 %wavechat drops the %wavestorm-fuse2color magic energy from %wavestorm-fuse2nick into %wavestorm-gender3 $readini(" $+ $scriptdirWSInfo1.ini",Weapon,$+($hget(Player,Weapon),$hget(Player,Modifier))) } else { display2 %wavechat drops the %wavestorm-fuse2color magic energy from %wavestorm-fuse2nick } unset %wavestorm-fuse2* datascoperefresh } } elseif ($1 == 5) { if ($hget(Player,Modifier) != e) { display3 %wavechat You must be using Modifier E on your weapon to fuse to weapons. return } if (!%wavestorm-modifier) { display3 %wavechat You don't have a weapon fuse to drop! return } if ($dialog(Datascope)) { did -b datascope 26 did -r datascope 26 did -i datascope 26 1 Drop Weapon } if (%wavestorm-modifier == 1) { var %wavestorm-modifiere1 = Red } elseif (%wavestorm-modifier == 2) { var %wavestorm-modifiere1 = Yellow } elseif (%wavestorm-modifier == 3) { var %wavestorm-modifiere1 = Green } elseif (%wavestorm-modifier == 4) { var %wavestorm-modifiere1 = Blue } elseif (%wavestorm-modifier == 5) { var %wavestorm-modifiere1 = Purple } elseif (%wavestorm-modifier == 6) { var %wavestorm-modifiere1 = White } elseif (%wavestorm-modifier == 7) { var %wavestorm-modifiere1 = Beige } elseif (%wavestorm-modifier == 8) { var %wavestorm-modifiere1 = Black } elseif (%wavestorm-modifier == 9) { var %wavestorm-modifiere1 = Orange } elseif (%wavestorm-modifier == 10) { var %wavestorm-modifiere1 = Gray } display2 %wavechat drops the %wavestorm-modifiere1 magic energy out of %wavestorm-gender3 $readini(" $+ $scriptdirWSInfo1.ini",Weapon,$+($hget(Player,Weapon),$hget(Player,Modifier))) unset %wavestorm-modifier* datascoperefresh if (%wavestorm-mp > 50) { did -e datascope 27 } } } alias shop { if (%wavestorm-battleon != 1) { if (!$hget(Player)) { display3 %wavechat You have no stats to shop with! Please create a character before shopping. return } if ($1 == $null) { display3 %wavechat -------------- display3 %wavechat Wavestorm Shop display3 %wavechat You currently have $hget(Player,Credits) Omnis and $hget(Player,AbilityPoints) Ability Points. display3 %wavechat -------------- if ($hget(Player,Wavelength) == 0) { goto shopend } display3 %wavechat Spells var %wavestorm-shopspellnum 1 if ($hget(Player,Wavelength) == 2) { inc %wavestorm-shopspellnum $calc(7 * 1) } elseif ($hget(Player,Wavelength) == 3) { inc %wavestorm-shopspellnum $calc(7 * 2) } elseif ($hget(Player,Wavelength) == 4) { inc %wavestorm-shopspellnum $calc(7 * 3) } elseif ($hget(Player,Wavelength) == 5) { inc %wavestorm-shopspellnum $calc(7 * 4) } elseif ($hget(Player,Wavelength) == 6) { inc %wavestorm-shopspellnum $calc(7 * 5) } elseif ($hget(Player,Wavelength) == 7) { inc %wavestorm-shopspellnum $calc(7 * 6) } elseif ($hget(Player,Wavelength) == 8) { inc %wavestorm-shopspellnum $calc(7 * 7) } if ($hget(Player,Spell1) != 1) { display3 %wavechat 1. $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,%wavestorm-shopspellnum),Title) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,%wavestorm-shopspellnum),Description),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,%wavestorm-shopspellnum),AP) AP Points } else { display3 %wavechat 1. $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,%wavestorm-shopspellnum),Title) - You already have this spell. } if ($hget(Player,Spell2) != 1) { display3 %wavechat 2. $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 1)),Title) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 1)),Description),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 1)),AP) AP Points } else { display3 %wavechat 2. $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 1)),Title) - You already have this spell. } if ($hget(Player,Spell3) != 1) { display3 %wavechat 3. $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 2)),Title) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 2)),Description),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 2)),AP) AP Points } else { display3 %wavechat 3. $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 2)),Title) - You already have this spell. } if ($hget(Player,Spell4) != 1) { display3 %wavechat 4. $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 3)),Title) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 3)),Description),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 3)),AP) AP Points } else { display3 %wavechat 4. $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 3)),Title) - You already have this spell. } if ($hget(Player,Spell5) != 1) { display3 %wavechat 5. $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 4)),Title) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 4)),Description),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 4)),AP) AP Points } else { display3 %wavechat 5. $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 4)),Title) - You already have this spell. } if ($hget(Player,Spell6) != 1) { display3 %wavechat 6. $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 5)),Title) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 5)),Description),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 5)),AP) AP Points } else { display3 %wavechat 6. $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 5)),Title) - You already have this spell. } if ($hget(Player,Spell7) != 1) { display3 %wavechat 7. $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 6)),Title) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 6)),Description),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 6)),AP) AP Points } else { display3 %wavechat 7. $readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$calc(%wavestorm-shopspellnum + 6)),Title) - You already have this spell. } :shopend display3 %wavechat Items set %wavestorm-itemdisplay2num 1 :itemdisplay2loop display3 %wavechat $+($calc(%wavestorm-itemdisplay2num + 7),.) $readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,%wavestorm-itemdisplay2num),Title) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,%wavestorm-itemdisplay2num),Description),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,%wavestorm-itemdisplay2num),Credits) Omnis - Current amount: $hget(Player,$+(Item,%wavestorm-itemdisplay2num)) inc %wavestorm-itemdisplay2num 1 if (%wavestorm-itemdisplay2num <= 56) { goto itemdisplay2loop } unset %wavestorm-itemdisplay2num display3 %wavechat Modifiers if ($hget(Player,Modifiera) == 1) { display3 %wavechat 64. - You already have this modifier. } else { display3 %wavechat 64. $readini(" $+ $scriptdirWSInfo1.ini",Modifier,aname) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",Modifier,adesc),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",Modifier,aomni) Omnis } if ($hget(Player,Modifierb) == 1) { display3 %wavechat 64. - You already have this modifier. } else { display3 %wavechat 65. $readini(" $+ $scriptdirWSInfo1.ini",Modifier,bname) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",Modifier,bdesc),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",Modifier,bomni) Omnis } if ($hget(Player,Modifierc) == 1) { display3 %wavechat 66. - You already have this modifier. } else { display3 %wavechat 66. $readini(" $+ $scriptdirWSInfo1.ini",Modifier,cname) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",Modifier,cdesc),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",Modifier,comni) Omnis } if ($hget(Player,Modifierd) == 1) { display3 %wavechat 67. - You already have this modifier. } else { display3 %wavechat 67. $readini(" $+ $scriptdirWSInfo1.ini",Modifier,dname) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",Modifier,ddesc),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",Modifier,domni) Omnis } if ($hget(Player,Modifiere) == 1) { display3 %wavechat 68. - You already have this modifier. } else { display3 %wavechat 68. $readini(" $+ $scriptdirWSInfo1.ini",Modifier,ename) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",Modifier,edesc),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",Modifier,eomni) Omnis } if ($hget(Player,Modifierf) == 1) { display3 %wavechat 69. - You already have this modifier. } else { display3 %wavechat 69. $readini(" $+ $scriptdirWSInfo1.ini",Modifier,fname) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",Modifier,fdesc),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",Modifier,fomni) Omnis } if ($hget(Player,Modifierg) == 1) { display3 %wavechat 70. - You already have this modifier. } else { display3 %wavechat 70. $readini(" $+ $scriptdirWSInfo1.ini",Modifier,gname) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",Modifier,gdesc),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",Modifier,gomni) Omnis } if ($hget(Player,Modifierh) == 1) { display3 %wavechat 71. - You already have this modifier. } else { display3 %wavechat 71. $readini(" $+ $scriptdirWSInfo1.ini",Modifier,hname) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",Modifier,hdesc),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",Modifier,homni) Omnis } if ($hget(Player,Modifieri) == 1) { display3 %wavechat 72. - You already have this modifier. } else { display3 %wavechat 72. $readini(" $+ $scriptdirWSInfo1.ini",Modifier,iname) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",Modifier,idesc),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",Modifier,iomni) Omnis } if ($hget(Player,Modifierj) == 1) { display3 %wavechat 73. - You already have this modifier. } else { display3 %wavechat 73. $readini(" $+ $scriptdirWSInfo1.ini",Modifier,jname) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",Modifier,jdesc),$chr(41)) - $readini(" $+ $scriptdirWSInfo1.ini",Modifier,jomni) Omnis } display3 %wavechat -------------- } if ((($1 == 1) && ($hget(Player,Spell1) == 1)) || (($1 == 2) && ($hget(Player,Spell2) == 1)) || (($1 == 3) && ($hget(Player,Spell3) == 1)) || (($1 == 4) && ($hget(Player,Spell4) == 1)) || (($1 == 5) && ($hget(Player,Spell5) == 1)) || (($1 == 6) && ($hget(Player,Spell6) == 1)) || (($1 == 7) && ($hget(Player,Spell7) == 1))) { display3 %wavechat You already have that spell. You can't buy it again. return } if ((($1 == 1) && ($hget(Player,Spell1) != 1)) || (($1 == 2) && ($hget(Player,Spell2) != 1)) || (($1 == 3) && ($hget(Player,Spell3) != 1)) || (($1 == 4) && ($hget(Player,Spell4) != 1)) || (($1 == 5) && ($hget(Player,Spell5) != 1)) || (($1 == 6) && ($hget(Player,Spell6) != 1)) || (($1 == 7) && ($hget(Player,Spell7) != 1))) { var %wavestorm-shopspell = $calc(($hget(Player,Wavelength) * 7) - 7 + $1) if ($hget(Player,AbilityPoints) < $readini(" $+ $scriptdirWSInfo1.ini",1Tier $+ %wavestorm-shopspell,AP)) { display3 %wavechat You don't have enough Ability Points to buy this spell. return } hadd -m Player AbilityPoints $calc($hget(Player,AbilityPoints) - $readini(" $+ $scriptdirWSInfo1.ini",1Tier $+ %wavestorm-shopspell,AP)) hadd -m Player Spell $+ $1 1 display3 %wavechat You have purchased $+($readini(" $+ $scriptdirWSInfo1.ini",1Tier $+ %wavestorm-shopspell,Title),.) You now have $hget(Player,AbilityPoints) AP remaining. wavewindowreset set %wave-update 1 wave-sendstats return } if ($1 isnum 8 - 63) { set %wavestorm-shopitem $calc($1 - 7) if ($2) { set %wavestorm-shopmultiple $2 } else { set %wavestorm-shopmultiple 1 } if ($hget(Player,Credits) < $calc($readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,%wavestorm-shopitem),Credits) * %wavestorm-shopmultiple)) { display3 %wavechat This costs $calc($readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,%wavestorm-shopitem),Credits) * %wavestorm-shopmultiple) Omnis overall. You don't have enough Omnis to buy this item. unset %wavestorm-shopitem return } hadd -m Player Credits $calc($hget(Player,Credits) - $calc($readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,%wavestorm-shopitem),Credits)) * %wavestorm-shopmultiple) hadd -m Player $+(Item,%wavestorm-shopitem) $calc($hget(Player,$+(Item,%wavestorm-shopitem)) + %wavestorm-shopmultiple) if (%wavestorm-shopmultiple > 1) { if (($1 == 13) || ($1 == 15) || ($1 == 23)) { display3 %wavechat You have purchased %wavestorm-shopmultiple $+($left($readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,%wavestorm-shopitem),Title),-1),ies.) You now have $hget(Player,Credits) Omnis remaining. } elseif (($1 == 16) || ($1 == 31) || ($1 == 38)) { display3 %wavechat You have purchased %wavestorm-shopmultiple $+($readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,%wavestorm-shopitem),Title),es.) You now have $hget(Player,Credits) Omnis remaining. } else { display3 %wavechat You have purchased %wavestorm-shopmultiple $+($readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,%wavestorm-shopitem),Title),s.) You now have $hget(Player,Credits) Omnis remaining. } wavewindowreset } else { wavewindowreset display3 %wavechat You have purchased %wavestorm-shopmultiple $+($readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,%wavestorm-shopitem),Title),.) You now have $hget(Player,Credits) Omnis remaining. } unset %wavestorm-shopitem unset %wavestorm-shopmultiple set %wave-update 1 wave-sendstats return } if ($1 isnum 64 - 73) { set %wavestorm-shopmod $calc($1 - 63) if ($1 == 64) { var %wavestorm-shoplet = a } if ($1 == 65) { var %wavestorm-shoplet = b } if ($1 == 66) { var %wavestorm-shoplet = c } if ($1 == 67) { var %wavestorm-shoplet = d } if ($1 == 68) { var %wavestorm-shoplet = e } if ($1 == 69) { var %wavestorm-shoplet = f } if ($1 == 70) { var %wavestorm-shoplet = g } if ($1 == 71) { var %wavestorm-shoplet = h } if ($1 == 72) { var %wavestorm-shoplet = i } if ($1 == 73) { var %wavestorm-shoplet = j } if ($hget(Player,Modifier $+ %wavestorm-shoplet) == 1) { display3 %wavechat You already have this modifier. return } if ($hget(Player,Credits) < $readini(" $+ $scriptdirWSInfo1.ini",$+(Modifier),$+(%wavestorm-shoplet,omni))) { display3 %wavechat This costs $readini(" $+ $scriptdirWSInfo1.ini",Modifier,$+(%wavestorm-shoplet,omni)) Omnis overall. You don't have enough Omnis to buy this item. unset %wavestorm-shopmod unset %wavestorm-shoplet return } hadd -m Player Credits $calc($hget(Player,Credits) - $readini(" $+ $scriptdirWSInfo1.ini",Modifier,$+(%wavestorm-shoplet,omni))) hadd -m Player $+(Modifier,%wavestorm-shoplet) 1 display3 %wavechat You have purchased $+($readini(" $+ $scriptdirWSInfo1.ini",Modifier,$+(%wavestorm-shoplet,name)),.) You now have $hget(Player,Credits) Omnis remaining. unset %wavestorm-shopmod unset %wavestorm-shoplet set %wave-update 1 wave-sendstats return } } } alias item { if (%wavestorm-battleon == 1) { if (!$1-) { display3 %wavechat Current Items you have: display3 %wavechat -------------- set %wavestorm-itemdisplaynum 1 :itemdisplayloop if ($hget(Player,$+(Item,%wavestorm-itemdisplaynum)) > 0) { display3 %wavechat $+(%wavestorm-itemdisplaynum,.) $readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,%wavestorm-itemdisplaynum),Title) $+($chr(40),$readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,%wavestorm-itemdisplaynum),Description),$chr(41)) - $hget(Player,$+(Item,%wavestorm-itemdisplaynum)) } set %wavestorm-itemdisplaycheck 1 inc %wavestorm-itemdisplaynum 1 if (%wavestorm-itemdisplaynum <= 56) { goto itemdisplayloop } if (%wavestorm-itemdisplaycheck != 1) { display3 %wavechat You have no items. } unset %wavestorm-itemdisplay* } if ((!%wavestorm-battletimer) && (%wavestorm-z01 != 1) && (%wavestorm-z04 != 1) && (%wavestorm-z07 != 1)) { if (%wavestorm-battleground == s13) { display2 %wavechat cries out in irritation as a condor swoops down and snatches the item %wavestorm-gender1 was going to use right out of %wavestorm-gender3 hands! } if ($2 !ison %wavechat) { display3 %wavechat You can only use an item on someone in the channel! return } if ((($2 == %wavestorm-friend1) || ($2 == %wavestorm-friend2) || ($2 == %wavestorm-friend3) || (%wavestorm-melee == 1)) && (($1 isnum 1 - 7) || ($1 isnum 9 - 47)) && ($readini(" $+ $scriptdirWSInfo3.ini",$2,z01) == 1)) { display3 %wavechat $2 has fallen; you can't use this item on a fallen person. return } if ((($2 == %wavestorm-friend1) || ($2 == %wavestorm-friend2) || ($2 == %wavestorm-friend3) || (%wavestorm-melee == 1)) && ($1 == 8) && ($readini(" $+ $scriptdirWSInfo3.ini",$2,z01) != 1)) { display3 %wavechat You cannot use a Paragon on a person that's still alive. return } if (%wavestorm-z23 == 1) { goto z23skip } if ((%wavestorm-melee == 1) && (($1 isnum 1 - 6) || ($1 isnum 9 - 12) || ($1 == 14) || ($1 isnum 16 - 17) || ($1 == 19) || ($1 == 22) || ($1 == 38)) && ($2 != $me) && ($?!="This item is a beneficial item designed to be used on yourself or your teammates. Are you sure you want to use it on an enemy?" == $false)) { return } if ((%wavestorm-melee == 1) && (($1 isnum 7 - 8) || ($1 == 13) || ($1 == 15) || ($1 == 18) || ($1 isnum 20 - 21) || ($1 isnum 23 - 37) || ($1 isnum 39 - 56)) && ($2 == $me) && ($?!="This item is a harmful item designed to be used on your enemies. Are you sure you want to use it on yourself?" == $false)) { return } :z23skip var %wavestorm-target = $2 if (%wavestorm-z23 == 1) { if ($ini(" $+ $scriptdirWSInfo3.ini",0) > 0) { var %wavestorm-target = $ini(" $+ $scriptdirWSInfo3.ini",$rand(1,$ini(" $+ $scriptdirWSInfo3.ini",0))) } else { :blurtarget1 var %wavestorm-target = $nick(%wavechat,$rand(1,$nick(%wavechat,0))) if ((%wavestorm-target == $me) && ($nick(%wavechat,0) > 1)) { goto blurtarget } } } if ($1 == 1) { if ($hget(Player,Item1) < 1) { display3 %wavechat You don't have any Medicines to take. return } if (((%wavestorm-target == $me) || (%wavestorm-target == $null)) && (%wavestorm-hp >= $hget(Player,HealthPoints))) { display3 %wavechat You're already at max health. return } if ((%wavestorm-target == $me) || (!%wavestorm-target)) { hadd -m Player Item1 $calc($hget(Player,Item1) - 1) inc %wavestorm-hp 50 if (%wavestorm-hp > $hget(Player,HealthPoints)) { set %wavestorm-hp $hget(Player,HealthPoints) } display2 %wavechat takes a Medicine and gains 50 HP! Current HP: %wavestorm-hp } else { if ((%wavestorm-target == %wavestorm-friend1) || (%wavestorm-target == %wavestorm-friend2) || (%wavestorm-target == %wavestorm-friend3) || (%wavestorm-melee == 1)) { hadd -m Player Item1 $calc($hget(Player,Item1) - 1) display2 %wavechat uses a Medicine on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i01 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Medicines on teammates. } } } if ($1 == 2) { if ($hget(Player,Item2) < 1) { display3 %wavechat You don't have any Medicants to take. return } if (((%wavestorm-target == $me) || (%wavestorm-target == $null)) && (%wavestorm-hp >= $hget(Player,HealthPoints))) { display3 %wavechat You're already at max health. return } if ((%wavestorm-target == $me) || (!%wavestorm-target)) { hadd -m Player Item2 $calc($hget(Player,Item2) - 1) inc %wavestorm-hp 350 if (%wavestorm-hp > $hget(Player,HealthPoints)) { set %wavestorm-hp $hget(Player,HealthPoints) } display2 %wavechat takes a Medicant and gains 350 HP! Current HP: %wavestorm-hp } else { if ((%wavestorm-target == %wavestorm-friend1) || (%wavestorm-target == %wavestorm-friend2) || (%wavestorm-target == %wavestorm-friend3) || (%wavestorm-melee == 1)) { hadd -m Player Item2 $calc($hget(Player,Item2) - 1) display2 %wavechat uses a Medicant on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i02 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Medicants on teammates. } } } if ($1 == 3) { if ($hget(Player,Item3) < 1) { display3 %wavechat You don't have any Pharmacons to take. return } if (((%wavestorm-target == $me) || (%wavestorm-target == $null)) && (%wavestorm-hp >= $hget(Player,HealthPoints))) { display3 %wavechat You're already at max health. return } if ((%wavestorm-target == $me) || (!%wavestorm-target)) { hadd -m Player Item3 $calc($hget(Player,Item3) - 1) inc %wavestorm-hp 2000 if (%wavestorm-hp > $hget(Player,HealthPoints)) { set %wavestorm-hp $hget(Player,HealthPoints) } display2 %wavechat takes a Pharmacon and gains 2000 HP! Current HP: %wavestorm-hp } else { if ((%wavestorm-target == %wavestorm-friend1) || (%wavestorm-target == %wavestorm-friend2) || (%wavestorm-target == %wavestorm-friend3) || (%wavestorm-melee == 1)) { hadd -m Player Item3 $calc($hget(Player,Item3) - 1) display2 %wavechat uses a Pharmacon on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i03 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Pharmacons on teammates. } } } if ($1 == 4) { if ($hget(Player,Item4) < 1) { display3 %wavechat You don't have any Mystics to take. return } if (((%wavestorm-target == $me) || (%wavestorm-target == $null)) && (%wavestorm-mp >= $hget(Player,MagicPoints))) { display3 %wavechat You're already at max MP. return } if ((%wavestorm-target == $me) || (!%wavestorm-target)) { if ($hget(Player,Wavelength) == 0) { display3 %wavechat You don't have a Wavelength and cannot use this item on yourself! return } hadd -m Player Item4 $calc($hget(Player,Item4) - 1) inc %wavestorm-mp 50 if (%wavestorm-mp > $hget(Player,MagicPoints)) { set %wavestorm-mp $hget(Player,MagicPoints) } display2 %wavechat takes a Mystic and gains 50 MP! Current MP: %wavestorm-mp } else { if ((%wavestorm-target == %wavestorm-friend1) || (%wavestorm-target == %wavestorm-friend2) || (%wavestorm-target == %wavestorm-friend3) || (%wavestorm-melee == 1)) { hadd -m Player Item4 $calc($hget(Player,Item4) - 1) display2 %wavechat uses a Mystic on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i04 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Mystics on teammates. } } } if ($1 == 5) { if ($hget(Player,Item5) < 1) { display3 %wavechat You don't have any Manas to take. return } if (((%wavestorm-target == $me) || (%wavestorm-target == $null)) && (%wavestorm-mp >= $hget(Player,MagicPoints))) { display3 %wavechat You're already at max MP. return } if ((%wavestorm-target == $me) || (!%wavestorm-target)) { if ($hget(Player,Wavelength) == 0) { display3 %wavechat You don't have a Wavelength and cannot use this item on yourself! return } hadd -m Player Item5 $calc($hget(Player,Item5) - 1) inc %wavestorm-mp 250 if (%wavestorm-mp > $hget(Player,MagicPoints)) { set %wavestorm-mp $hget(Player,MagicPoints) } display2 %wavechat takes a Mana and gains 250 MP! Current MP: %wavestorm-mp } else { if ((%wavestorm-target == %wavestorm-friend1) || (%wavestorm-target == %wavestorm-friend2) || (%wavestorm-target == %wavestorm-friend3) || (%wavestorm-melee == 1)) { hadd -m Player Item5 $calc($hget(Player,Item5) - 1) display2 %wavechat uses a Mana on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i05 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Manas on teammates. } } } if ($1 == 6) { if ($hget(Player,Item6) < 1) { display3 %wavechat You don't have any Nostrums to take. return } if (((%wavestorm-target == $me) || (%wavestorm-target == $null)) && ((%wavestorm-hp >= $hget(Player,HealthPoints)) && (%wavestorm-mp >= $hget(Player,MagicPoints)))) { display3 %wavechat You're already at max HP and MP. return } if ((%wavestorm-target == $me) || (!%wavestorm-target)) { hadd -m Player Item6 $calc($hget(Player,Item6) - 1) set %wavestorm-hpgain $calc($hget(Player,HealthPoints) - %wavestorm-hp) set %wavestorm-mpgain $calc($hget(Player,MagicPoints) - %wavestorm-mp) set %wavestorm-hp $hget(Player,HealthPoints) set %wavestorm-mp $hget(Player,MagicPoints) display2 %wavechat takes a Nostrum and gains %wavestorm-hpgain HP and %wavestorm-mpgain MP! Current HP: %wavestorm-hp - Current MP: %wavestorm-mp } else { if ((%wavestorm-target == %wavestorm-friend1) || (%wavestorm-target == %wavestorm-friend2) || (%wavestorm-target == %wavestorm-friend3) || (%wavestorm-melee == 1)) { hadd -m Player Item6 $calc($hget(Player,Item6) - 1) display2 %wavechat uses a Nostrum on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i06 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Nostrums on teammates. } } } if ($1 == 7) { if ($hget(Player,Item7) < 1) { display3 %wavechat You don't have any Panaceas to take. return } hadd -m Player Item7 $calc($hget(Player,Item7) - 1) set %wavestorm-hpgain $calc($hget(Player,HealthPoints) - %wavestorm-hp) set %wavestorm-mpgain $calc($hget(Player,MagicPoints) - %wavestorm-mp) set %wavestorm-hp $hget(Player,HealthPoints) set %wavestorm-mp $hget(Player,MagicPoints) display2 %wavechat throws a Panacea into the air! .notice %wavechat Wavestorm %wavestorm-battleground panacea i07 %wavestorm-levelsend %wavestorm-z23 display2 %wavechat gains %wavestorm-hpgain HP and %wavestorm-mpgain MP! Current HP: %wavestorm-hp - Current MP: %wavestorm-mp } if ($1 == 8) { if ($hget(Player,Item8) < 1) { display3 %wavechat You don't have any Paragons to use. return } if (%wavestorm-target == $me) { display3 %wavechat You can't use a Paragon on yourself! return } if ((%wavestorm-target != %wavestorm-friend1) && (%wavestorm-target != %wavestorm-friend2) && (%wavestorm-target != %wavestorm-friend3)) { display3 %wavechat You can only use a Paragon on a teammate. return } if (((%wavestorm-target == %wavestorm-friend1) && (%wavestorm-friend1status != 1)) && ((%wavestorm-target == %wavestorm-friend2) && (%wavestorm-friend2status != 1)) && ((%wavestorm-target == %wavestorm-friend3) && (%wavestorm-friend3status != 1))) { display3 %wavechat You can only use a Paragon on a teammate that's fallen. return } if (((%wavestorm-target == %wavestorm-friend1) && ($readini(" $+ $scriptdirWSInfo3.ini",%wavestorm-friend1,z01) == 1)) || ((%wavestorm-target == %wavestorm-friend2) && ($readini(" $+ $scriptdirWSInfo3.ini",%wavestorm-friend2,z01) == 1)) || ((%wavestorm-target == %wavestorm-friend3) && ($readini(" $+ $scriptdirWSInfo3.ini",%wavestorm-friend3,z01) == 1))) { hadd -m Player Item8 $calc($hget(Player,Item8) - 1) display2 %wavechat tosses a Paragon at $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i08 %wavestorm-levelsend %wavestorm-z23 } } if ($1 == 9) { if ($hget(Player,Item9) < 1) { display3 %wavechat You don't have any Neutralizers to take. return } if (((%wavestorm-target == $me) || (%wavestorm-target == $null)) && ((%wavestorm-z02 == 0) || (%wavestorm-z02 == $null))) { display3 %wavechat You're not poisoned. return } if ((%wavestorm-target == $me) || (!%wavestorm-target)) { hadd -m Player Item9 $calc($hget(Player,Item9) - 1) unset %wavestorm-z02* display2 %wavechat uses a Neutralizer! $me is no longer poisoned! } else { if ((%wavestorm-target == %wavestorm-friend1) || (%wavestorm-target == %wavestorm-friend2) || (%wavestorm-target == %wavestorm-friend3) || (%wavestorm-melee == 1)) { hadd -m Player Item9 $calc($hget(Player,Item9) - 1) display2 %wavechat uses a Neutralizer on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i09 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Neutralizers on teammates. } } } if ($1 == 10) { if ($hget(Player,Item10) < 1) { display3 %wavechat You don't have any Lentors to take. return } if (((%wavestorm-target == $me) || (%wavestorm-target == $null)) && ((%wavestorm-z05 == 0) || (%wavestorm-z05 == $null))) { display3 %wavechat You're not hasted. return } if (((%wavestorm-target == $me) || (!%wavestorm-target)) && (%wavestorm-z05 == 1) && (%wavestorm-z17 != 1)) { hadd -m Player Item10 $calc($hget(Player,Item10) - 1) unset %wavestorm-z05* display2 %wavechat uses a Lentor! $me is no longer hasted! } else { if ((%wavestorm-target == %wavestorm-friend1) || (%wavestorm-target == %wavestorm-friend2) || (%wavestorm-target == %wavestorm-friend3) || (%wavestorm-melee == 1)) { hadd -m Player Item10 $calc($hget(Player,Item10) - 1) display2 %wavechat uses a Lentor on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i10 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Lentors on teammates. } } } if ($1 == 11) { if ($hget(Player,Item11) < 1) { display3 %wavechat You don't have any Valors to take. return } if (((%wavestorm-target == $me) || (%wavestorm-target == $null)) && ((%wavestorm-z06 == 0) || (%wavestorm-z06 == $null))) { display3 %wavechat You're not slowed. return } if (((%wavestorm-target == $me) || (!%wavestorm-target)) && (%wavestorm-z06 == 1) && (%wavestorm-z17 != 1)) { hadd -m Player Item11 $calc($hget(Player,Item11) - 1) unset %wavestorm-z06* display2 %wavechat uses a Valor! $me is no longer slowed! } else { if ((%wavestorm-target == %wavestorm-friend1) || (%wavestorm-target == %wavestorm-friend2) || (%wavestorm-target == %wavestorm-friend3) || (%wavestorm-melee == 1)) { hadd -m Player Item11 $calc($hget(Player,Item11) - 1) display2 %wavechat uses a Valor on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i11 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Valors on teammates. } } } if ($1 == 12) { if ($hget(Player,Item12) < 1) { display3 %wavechat You don't have any Vigors to take. return } if (((%wavestorm-target == $me) || (%wavestorm-target == $null)) && ((%wavestorm-z08 == 0) || (%wavestorm-z08 == $null))) { display3 %wavechat You're not weakened. return } if ((%wavestorm-target == $me) || (!%wavestorm-target)) { hadd -m Player Item12 $calc($hget(Player,Item12) - 1) unset %wavestorm-z04* unset %wavestorm-z08* display2 %wavechat uses a Vigor! $me is no longer weakened! } else { if ((%wavestorm-target == %wavestorm-friend1) || (%wavestorm-target == %wavestorm-friend2) || (%wavestorm-target == %wavestorm-friend3) || (%wavestorm-melee == 1)) { hadd -m Player Item12 $calc($hget(Player,Item12) - 1) display2 %wavechat uses a Vigor on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i12 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Vigors on teammates. } } if ((%wavestorm-target == $me) && (($1 == 13) || ($1 == 15) || ($1 == 18) || ($1 == 20) || ($1 isnum 21 - 35 ) || ($1 isnum 37 - 47 ))) { display3 %wavechat You cannot use this item on yourself. return } } if ($1 == 13) { if ($hget(Player,Item13) < 1) { display3 %wavechat You don't have any Cachexies to use. return } if ((%wavestorm-target == %wavestorm-enemy1) || (%wavestorm-target == %wavestorm-enemy2) || (%wavestorm-target == %wavestorm-enemy3) || (%wavestorm-target == %wavestorm-enemy4) || (%wavestorm-melee == 1)) { hadd -m Player Item13 $calc($hget(Player,Item13) - 1) display2 %wavechat uses a Cachexy on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i13 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Cachexies on enemies. } } if ($1 == 14) { if ($hget(Player,Item14) < 1) { display3 %wavechat You don't have any Travails to use. return } if (((%wavestorm-target == $me) || (%wavestorm-target == $null)) && (%wavestorm-z12 == 1)) { display3 %wavechat You're already physically boosted. return } if ((%wavestorm-target == $me) || (!%wavestorm-target)) { hadd -m Player Item14 $calc($hget(Player,Item14) - 1) if (%wavestorm-z08 == 1) { unset %wavestorm-z08 display2 %wavechat uses a Travail! $me watches as %wavestorm-gender3 physical strength jumps back to normal } else { unset %wavestorm-z08 set %wavestorm-z12 1 display2 %wavechat uses a Travail! $me has %wavestorm-gender3 physical strength boosted! } else { if ((%wavestorm-target == %wavestorm-friend1) || (%wavestorm-target == %wavestorm-friend2) || (%wavestorm-target == %wavestorm-friend3) || (%wavestorm-melee == 1)) { hadd -m Player Item14 $calc($hget(Player,Item14) - 1) display2 %wavechat uses a Travail on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i14 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Travails on teammates. } } } } if ($1 == 15) { if ($hget(Player,Item15) < 1) { display3 %wavechat You don't have any Atonies to use. return } if ((%wavestorm-target == %wavestorm-enemy1) || (%wavestorm-target == %wavestorm-enemy2) || (%wavestorm-target == %wavestorm-enemy3) || (%wavestorm-target == %wavestorm-enemy4) || (%wavestorm-melee == 1)) { hadd -m Player Item15 $calc($hget(Player,Item15) - 1) display2 %wavechat uses an Atony on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i15 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Atonies on enemies. } } if ($1 == 16) { if ($hget(Player,Item16) < 1) { display3 %wavechat You don't have any Abatises to use. return } if (((%wavestorm-target == $me) || (%wavestorm-target == $null)) && (%wavestorm-z03 == 1)) { display3 %wavechat You already have a physical shield. return } if ((%wavestorm-target == $me) || (!%wavestorm-target)) { hadd -m Player Item16 $calc($hget(Player,Item16) - 1) set %wavestorm-z03 3 set %wavestorm-z03turn 3 display2 %wavechat uses an Abatis! $me smiles as a physical shield sets itself up in front of $+(%wavestorm-gender2,!) else { if ((%wavestorm-target == %wavestorm-friend1) || (%wavestorm-target == %wavestorm-friend2) || (%wavestorm-target == %wavestorm-friend3) || (%wavestorm-melee == 1)) { hadd -m Player Item16 $calc($hget(Player,Item16) - 1) display2 %wavechat uses an Abatis on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i16 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Abastises on teammates. } } } } if ($1 == 17) { if ($hget(Player,Item17) < 1) { display3 %wavechat You don't have any Screens to use. return } if (((%wavestorm-target == $me) || (%wavestorm-target == $null)) && (%wavestorm-z16 == 1)) { display3 %wavechat You already have a magical shield. return } if ((%wavestorm-target == $me) || (!%wavestorm-target)) { hadd -m Player Item17 $calc($hget(Player,Item17) - 1) set %wavestorm-z16 1 set %wavestorm-z16turn 3 display2 %wavechat uses a Screen! $me smiles as a magical shield sets itself up in front of $+(%wavestorm-gender2,!) else { if ((%wavestorm-target == %wavestorm-friend1) || (%wavestorm-target == %wavestorm-friend2) || (%wavestorm-target == %wavestorm-friend3) || (%wavestorm-melee == 1)) { hadd -m Player Item17 $calc($hget(Player,Item17) - 1) display2 %wavechat uses a Screen on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i17 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Screens on teammates. } } } } if ($1 == 18) { if ($hget(Player,Item18) < 1) { display3 %wavechat You don't have any Abolishers to use. return } if ((%wavestorm-target == %wavestorm-enemy1) || (%wavestorm-target == %wavestorm-enemy2) || (%wavestorm-target == %wavestorm-enemy3) || (%wavestorm-target == %wavestorm-enemy4) || (%wavestorm-melee == 1)) { hadd -m Player Item18 $calc($hget(Player,Item18) - 1) display2 %wavechat uses an Abolisher on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i18 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Abolishers on enemies. } } if ($1 == 19) { if ($hget(Player,Item19) < 1) { display3 %wavechat You don't have any Recoils to use. return } if (((%wavestorm-target == $me) || (%wavestorm-target == $null)) && (%wavestorm-z10 == 1)) { display3 %wavechat Your dodge abitlity is already boosted. return } if ((%wavestorm-target == $me) || (!%wavestorm-target-)) { hadd -m Player Item19 $calc($hget(Player,Item19) - 1) set %wavestorm-z10 1 display2 %wavechat uses a Recoil! $me grins as %wavestorm-gender1 dodge ability gets boosted else { if ((%wavestorm-target == %wavestorm-friend1) || (%wavestorm-target == %wavestorm-friend2) || (%wavestorm-target == %wavestorm-friend3) || (%wavestorm-melee == 1)) { hadd -m Player Item19 $calc($hget(Player,Item19) - 1) display2 %wavechat uses a Recoil on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i19 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Recoils on teammates. } } } } if ($1 == 20) { if ($hget(Player,Item20) < 1) { display3 %wavechat You don't have any Cataleptics to use. return } if ((%wavestorm-target == %wavestorm-enemy1) || (%wavestorm-target == %wavestorm-enemy2) || (%wavestorm-target == %wavestorm-enemy3) || (%wavestorm-target == %wavestorm-enemy4) || (%wavestorm-melee == 1)) { hadd -m Player Item20 $calc($hget(Player,Item20) - 1) display2 %wavechat uses a Cataleptic on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i20 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Cataleptics on enemies. } } if ($1 == 21) { if ($hget(Player,Item21) < 1) { display3 %wavechat You don't have any Frantics to use. return } if (((%wavestorm-target == $me) || (%wavestorm-target == $null)) && (%wavestorm-z17 == 1)) { display3 %wavechat You're already frenzied. return } if ((%wavestorm-target == $me) || (!%wavestorm-target)) { hadd -m Player Item21 $calc($hget(Player,Item21) - 1) set %wavestorm-z17 1 unset %wavestorm-z17nick if ((%wavestorm-z05 isnum 1 - 3) || (%wavestorm-z05 == 8)) { set %wavestorm-z17haste 1 } .timerfrenzy 1 45 wavestorm-frenzycool if (%wavestorm-z17haste == 1) { display2 %wavechat uses a Frantic! $me screams in pain as %wavestorm-gender3 already hasted body shifts into frenzied mode, shooting %wavestorm-gender3 body past its limits } else { display2 %wavechat uses a Frantic! $me loses control of %wavestorm-gender3 body and shifts into frenzied mode! } } else { hadd -m Player Item21 $calc($hget(Player,Item21) - 1) display2 %wavechat uses a Frantic on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i21 %wavestorm-levelsend %wavestorm-z23 } } if ($1 == 22) { if ($hget(Player,Item22) < 1) { display3 %wavechat You don't have any Immotiles to use. return } if ((%wavestorm-target == %wavestorm-friend1) || (%wavestorm-target == %wavestorm-friend2) || (%wavestorm-target == %wavestorm-friend3)|| (%wavestorm-melee == 1)) { hadd -m Player Item18 $calc($hget(Player,Item22) - 1) display2 %wavechat uses an Immotile on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i22 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Immotiles on teammates. } } if ($1 == 38) { if ($hget(Player,Item38) < 1) { display3 %wavechat You don't have any Dispatches to use. return } if (((%wavestorm-target == $me) || (%wavestorm-target == $null)) && (%wavestorm-z17 != 1) && ((%wavestorm-z05 == 1) || (%wavestorm-s05mode isnum 1 - 2) || (%wavestorm-z06 == 1) || (%wavestorm-b14 == 1) || (%wavestorm-b12 == 1) || (%wavestorm-b27 == 1))) { display3 %wavechat You're can't use a Dispatch if you're already hasted, slowed, or frenzied. return } if ((%wavestorm-target == $me) || (!%wavestorm-target)) { hadd -m Player Item38 $calc($hget(Player,Item38) - 1) set %wavestorm-z05 2 set %wavestorm-z05turn 5 display2 %wavechat uses a Dispatch! $me grins as %wavestorm-gender1 can suddenly move twice as fast! } else { if ((%wavestorm-target == %wavestorm-friend1) || (%wavestorm-target == %wavestorm-friend2) || (%wavestorm-target == %wavestorm-friend3) || (%wavestorm-melee == 1)) { hadd -m Player Item38 $calc($hget(Player,Item38) - 1) display2 %wavechat uses a Dispatch on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i38 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Dispatches on teammates. } } } if ($1 == 39) { if ($hget(Player,Item39) < 1) { display3 %wavechat You don't have any Torpors to use. return } if ((%wavestorm-target == %wavestorm-enemy1) || (%wavestorm-target == %wavestorm-enemy2) || (%wavestorm-target == %wavestorm-enemy3) || (%wavestorm-target == %wavestorm-enemy4) || (%wavestorm-melee == 1)) { hadd -m Player Item39 $calc($hget(Player,Item39) - 1) display2 %wavechat uses a Torpor on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i39 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Torpors on enemies. } } if ($1 == 40) { if ($hget(Player,Item40) < 1) { display3 %wavechat You don't have any Comas to use. return } if ((%wavestorm-target == %wavestorm-enemy1) || (%wavestorm-target == %wavestorm-enemy2) || (%wavestorm-target == %wavestorm-enemy3) || (%wavestorm-target == %wavestorm-enemy4) || (%wavestorm-melee == 1)) { hadd -m Player Item40 $calc($hget(Player,Item40) - 1) display2 %wavechat uses a Coma on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i40 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Comas on enemies. } } if (($1 isnum 23 - 37) || ($1 isnum 41 - 49) || ($1 isnum 51 - 56)) { if ($1 == 42) { set -n %wavestorm-itemarticle an } else { set -n %wavestorm-itemarticle a } set -n %wavestorm-itemusename1 $readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,$1),Title) if ($1 == 23) { set -n %wavestorm-itemusename2 $+($left($readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,$1),Title),-1),ies) } elseif (($1 == 31) || ($1 == 38)) { set -n %wavestorm-itemusename2 $+($readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,$1),Title),es) } else { set -n %wavestorm-itemusename2 $+($readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,$1),Title),s) } if ($hget(Player,$+(Item,$1)) < 1) { display3 %wavechat You don't have any %wavestorm-itemusename2 to use. return } if ((%wavestorm-target == %wavestorm-enemy1) || (%wavestorm-target == %wavestorm-enemy2) || (%wavestorm-target == %wavestorm-enemy3) || (%wavestorm-target == %wavestorm-enemy4) || (%wavestorm-melee == 1)) { hadd -m Player $+(Item,$1) $calc($hget(Player,$+(Item,$1)) - 1) display2 %wavechat uses %wavestorm-itemarticle %wavestorm-itemusename1 on $+(%wavestorm-target,!) $me $replace($readini(" $+ $scriptdirWSInfo1.ini",$+(Shop,$1),Descrip2),!target,%wavestorm-target) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target $+(i,$1) %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use %wavestorm-itemusename2 on enemies. } unset %wavestorm-itemarticle unset %wavestorm-itemusename* } if ($1 == 50) { if ($hget(Player,Item50) < 1) { display3 %wavechat You don't have any Muddles to use. return } if ((%wavestorm-target == %wavestorm-enemy1) || (%wavestorm-target == %wavestorm-enemy2) || (%wavestorm-target == %wavestorm-enemy3) || (%wavestorm-target == %wavestorm-enemy4) || (%wavestorm-melee == 1)) { hadd -m Player Item50 $calc($hget(Player,Item50) - 1) display2 %wavechat uses a Muddle on $+(%wavestorm-target,!) set -n %wavestorm-windowlasttarget %wavestorm-target .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target i50 %wavestorm-levelsend %wavestorm-z23 } else { display3 %wavechat You can only use Muddles on enemies. } } startbattletimer } } } alias omega { if ((%wavestorm-battleon == 1) && (%wavestorm-z01 != 1) && (%wavestorm-z04 != 1) && (%wavestorm-z07 != 1)) { if ((%wavestorm-omega != 100) && (%wavestorm-hp > $int($calc($hget(Player,HealthPoints) * 0.07)))) { display3 %wavechat You can't do a hyper move at this time! return } if ($1 !ison %wavechat) { display3 %wavechat You can only attack someone in the channel! return } if ((%wavestorm-battletimer != $null) && (%wavestorm-battletimer > 0)) { display3 %wavechat You have %wavestorm-battletimer more seconds before you can perform an action. return } if (($1 == %wavestorm-enemy1) || ($1 == %wavestorm-enemy2) || ($1 == %wavestorm-enemy3) || ($1 == %wavestorm-enemy4) || ((%wavestorm-melee == 1) && ($1 ison %wavechat) && ($1 != $me))) { if ($readini(" $+ $scriptdirWSInfo3.ini",$1,z01) == 1) { display3 %wavechat $1 has fallen and cannot be attacked return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b02) == 1) { display3 %wavechat $1 has been knocked off the airship, and cannot be attacked until they get back on it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b09) == 1) { display3 %wavechat $1 has fallen in a pitfall, and cannot be attacked until they climb out of it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b17) == 1) { display3 %wavechat $1 has been knocked off the motorcycle, and cannot be attacked until they get back on it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b24) == 1) { display3 %wavechat $1 has been paralyzed by an electric floor, and cannot be attacked until they're unparalyzed return } if ($hget(Player,Wavelength) == 1) { set %wavestorm-levelsend $calc($hget(Player,Level) * 9 / 10) set %wavestorm-weaponrand $rand(1,4) } elseif ($hget(Player,Wavelength) == 2) { set %wavestorm-levelsend $calc($hget(Player,Level) * 9 / 10) set %wavestorm-weaponrand $rand(5,8) } elseif ($hget(Player,Wavelength) == 3) { set %wavestorm-levelsend $calc($hget(Player,Level) * 9 / 10) set %wavestorm-weaponrand $rand(9,12) } elseif ($hget(Player,Wavelength) == 4) { set %wavestorm-levelsend $calc($hget(Player,Level) * 8 / 10) set %wavestorm-weaponrand $rand(13,16) } elseif ($hget(Player,Wavelength) == 5) { set %wavestorm-levelsend $calc($hget(Player,Level) * 8 / 10) set %wavestorm-weaponrand $rand(17,20) } elseif ($hget(Player,Wavelength) == 6) { set %wavestorm-levelsend $calc($hget(Player,Level) * 7 / 10) set %wavestorm-weaponrand $rand(21,24) } elseif ($hget(Player,Wavelength) == 7) { set %wavestorm-levelsend $calc($hget(Player,Level) * 8 / 10) set %wavestorm-weaponrand $rand(25,28) } elseif ($hget(Player,Wavelength) == 8) { set %wavestorm-levelsend $calc($hget(Player,Level) * 9 / 10) set %wavestorm-weaponrand $rand(29,32) } elseif ($hget(Player,Wavelength) == 9) { set %wavestorm-levelsend $calc($hget(Player,Level) * 8 / 10) set %wavestorm-weaponrand $rand(33,36) } elseif ($hget(Player,Wavelength) == 10) { set %wavestorm-levelsend $calc($hget(Player,Level) * 8 / 10) set %wavestorm-weaponrand $rand(37,40) } elseif ($hget(Player,Wavelength) == 0) { set %wavestorm-levelsend $hget(Player,Level) set %wavestorm-weaponrand $rand(41,44) } if ($hget(Player,Weapon) == 1) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 12 / 10) } elseif ($hget(Player,Weapon) == 2) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 12 / 10) } elseif ($hget(Player,Weapon) == 3) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 13 / 10) } elseif ($hget(Player,Weapon) == 4) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 11 / 10) } elseif ($hget(Player,Weapon) == 5) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 13 / 10) } elseif ($hget(Player,Weapon) == 6) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 11 / 10) } elseif ($hget(Player,Weapon) == 7) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 13 / 10) } elseif ($hget(Player,Weapon) == 8) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 11 / 10) } elseif ($hget(Player,Weapon) == 9) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 12 / 10) } elseif ($hget(Player,Weapon) == 10) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 12 / 10) } if (%wavestorm-z08 == 1) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 3 / 4) } if (%wavestorm-z12 == 1) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 5 / 4) } if (%wavestorm-s05mode == 1) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 2) } elseif (%wavestorm-s05mode == 2) { set %wavestorm-levelsend $calc(%wavestorm-levelsend / 2) } if (%wavestorm-z17 == 1) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * 3 } if (%wavestorm-hp <= $int($calc($hget(Player,HealthPoints) * 0.07))) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * $rand(20,25)) } elseif (%wavestorm-omega == 100) { set %wavestorm-levelsend $calc(%wavestorm-levelsend * $rand(30,35)) } set %wavestorm-levelsend $round(%wavestorm-levelsend,0) var %wavestorm-target = $1 if (%wavestorm-z23 == 1) { if ($ini(" $+ $scriptdirWSInfo3.ini",0) > 0) { var %wavestorm-target = $ini(" $+ $scriptdirWSInfo3.ini",$rand(1,$ini(" $+ $scriptdirWSInfo3.ini",0))) } else { :blurtarget1 var %wavestorm-target = $nick(%wavechat,$rand(1,$nick(%wavechat,0))) if ((%wavestorm-target == $me) && ($nick(%wavechat,0) > 1)) { goto blurtarget } } } if (%wavestorm-hp <= $int($calc($hget(Player,HealthPoints) * 0.07))) { display2 %wavechat performs a Terminus desperation attack! } elseif (%wavestorm-omega == 100) { display2 %wavechat performs an Omega Storm hyper manuever! } if ($exists(" $+ $scriptdirWSomega.wvs") == $false) { goto custom-omega1 } if ((%wave-custom-omega1 != 1) && (%wave-custom-omega2 != 1)) { goto custom-omega1 } elseif ((%wave-custom-omega1 == 1) && (%wave-custom-omega2 != 1)) { goto custom-omega1 } elseif ((%wave-custom-omega2 == 1) && (%wave-custom-omega1 != 1)) { goto custom-omega2 } elseif ((%wave-custom-omega1 == 1) && (%wave-custom-omega2 == 1)) { var %wave-custom-omega3 = $rand(1,$calc(44 + $lines(" $+ $scriptdirWSomega.wvs"))) if (%wave-custom-omega3 <= 44) { goto custom-omega1 } else { goto custom-omega2 } } :custom-omega1 if (%wavestorm-weaponrand == 1) { display2 %wavechat performs the Plutonic Drive! $me takes off running towards $+(%wavestorm-target,.) $me raises %wavestorm-gender3 fist, and ignites it, starting it flaming intensely. $me then reaches %wavestorm-target and plants a catastrophic punch to the stomach, exploding the immediate area and sending %wavestorm-target flying } elseif (%wavestorm-weaponrand == 2) { display2 %wavechat performs the Pyroxyline Slash! $me glows with a crimson aura and creates a broadsword of fire in %wavestorm-gender3 hands. $me then tosses the sword at $+(%wavestorm-target,$chr(44)) and the sword explodes on contact, setting %wavestorm-target awash in flames } elseif (%wavestorm-weaponrand == 3) { display2 %wavechat performs the Searing Orb! $me screams and sends a gargantuan sphere of pure fire exploding outwards, straight into %wavestorm-target } elseif (%wavestorm-weaponrand == 4) { display2 %wavechat performs the Ember Calcitration! $me jumps into the air and flies at $+(%wavestorm-target,$chr(44)) landing in a flaming drop kick that blasts %wavestorm-target backwards } elseif (%wavestorm-weaponrand == 5) { display2 %wavechat performs the Circuit Scepter! $me sends a cascade of yellow energy into the heavens, and a staff made completely of electricity falls back down. The staff falls into %wavestorm-target and acts as a lightning rod, sending terajoules of dynamic energy streaming through %wavestorm-target } elseif (%wavestorm-weaponrand == 6) { display2 %wavechat performs the Syzygy Thrust! $me draws back %wavestorm-gender3 fist while gathering electricity and punches %wavestorm-target forcefully in the stomach. The contact point explodes with lightning and wreathes %wavestorm-target in strands of electricity } elseif (%wavestorm-weaponrand == 7) { display2 %wavechat performs the Escopet Catapult! $me tosses %wavestorm-target into the air! %wavestorm-target skyrockets into the heavens, and a sudden massive bolt of lightning fries %wavestorm-target to a crisp in mid-air. %wavestorm-target then hurtles to the ground at supersonic speed and crashes, making a large crater on impact } elseif (%wavestorm-weaponrand == 8) { display2 %wavechat performs the Positron Shred! $me %wavestorm-gender3 hands in the air and causes a massive lightning bolt to strike! The bolt of energy hits and explodes the ground beneath $+(%wavestorm-target,$chr(44)) sending %wavestorm-target into the air } elseif (%wavestorm-weaponrand == 9) { display2 %wavechat performs the Verdure Cloak! $me raises %wavestorm-gender3 hands and watches as small green lights coalesce towards them, and more and more pile up until $me is completely covered. $me then takes off running, and as %wavestorm-gender1 reaches $+(%wavestorm-target,$chr(44)) %wavestorm-gender1 jumpkicks, sending shoots of trees roots and branches along with his kick straight into %wavestorm-target } elseif (%wavestorm-weaponrand == 10) { display2 %wavechat performs the Telluric Plunge! $me jumps incredibly high into the air, tucks %wavestorm-gender3 appendages towards %wavestorm-gender3 body as %wavestorm-gender1 curls into a ball, and glows with a green aura surrounded by hundreds of tiny meteors, as %wavestorm-gender1 divebombs straight into %wavestorm-target at subsonic speed } elseif (%wavestorm-weaponrand == 11) { display2 %wavechat performs the Loam Implosion! $me forces the ground beneath %wavestorm-target to explode into the air! The pile of dirt turns into quicksand in midair and drags %wavestorm-target down } elseif (%wavestorm-weaponrand == 12) { display2 %wavechat performs the Nascent Nova! $me coalesces nebula gas, condensing it and grinding it together. Suddenly the gas explodes into a newborn star, searing %wavestorm-target immensely } elseif (%wavestorm-weaponrand == 13) { display2 %wavechat performs the Eruption Column! $me trails %wavestorm-gender3 arms behind %wavestorm-gender2 as %wavestorm-gender1 runs towards $+(%wavestorm-target,$chr(44)) gathering blue energy as %wavestorm-gender1 goes. $+($upper($left(%wavestorm-gender1,1)),$right(%wavestorm-gender1,-1)) skids to a halt as %wavestorm-gender1 reaches $+(%wavestorm-target,$chr(44)) but shoots %wavestorm-gender3 arms forward into a massive geyser, shooting %wavestorm-target backwards at subsonic speed } elseif (%wavestorm-weaponrand == 14) { display2 %wavechat performs the Diluent Discharge! $me drops %wavestorm-gender3 arms to %wavestorm-gender3 side, gathers huge amounts of blue energy around $+(%wavestorm-gender2,$chr(44)) and then grabs onto $+(%wavestorm-target,.) The energy expands around %wavestorm-target into a huge explosion of water, blasting %wavestorm-target backwards } elseif (%wavestorm-weaponrand == 15) { display2 %wavechat performs the Liquid Detonation! $me throws %wavestorm-gender3 arms out and screams, sending a violent explosion of water out in all directions. The water blast completely overruns $+(%wavestorm-target,$chr(44)) and devastates the immediate area as well } elseif (%wavestorm-weaponrand == 16) { display2 %wavechat performs the Coruscate Reversal! $me throws a sparkling ball of water straight towards $+(%wavestorm-target,.) The ball hits and envelopes %wavestorm-target in a liquid coccoon. The coccoon implodes, and then it explodes immediately afterwards, laying waste to %wavestorm-target } elseif (%wavestorm-weaponrand == 17) { display2 %wavechat performs the Hyaline Cleave! $me coalesces hundreds of ice crystals into a sword of ice, flings $+(%wavestorm-gender2,self) forward through the air, and comes down in a rush, slicing diagonally across $+(%wavestorm-target,'s) chest } elseif (%wavestorm-weaponrand == 18) { display2 %wavechat performs the Crystalline Graft! $me entwines hundreds of microscopic ice spears to %wavestorm-gender3 knuckles, and punches %wavestorm-target in the face, simultaneously exploding and freezing %wavestorm-target } elseif (%wavestorm-weaponrand == 19) { display2 %wavechat performs the Glaze Rivulet! $me touches the ground and sends a rapid river of ice shooting staright up towards $+(%wavestorm-target,'s) feet. The ice suddenly flares up and freezes %wavestorm-target into a solid crystal } elseif (%wavestorm-weaponrand == 20) { display2 %wavechat performs the Crystal Cyclone! $me releases a massive vertical ice-filled tornado! The crystal vortex speeds past and gouges $+(%wavestorm-target,'s) body tremendously } elseif (%wavestorm-weaponrand == 21) { display2 %wavechat performs the Vestal Vertigo! $me grabs and hoists %wavestorm-target into the air, then sends intense beams of white energy flowing. %wavestorm-target screams as the pure energy surges constantly and forces %wavestorm-target into a spiral of dizzyness with intense pain } elseif (%wavestorm-weaponrand == 22) { display2 %wavechat performs the Incandescent Passado! $me sends white energy through %wavestorm-gender3 hands and feet, and then shoots out a flattened hand and %wavestorm-gender3 foot simultaneously, cutting and kicking %wavestorm-target with an insane blast of white energy } elseif (%wavestorm-weaponrand == 23) { display2 %wavechat performs the Lucid Rupture! $me shoots a peacefully undulating ball of white energy towards $+(%wavestorm-target,.) The sphere stops around %wavestorm-target and suddenly erupts, exploding in a fury of scalding power } elseif (%wavestorm-weaponrand == 24) { display2 %wavechat performs the Pallid Trestle! $me sends several beams of white energy outwards. The beams surround and pick %wavestorm-target up, hurtling hunderds of feet into the air. The white energy then explodes downward, sending %wavestorm-target flying into the ground at subsonic speed } elseif (%wavestorm-weaponrand == 25) { display2 %wavechat performs the Velocity Array! $me runs up to %wavestorm-target and slows down time to a near halt, then lets loose with a massive chain combo, punching and kicking %wavestorm-target at hyper speeds } elseif (%wavestorm-weaponrand == 26) { display2 %wavechat performs the Telegraphic Lunge! $me throws %wavestorm-gender3 fist forward and shifts time; blasting it up to hypersonic speeds and smashing %wavestorm-target in the face faster than the human eye can see } elseif (%wavestorm-weaponrand == 27) { display2 %wavechat performs the Juncture Fuse! $me merges past, present, and future, dishing out immense pain as $+(%wavestorm-target,'s) body is condensed and expanded within split seconds } elseif (%wavestorm-weaponrand == 28) { display2 %wavechat performs the Crescent Braid! $me shoots out several beams of energy that arc to the ground and dash back and forth, creating a brigade of energy ribbons that slice into %wavestorm-target } elseif (%wavestorm-weaponrand == 29) { display2 %wavechat performs the Tractive Havoc! $me holds %wavestorm-gender3 fist out, and casts a huge black energy flow into the air. %wavestorm-target can't escape the resulting gravitational pull and is drawn in straight into $+($me,'s) tightened fist } elseif (%wavestorm-weaponrand == 30) { display2 %wavechat performs the Incision Eclipse! $me slices %wavestorm-gender3 flattened hand across $+(%wavestorm-target,'s) stomach, slitting it open and pouring dark energy into the hole. The wound turns midnight black and explodes outwards, covering %wavestorm-target in pure shadow } elseif (%wavestorm-weaponrand == 31) { display2 %wavechat performs the Expansion Burst! $me manipulates gravity to leave a bubble of nothingness around $+(%wavestorm-target,$chr(44)) forcing %wavestorm-target to endure minor explosive decompression } elseif (%wavestorm-weaponrand == 32) { display2 %wavechat performs the Rayless Scorch! $me shoots black light into $+(%wavestorm-target,'s) eyes. The dark photons blast all around and violently sear $+(%wavestorm-target,'s) insides } elseif (%wavestorm-weaponrand == 33) { display2 %wavechat performs the Sonic Dispersion! $me screams out in rage and fires massive amounts of sonic vibrations at %wavestorm-target $+ , constantly firing, never stopping, getting stronger and stronger, until eventually the molecular coherancy of %wavestorm-target $+ 's body breaks down and %wavestorm-target shakes apart } elseif (%wavestorm-weaponrand == 34) { display2 %wavechat performs the Epileptic Induction! $me draws in light and then fires an intense blast of light at %wavestorm-target $+ . The light then begins to alternate colors; faster and faster it goes, until it induces a massive epliptic seizure, dropping %wavestorm-target to the ground in a shivering wreck } elseif (%wavestorm-weaponrand == 35) { display2 %wavechat performs the Reverberation Fist! $me begins to focus massive amounts of sonic vibration into %wavestorm-gender3 fist, until it starts vibrating so fast, that it looks like a flesh-colored mass. $me then punches %wavestorm-target in the gut, %wavestorm-gender3 fist going right through %wavestorm-target } elseif (%wavestorm-weaponrand == 36) { display2 %wavechat performs the Lasik Incision! $me holds %wavestorm-gender3 hands out at his sides and hundreds of ultra-thin lasers burst from %wavestorm-gender3 fingers, curving and redirecting themselves directly at %wavestorm-target $+ , piercing through %wavestorm-target $+ 's body } elseif (%wavestorm-weaponrand == 37) { display2 %wavechat performs the Rising Zephyr! $me makes an ultra thin tornado that carries %wavestorm-target high into the stratosphere, and then lets %wavestorm-target drop forcefully to the ground } elseif (%wavestorm-weaponrand == 38) { display2 %wavechat performs the Intensified Inhalant! $me pushes an intense amount of air into %wavestorm-target $+ 's lungs, forcing more and more in, until %wavestorm-target $+ 's lungs explode with the pressure } elseif (%wavestorm-weaponrand == 39) { display2 %wavechat performs the Shotgun Gust! $me clutches a handful of sand and throws it into the air, and then propels it at %wavestorm-target with super-sonic winds, hurling thousands of tiny, sand-grain sized bullets at %wavestorm-target } elseif (%wavestorm-weaponrand == 40) { display2 %wavechat performs the Barometric Extraction! $me removes all the air from around %wavestorm-target $+ , creating a total vaccum. This creates a pressure imbalance inside %wavestorm-target $+ 's body, causing the body to puff up, the veins to expand, ocular and nasal bleeding, loosening intestines, and more, until %wavestorm-target $+ 's body begins to explode } elseif (%wavestorm-weaponrand == 41) { display2 %wavechat performs the Vitality Clash! $me hops into the air and sends a flying kick at $+(%wavestorm-target,.) Right before contact, $me uses %wavestorm-gender3 own life energy to power up the kick, making %wavestorm-gender3 leg glow with furious energy, and the kick explodes as it hits %wavestorm-target } elseif (%wavestorm-weaponrand == 42) { display2 %wavechat performs the Scourge Receptacle! $me grabs %wavestorm-target and crushes away! Life energy flooding into %wavestorm-gender3 arms increases %wavestorm-gender3 strength thirtyfold, and %wavestorm-target collapses under the immense pressure } elseif (%wavestorm-weaponrand == 43) { display2 %wavechat performs the Sheath Demolish! $me uses %wavestorm-gender3 life energy to envelop $+(%wavestorm-gender2,self) in an aura of power. $me then rushes forwards and launches into the air into a flying headbutt that blasts %wavestorm-target away } elseif (%wavestorm-weaponrand == 44) { display2 %wavechat performs the Exertion Upsurge! $me powers up and shoots a massive energy blast into the ground! The energy blast curves around underground and shoots straight up out of the ground into %wavestorm-target } goto custom-omega-skip :custom-omega2 var %custom-omega-replace = $replace($read(" $+ $scriptdirWSomega.wvs"),!target,%wavestorm-target,!enemy,$nick,!me,$me,!gender1,%wavestorm-gender1,!gender2,%wavestorm-gender2,!gender3,%wavestorm-gender3) display2 %wavechat $replace(%custom-omega-replace,!weapon,$readini(" $+ $scriptdirWSInfo1.ini",Weapon,$+($hget(Player,Weapon),$hget(Player,Modifier)))) :custom-omega-skip if (%wavestorm-weaponrand isnum 1 - 9) { set %wavestorm-weaponrand $+(00,%wavestorm-weaponrand) } if (%wavestorm-weaponrand >= 10) { set %wavestorm-weaponrand $+(0,%wavestorm-weaponrand) } .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target $+(a-1,%wavestorm-weaponrand,) %wavestorm-levelsend %wavestorm-z23 if ((%wavestorm-wavebeast == 1) && (%wavestorm-wavebeast-15 == 1)) { display2 %wavechat watches as %wavestorm-gender3 clone mimics the Omega Storm, doubling the attack's power! .notice %wavestorm-target Wavestorm %wavestorm-battleground %wavestorm-target $+(a-1,%wavestorm-weaponrand,) %wavestorm-levelsend %wavestorm-z23 return } if (%wavestorm-hp > $int($calc($hget(Player,HealthPoints) * 0.07))) { unset %wavestorm-omega did -b datascope 4 } unset %wavestorm-weaponrand unset %wavestorm-levelsend startbattletimer } elseif (%wavestorm-melee == 1) { display3 %wavechat You can only attack someone in $+(%wavechat,.) } else { display3 %wavechat You can only attack one of the enemies you've specified to fight: %wavestorm-enemy1 %wavestorm-enemy2 %wavestorm-enemy3 %wavestorm-enemy4 } } } alias magiccommand { unset %wavestorm-hploss unset %wavestorm-hpgain unset %wavestorm-mploss unset %wavestorm-mpgain if ($1 !isnum 1 - 4) { return } goto $+($1,Tier) :1Tier if (($2 == 1) || ($2 isnum 3 - 5) || ($2 isnum 7 - 8) || ($2 == 10) || ($2 == 12) || ($2 isnum 14 - 19) || ($2 isnum 21 - 22) || ($2 isnum 25 - 26) || ($2 isnum 28 - 29) || ($2 == 31) || ($2 == 33) || ($2 == 35) || ($2 isnum 44 - 45) || ($2 isnum 49 - 50) || ($2 == 53) || ($2 isnum 56 - 57) || ($2 == 59) || ($2 == 61) || ($2 isnum 63 - 64) || ($2 == 66) || ($2 isnum 69 - 70)) { set %wavestorm-hploss $eval($readini(" $+ $scriptdirWSInfo1.ini",$+(1Tier,$2),HP),2) set %wavestorm-hploss $rand(%wavestorm-hploss,$calc(%wavestorm-hploss + ($gettok($1-,$numtok($1-,32),32) * 3))) if (%wavestorm-z24 == 1) { set %wavestorm-hploss $calc(%wavestorm-hploss / 2) } if ($hget(Player,Color) == %wavestorm-magiccolor) { hpweakness switch } if (($hget(Player,Wavelength) == 1) && (%wavestorm-magiccolor == Blue)) { hpweakness } elseif (($hget(Player,Wavelength) == 2) && (%wavestorm-magiccolor == Purple)) { hpweakness } elseif (($hget(Player,Wavelength) == 3) && (%wavestorm-magiccolor == Black)) { hpweakness } elseif (($hget(Player,Wavelength) == 4) && (%wavestorm-magiccolor == Yellow)) { hpweakness } elseif (($hget(Player,Wavelength) == 5) && (%wavestorm-magiccolor == Red)) { hpweakness } elseif (($hget(Player,Wavelength) == 6) && (%wavestorm-magiccolor == Beige)) { hpweakness } elseif (($hget(Player,Wavelength) == 7) && (%wavestorm-magiccolor == White)) { hpweakness } elseif (($hget(Player,Wavelength) == 8) && (%wavestorm-magiccolor == Green)) { hpweakness } elseif (($hget(Player,Wavelength) == 9) && (%wavestorm-magiccolor == Gray)) { hpweakness } elseif (($hget(Player,Wavelength) == 10) && (%wavestorm-magiccolor == Orange)) { hpweakness } if ((%wavestorm-battleground == s19) && ($rand(1,4) == 3)) { set %wavestorm-hploss $calc(%wavestorm-hploss * 2) | display2 %wavechat cries out as the oncoming magic attack gets boosted in strength by the turbulence of the waves! } set %wavestorm-z04properhit 1 } elseif ($2 == 2) { set %wavestorm-hploss $round($rand($calc($gettok($1-,$numtok($1-,32),32) * 680 / 99 - 20),$calc($gettok($1-,$numtok($1-,32),32) * 680 / 99 + 20)),0) | if ((%wavestorm-battleground == s19) && ($rand(1,4) == 3)) { set %wavestorm-hploss $calc(%wavestorm-hploss * 2) | display2 %wavechat cries out as the oncoming magic attack gets boosted in strength by the turbulence of the waves! } | set %wavestorm-z04properhit 1 } elseif ($2 == 6) { set %wavestorm-z02 2 | set -n %wavestorm-z02nick $4 | unset %wavestorm-z09 } elseif ($2 == 9) { set %wavestorm-z03 1 | set %wavestorm-z03turn 5 } elseif ($2 == 11) { unset %wavestorm-z03* } elseif ($2 == 13) { if ($3 == 1) { if (%wavestorm-z08 == 1) { unset %wavestorm-z08* } | else { set %wavestorm-z12 1 } } elseif ($3 == 2) { if (%wavestorm-z08 > 0) { unset %wavestorm-z08* } | else { set %wavestorm-z12 1 } } } elseif ($2 == 20) { set %wavestorm-z10 1 } elseif ($2 == 23) { unset %wavestorm-z05* | unset %wavestorm-z06* | waveasleep } elseif ($2 == 24) { set %wavestorm-z02 2 | set -n %wavestorm-z02nick $4 | unset %wavestorm-z09 } elseif ($2 == 27) { unset %wavestorm-z03* | unset %wavestorm-z05* | unset %wavestorm-z10* | unset %wavestorm-z12* | unset %wavestorm-z13* | unset %wavestorm-z14* | unset %wavestorm-z15* | unset %wavestorm-z16* | set %wavestorm-z04properhit 1 } elseif ($2 == 30) { set %wavestorm-z07mode 1 | wavestop } elseif ($2 == 32) { set %wavestorm-z14 1 } elseif ($2 == 34) { set %wavestorm-z13 1 | set %wavestorm-z13turn 5 } elseif ($2 == 36) { if ($3 == 1) { set %wavestorm-hpgain $round($rand(50,$calc(50 + ($gettok($1-,$numtok($1-,32),32)) * 3)),0) } elseif ($3 == 2) { set %wavestorm-hpgain $round($rand(50,$calc(50 + $hget(Player,Level) * 3)),0) } } elseif ($2 == 37) { unset %wavestorm-z02* | unset %wavestorm-z04* | unset %wavestorm-z06* | unset %wavestorm-z07* | .timerstop off | unset %wavestorm-z08* | unset %wavestorm-z23* | set %wavestorm-z04properhit 1 } elseif ($2 == 38) { if ($3 == 1) { set %wavestorm-hpgain $round($rand(325,$calc(325 + ($gettok($1-,$numtok($1-,32),32)) * 3)),0) } elseif ($3 == 2) { set %wavestorm-hpgain $round($rand(325,$calc(325 + $hget(Player,Level) * 3)),0) } } elseif ($2 == 39) { if (%wavestorm-z01 == 1) { wavereset 1 } } elseif ($2 == 40) { if ($3 == 1) { set %wavestorm-hpgain $round($rand(2500,$calc(2500 + ($gettok($1-,$numtok($1-,32),32)) * 3)),0) } elseif ($3 == 2) { set %wavestorm-hpgain $round($rand(2500,$calc(2500 + $hget(Player,Level) * 3)),0) } } elseif ($2 == 41) { if (%wavestorm-z01 == 1) { wavereset 2 } } elseif ($2 == 42) { set %wavestorm-hploss $calc($round($rand($calc(($gettok($1-,$numtok($1-,32),32) * 680 / 99) - 20),$calc(($gettok($1-,$numtok($1-,32),32) * 680 / 99) + 20)),0) * 3) | if ($hget(Player,Wavelength) == 7) { hpweakness } | if ((%wavestorm-battleground == s19) && ($rand(1,4) == 3)) { set %wavestorm-hploss $calc(%wavestorm-hploss * 2) } } elseif ($2 == 43) { if ($3 == 1) { if ((%wavestorm-z17 > 0) || (%wavestorm-z04 > 0) || ((%wavestorm-z07 > 0) && (%wavestorm-z07mode !isnum 1 - 3) && (%wavestorm-z07mode != 8))) { return } | if (%wavestorm-z07 > 0) { set %wavestorm-hastestopcounter 1 } | elseif (%wavestorm-z06 > 0) { unset %wavestorm-z06* } | else { set %wavestorm-z05 1 | set %wavestorm-z05turn 7 } } elseif ($3 == 2) { if (%wavestorm-z06 > 0) { unset %wavestorm-z06* } | else { set %wavestorm-z05 1 | set %wavestorm-z05turn 7 } } } elseif ($2 == 46) { if ((%wavestorm-z17 > 0) || (%wavestorm-z04 > 0) || (%wavestorm-z07 > 0)) { return } | if (%wavestorm-z05 > 0) { unset %wavestorm-z05* } | else { set %wavestorm-z06 1 | set %wavestorm-z06turn 7 } } elseif ($2 == 47) { if (%wavestorm-z17 > 0) { return } | unset %wavestorm-z04* | unset %wavestorm-z05* | unset %wavestorm-z06* | set %wavestorm-z07mode 2 | wavestop } elseif ($2 == 51) { if (%wavestorm-z12 == 1) { unset %wavestorm-z12* } | else { set %wavestorm-z08 1 } } elseif ($2 == 52) { if ($rand(1,13) == 7) { { set %wavestorm-hploss %wavestorm-hp } { display2 %wavechat takes in a sharp breath as the piece of shadow suddenly punctures %wavestorm-gender3 heart, dropping %wavestorm-gender2 to the ground } } | else { display2 %wavechat blinks as the shadow crystal bounces off %wavestorm-gender3 chest and falls to the floor } } elseif ($2 == 54) { set %wavestorm-z15 1 } elseif ($2 == 55) { if ($3 == 1) { set %wavestorm-z16 1 | set %wavestorm-z16turn 3 } elseif ($3 == 2) { set %wavestorm-z16 1 | set %wavestorm-z16turn 5 } } elseif ($2 == 58) { set %wavestorm-z02 2 | set -n %wavestorm-z02nick $4 | unset %wavestorm-z09 } elseif ($2 == 60) { set %wavestorm-z21 1 | set -n %wavestorm-z21turn 5 } elseif ($2 == 62) { dec %wavestorm-hp $int($calc(%wavestorm-hp * .15)) set %wavestorm-mp $hget(Player,MagicPoints) } elseif ($2 == 65) { set %wavestorm-z22 1 } elseif ($2 == 67) { set %wavestorm-z10 1 } elseif ($2 == 68) { if ($3 == 1) { if (%wavestorm-z08 == 1) { unset %wavestorm-z08* } | else { set %wavestorm-z12 1 } } elseif ($3 == 2) { if (%wavestorm-z08 > 0) { unset %wavestorm-z08* } | else { set %wavestorm-z12 1 } } } wavewindowreset return :2Tier if ((($2 isnum 1 - 12) || ($2 == 14) || ($2 isnum 16 - 18) || ($2 isnum 19 - 21) || ($2 isnum 23 - 27) || ($2 isnum 29 - 30) || ($2 isnum 32 - 33) || ($2 isnum 35 - 36) || ($2 isnum 38 - 52) || ($2 isnum 54 - 55) || ($2 == 57) || ($2 == 60) || ($2 isnum 62 - 66) || ($2 isnum 68 - 73) || ($2 == 75) || ($2 == 80) || ($2 isnum 82 - 86) || ($2 isnum 88 - 92) || ($2 isnum 94 - 99) || ($2 == 101) || ($2 isnum 103 - 109) || ($2 isnum 111 - 114) || ($2 isnum 116 - 135)) && ($3 == 1)) { set %wavestorm-hploss $eval($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),HP),2) set %wavestorm-hploss $rand(%wavestorm-hploss,$calc(%wavestorm-hploss + $5 * 3))) if (%wavestorm-z24 == 1) { set %wavestorm-hploss $calc(%wavestorm-hploss / 2) } if (($hget(Player,Color) == $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color1)) || ($hget(Player,Color) == $readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color2))) { hpweakness switch } if (($hget(Player,Wavelength) == 1) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color1) == 4) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color2) == 4))) { hpweakness } elseif (($hget(Player,Wavelength) == 2) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color1) == 5) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color2) == 5))) { hpweakness } elseif (($hget(Player,Wavelength) == 3) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color1) == 8) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color2) == 8))) { hpweakness } elseif (($hget(Player,Wavelength) == 4) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color1) == 2) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color2) == 2))) { hpweakness } elseif (($hget(Player,Wavelength) == 5) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color1) == 1) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color2) == 1))) { hpweakness } elseif (($hget(Player,Wavelength) == 6) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color1) == 7) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color2) == 7))) { hpweakness } elseif (($hget(Player,Wavelength) == 7) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color1) == 6) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color2) == 6))) { hpweakness } elseif (($hget(Player,Wavelength) == 8) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color1) == 3) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color2) == 3))) { hpweakness } elseif (($hget(Player,Wavelength) == 9) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color1) == 10) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color2) == 10))) { hpweakness } elseif (($hget(Player,Wavelength) == 10) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color1) == 9) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(2Tier,$2),Color2) == 9))) { hpweakness } if ((%wavestorm-battleground == s19) && ($rand(1,4) == 3)) { set %wavestorm-hploss $calc(%wavestorm-hploss * 2) | display2 %wavechat cries out as the oncoming magic attack gets boosted in strength by the turbulence of the waves! } set %wavestorm-z04properhit 1 } if ($2 == 10) { set %wavestorm-z02 4 } if (($2 == 13) && ($3 == 2)) { if (%wavestorm-z01 == 1) { wavereset 2 } } if ($2 == 14) { if ($3 == 2) { if (%wavestorm-z01 == 1) { wavereset 1 } } } if ($2 == 15) { set %wavestorm-z20 1 | set %wavestorm-z20turn 30 } if ($2 == 21) { set %wavestorm-z07mode 8 | wavestop } if ($2 == 22) { set %wavestorm-z03 1 | set %wavestorm-z03turn 15 } if ($2 == 28) { if (%wavestorm-z00 == 1) { set %wavestorm-relocate1 1 } else { set %wavestorm-relocate1 0 } if (%wavestorm-z03 == 1) { set %wavestorm-relocate2 1 | set %wavestorm-relocate3 %wavestorm-z03turn } else { set %wavestorm-relocate2 0 | set %wavestorm-relocate3 0 } if (%wavestorm-z05 == 1) { set %wavestorm-relocate4 1 | set %wavestorm-relocate5 %wavestorm-z05turn } else { set %wavestorm-relocate4 0 | set %wavestorm-relocate5 0 } if (%wavestorm-z09 == 1) { set %wavestorm-relocate6 1 } else { set %wavestorm-relocate6 0 } if (%wavestorm-z10 == 1) { set %wavestorm-relocate7 1 } else { set %wavestorm-relocate7 0 } if (%wavestorm-z12 == 1) { set %wavestorm-relocate8 1 } else { set %wavestorm-relocate8 0 } if (%wavestorm-z13 == 1) { set %wavestorm-relocate9 1 | set %wavestorm-relocate10 %wavestorm-z13turn } else { set %wavestorm-relocate9 0 | set %wavestorm-relocate10 0 } if (%wavestorm-z14 == 1) { set %wavestorm-relocate11 1 } else { set %wavestorm-relocate11 0 } if (%wavestorm-z15 == 1) { set %wavestorm-relocate12 1 } else { set %wavestorm-relocate12 0 } if (%wavestorm-z16 == 1) { set %wavestorm-relocate13 1 | set %wavestorm-relocate14 %wavestorm-z16turn } else { set %wavestorm-relocate13 0 | set %wavestorm-relocate14 0 } if (%wavestorm-z18 == 1) { set %wavestorm-relocate15 1 | set %wavestorm-relocate16 %wavestorm-z18turn } else { set %wavestorm-relocate15 0 | set %wavestorm-relocate16 0 } if (%wavestorm-z19 == 1) { set %wavestorm-relocate17 1 | set %wavestorm-relocate18 %wavestorm-z19turn } else { set %wavestorm-relocate17 0 | set %wavestorm-relocate18 0 } if (%wavestorm-z20 == 1) { set %wavestorm-relocate19 1 | set %wavestorm-relocate20 %wavestorm-z20turn } else { set %wavestorm-relocate19 0 | set %wavestorm-relocate20 0 } .notice $4 Wavestorm %wavestorm-battleground $4 relocate %wavestorm-relocate1 %wavestorm-relocate2 %wavestorm-relocate3 %wavestorm-relocate4 %wavestorm-relocate5 %wavestorm-relocate6 %wavestorm-relocate7 %wavestorm-relocate8 %wavestorm-relocate9 %wavestorm-relocate10 %wavestorm-relocate11 %wavestorm-relocate12 %wavestorm-relocate13 %wavestorm-relocate14 %wavestorm-relocate15 %wavestorm-relocate16 %wavestorm-relocate17 %wavestorm-relocate18 %wavestorm-relocate19 %wavestorm-relocate20 unset %wavestorm-relocate* } if ($2 == 31) { set %wavestorm-hpgain $calc($hget(Player,HealthPoints) / 2) } if ($2 == 34) { if (%wavestorm-z17 !isnum 1 - 2) { set %wavestorm-z17 1 if ((%wavestorm-melee != 1) && (($4 == %wavestorm-enemy1) || ($4 == %wavestorm-enemy2) || ($4 == %wavestorm-enemy3) || ($4 == %wavestorm-enemy4))) { set -n %wavestorm-z17nick $4 } else { unset %wavestorm-z17nick } if ((%wavestorm-z05 isnum 1 - 3) || (%wavestorm-z05 == 8)) { set %wavestorm-z17haste 1 } .timerfrenzy 1 45 wavestorm-frenzycool if (%wavestorm-z17haste == 1) { display2 %wavechat screams in pain as %wavestorm-gender3 already hasted body shifts into frenzied mode, shooting %wavestorm-gender3 body past its limits } else { display2 %wavechat loses control of %wavestorm-gender3 body and shifts into frenzied mode! } startbattletimer } } if ($2 == 35) { set %wavestorm-z07mode 8 | wavestop } if ($2 == 37) { if ($3 == 1) { if (%wavestorm-z12 == 1) { unset %wavestorm-z12* } | else { set %wavestorm-z08 1 } } elseif ($3 == 2) { set %wavestorm-z03 1 | set %wavestorm-z03turn 5 } } if ($2 == 53) { if ($rand(1,5) == 3) { set %wavestorm-hploss %wavestorm-hp | set %wavestorm-z04properhit 1 | display2 %wavechat looks into the glaring eclipse, cries out in pain as the energy overwhelms $+(%wavestorm-gender2,$chr(44)) and falls to the ground! } | else { display2 %wavechat looks up into the sky and shields %wavestorm-gender3 eyes, preventing the fierce power of the eclipse from hurting %wavestorm-gender2 } } if ($2 == 56) { set %wavestorm-z10 2 } if ($2 == 58) { set %wavestorm-z00 1 } if ($2 == 59) { if ($3 == 1) { set %wavestorm-hpgain $round($rand(325,$calc(325 + ($gettok($1-,$numtok($1-,32),32)) * 3)),0) } elseif ($3 == 2) { set %wavestorm-hpgain $round($rand(325,$calc(325 + $hget(Player,Level) * 3)),0) } } if ($2 == 61) { if ((%wavestorm-z17 > 0) || (%wavestorm-z04 > 0) || (%wavestorm-z07 > 0)) { return } | if (%wavestorm-z05 > 0) { unset %wavestorm-z05* } | else { set %wavestorm-z06 1 | set %wavestorm-z06turn 15 } } if ($2 == 67) { set %wavestorm-z09 1 } if ($2 == 74) { set %wavestorm-mploss $calc($hget(Player,Level) * 2) | set %wavestorm-mploss $rand(%wavestorm-mploss,$calc(%wavestorm-mploss + ($gettok($1-,$numtok($1-,32),32) * 3))) | if (($hget(Player,Wavelength) == 2) || ($hget(Player,Wavelength) == 3)) { set %wavestorm-mploss $round($calc(%wavestorm-mploss * 6 / 5),0) } | if ((%wavestorm-battleground == s19) && ($rand(1,4) == 3)) { set %wavestorm-mploss $calc(%wavestorm-mploss * 2) | display2 %wavechat cries out as the oncoming magic attack gets boosted in strength by the turbulence of the waves! } | set %wavestorm-z07mode 8 | wavestop } if ($2 == 76) { if ($hget(Wavestorm-2Tier76)) { return } if ($hget(Wavestorm-2Tier76,hp)) { set %wavestorm-hp $hget(Wavestorm-2Tier76,hp) } if ($hget(Wavestorm-2Tier76,z01)) { set %wavestorm-z01 $hget(Wavestorm-2Tier76,z01) } if ($hget(Wavestorm-2Tier76,z03)) { set %wavestorm-z03 $hget(Wavestorm-2Tier76,z03) } if ($hget(Wavestorm-2Tier76,z03turn)) { set %wavestorm-z03turn $hget(Wavestorm-2Tier76,z03turn) } if ($hget(Wavestorm-2Tier76,z05)) { set %wavestorm-z05 $hget(Wavestorm-2Tier76,z05) } if ($hget(Wavestorm-2Tier76,z05turn)) { set %wavestorm-z05turn $hget(Wavestorm-2Tier76,z05turn) } if ($hget(Wavestorm-2Tier76,z09)) { set %wavestorm-z09 $hget(Wavestorm-2Tier76,z09) } if ($hget(Wavestorm-2Tier76,z10)) { set %wavestorm-z10 $hget(Wavestorm-2Tier76,z10) } if ($hget(Wavestorm-2Tier76,z12)) { set %wavestorm-z12 $hget(Wavestorm-2Tier76,z12) } if ($hget(Wavestorm-2Tier76,z13)) { set %wavestorm-z13 $hget(Wavestorm-2Tier76,z13) } if ($hget(Wavestorm-2Tier76,z13turn)) { set %wavestorm-z13turn $hget(Wavestorm-2Tier76,z13turn) } if ($hget(Wavestorm-2Tier76,z14)) { set %wavestorm-z14 $hget(Wavestorm-2Tier76,z14) } if ($hget(Wavestorm-2Tier76,z15)) { set %wavestorm-z15 $hget(Wavestorm-2Tier76,z15) } if ($hget(Wavestorm-2Tier76,z16)) { set %wavestorm-z16 $hget(Wavestorm-2Tier76,z16) } if ($hget(Wavestorm-2Tier76,z16turn)) { set %wavestorm-z16turn $hget(Wavestorm-2Tier76,z16turn) } if ($hget(Wavestorm-2Tier76,z18)) { set %wavestorm-z18 $hget(Wavestorm-2Tier76,z18) } if ($hget(Wavestorm-2Tier76,z18turn)) { set %wavestorm-z18turn $hget(Wavestorm-2Tier76,z18turn) } if ($hget(Wavestorm-2Tier76,z19)) { set %wavestorm-z19 $hget(Wavestorm-2Tier76,z19) } if ($hget(Wavestorm-2Tier76,z19turn)) { set %wavestorm-z19turn $hget(Wavestorm-2Tier76,z19turn) } if ($hget(Wavestorm-2Tier76,z20)) { set %wavestorm-z20 $hget(Wavestorm-2Tier76,z20) } if ($hget(Wavestorm-2Tier76,z20turn)) { set %wavestorm-z20turn $hget(Wavestorm-2Tier76,z20turn) } hfree Wavestorm-2Tier76 } if ($2 == 77) { if ((%wavestorm-z17 > 0) || (%wavestorm-z04 > 0) || ((%wavestorm-z07 > 0) && (%wavestorm-z07mode !isnum 1 - 3) && (%wavestorm-z07mode != 8))) { return } | if (%wavestorm-z07 > 0) { set %wavestorm-hastestopcounter 1 } | elseif (%wavestorm-z06 > 0) { unset %wavestorm-z06* } | else { set %wavestorm-z05 1 | set %wavestorm-z05turn 7 } } if ($2 == 78) { if ($3 == 1) { set %wavestorm-hploss $calc($hget(Player,Level) * 6) | set %wavestorm-hploss $rand(%wavestorm-hploss,$calc(%wavestorm-hploss + ($gettok($1-,$numtok($1-,32),32) * 3))) | if (($hget(Player,Wavelength) == 2) || ($hget(Player,Wavelength) == 3)) { set %wavestorm-hploss $round($calc(%wavestorm-hploss * 6 / 5),0) } | if ((%wavestorm-battleground == s19) && ($rand(1,4) == 3)) { set %wavestorm-hploss $calc(%wavestorm-hploss * 2) | display2 %wavechat cries out as the oncoming magic attack gets boosted in strength by the turbulence of the waves! } | set %wavestorm-z04properhit 1 | if ((%wavestorm-z17 > 0) || (%wavestorm-z04 > 0) || (%wavestorm-z07 > 0)) { return } | if (%wavestorm-z05 > 0) { unset %wavestorm-z05* } | else { set %wavestorm-z06 1 | set %wavestorm-z06turn 10 } } elseif ($3 == 2) { set %wavestorm-hpgain $calc($hget(Player,Level) * 6) | set %wavestorm-hpgain $rand(%wavestorm-hpgain,$calc(%wavestorm-hpgain + ($gettok($1-,$numtok($1-,32),32) * 3))) } } if ($2 == 79) { if (%wavestorm-z19) { return } set %wavestorm-z18 1 set %wavestorm-z18turn 10 } if ($2 == 81) { if (%wavestorm-z18) { return } set %wavestorm-z19 1 set %wavestorm-z19turn 20 } if ($2 == 87) { set %wavestorm-z23 1 set %wavestorm-z23turn 10 } if ($2 == 93) { set %wavestorm-z17 1 set %wavestorm-z17haste 1 startbattletimer } if ($2 == 95) { set %wavestorm-z02 4 set -n %wavestorm-z02nick $4 unset %wavestorm-z09 } if ($2 == 98) { set %wavestorm-z23 1 set %wavestorm-z23turn 5 } if ($2 == 100) { set %wavestorm-z24 1 set %wavestorm-z24turn 5 } if ($2 == 101) { set %wavestorm-z17haste 1 wavestorm-frenzycool } if ($2 == 102) { if ($3 == 1) { set %wavestorm-hpgain $round($rand(325,$calc(325 + ($gettok($1-,$numtok($1-,32),32)) * 3)),0) } elseif ($3 == 2) { set %wavestorm-hpgain $round($rand(325,$calc(325 + $hget(Player,Level) * 3)),0) } unset %wavestorm-z02* unset %wavestorm-z04* unset %wavestorm-z06* unset %wavestorm-z07* .timerstop off unset %wavestorm-z08* unset %wavestorm-z23* set %wavestorm-z04properhit 1 } if ($2 == 104) { set %wavestorm-z23 1 set %wavestorm-z23turn 7 } if ($2 == 106) { set %wavestorm-z07mode 3 wavestop } if ($2 == 107) { set %wavestorm-z02 2 set -n %wavestorm-z02nick $4 if ((%wavestorm-z17 > 0) || (%wavestorm-z04 > 0) || (%wavestorm-z07 > 0)) { return } if (%wavestorm-z05 > 0) { unset %wavestorm-z05* } else { set %wavestorm-z06 1 set %wavestorm-z06turn 7 } } if ($2 == 108) { set %wavestorm-z21 1 set -n %wavestorm-z21turn 5 } if ($2 == 110) { set %wavestorm-z21 1 set -n %wavestorm-z21turn 10 } if ($2 == 115) { set %wavestorm-z07mode 3 wavestop } if ($2 == 119) { set %wavestorm-z02 4 set -n %wavestorm-z02nick $4 unset %wavestorm-z09 } if ($2 == 120) { set %wavestorm-z23 1 set %wavestorm-z23turn 7 } wavewindowreset return :3Tier set %wavestorm-hploss $eval($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),HP),2) set %wavestorm-hploss $rand(%wavestorm-hploss,$calc(%wavestorm-hploss + $5 * 3))) if (%wavestorm-z24 == 1) { set %wavestorm-hploss $calc(%wavestorm-hploss / 2) } if (($hget(Player,Color) == $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color1)) || ($hget(Player,Color) == $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color2)) || ($hget(Player,Color) == $readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color3))) { hpweakness switch } if (($hget(Player,Wavelength) == 1) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color1) == 4) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color2) == 4) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color3) == 4))) { hpweakness } elseif (($hget(Player,Wavelength) == 2) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color1) == 5) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color2) == 5) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color3) == 5))) { hpweakness } elseif (($hget(Player,Wavelength) == 3) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color1) == 8) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color2) == 8) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color3) == 8))) { hpweakness } elseif (($hget(Player,Wavelength) == 4) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color1) == 2) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color2) == 2) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color3) == 2))) { hpweakness } elseif (($hget(Player,Wavelength) == 5) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color1) == 1) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color2) == 1) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color3) == 1))) { hpweakness } elseif (($hget(Player,Wavelength) == 6) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color1) == 7) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color2) == 7) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color3) == 7))) { hpweakness } elseif (($hget(Player,Wavelength) == 7) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color1) == 6) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color2) == 6) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color3) == 6))) { hpweakness } elseif (($hget(Player,Wavelength) == 8) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color1) == 3) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color2) == 3) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color3) == 3))) { hpweakness } elseif (($hget(Player,Wavelength) == 9) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color1) == 10) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color2) == 10) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color3) == 10))) { hpweakness } elseif (($hget(Player,Wavelength) == 10) && (($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color1) == 9) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color2) == 9) || ($readini(" $+ $scriptdirWSInfo2.ini",$+(3Tier,$2),Color3) == 9))) { hpweakness } if ((%wavestorm-battleground == s19) && ($rand(1,4) == 3)) { set %wavestorm-hploss $calc(%wavestorm-hploss * 2) | display2 %wavechat cries out as the oncoming magic attack gets boosted in strength by the turbulence of the waves! } set %wavestorm-z04properhit 1 return :4Tier if (($2 isnum 1 - 10) || ($2 isnum 12 - 20)) { set %wavestorm-hploss $eval($readini(" $+ $scriptdirWSInfo1.ini",$+(4Tier,$2),HP),2) set %wavestorm-hploss $rand(%wavestorm-hploss,$calc(%wavestorm-hploss + $5 * 3))) if (%wavestorm-z24 == 1) { set %wavestorm-hploss $calc(%wavestorm-hploss / 2) } if (($hget(Player,Wavelength) == 1) && ($2 isnum 7 - 8)) { hpweakness } elseif (($hget(Player,Wavelength) == 2) && ($2 isnum 9 - 10)) { hpweakness } elseif (($hget(Player,Wavelength) == 3) && ($2 isnum 15 - 16)) { hpweakness } elseif (($hget(Player,Wavelength) == 4) && ($2 isnum 3 - 4)) { hpweakness } elseif (($hget(Player,Wavelength) == 5) && ($2 isnum 1 - 2)) { hpweakness } elseif (($hget(Player,Wavelength) == 6) && ($2 isnum 13 - 14)) { hpweakness } elseif (($hget(Player,Wavelength) == 7) && ($2 isnum 11 - 12)) { hpweakness } elseif (($hget(Player,Wavelength) == 8) && ($2 isnum 5 - 6)) { hpweakness } elseif (($hget(Player,Wavelength) == 9) && ($2 isnum 19 - 20)) { hpweakness } elseif (($hget(Player,Wavelength) == 10) && ($2 isnum 17 - 18)) { hpweakness } set %wavestorm-z04properhit 1 } elseif ($2 == 11) { set %wavestorm-hpgain $calc($hget(Player,HealthPoints) - %wavestorm-hp) } wavewindowreset } alias wavebeast2 { if ((%wavestorm-battleon == 1) && (%wavestorm-z01 != 1) && (%wavestorm-z04 != 1) && (%wavestorm-z07 != 1)) { if (%wavestorm-wavebeast != 1) { display3 %wavechat You are not currently in Wavebeast form and cannot use Wavebeast specials. return } if ($1 !ison %wavechat) { display3 %wavechat You can use Wavebeast specials on someone in the channel! return } if ((%wavestorm-battletimer != $null) && (%wavestorm-battletimer > 0)) { display3 %wavechat You have %wavestorm-battletimer more seconds before you can perform an action. return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b02) == 1) { display3 %wavechat $1 has been knocked off the airship, and cannot be attacked until they get back on it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b09) == 1) { display3 %wavechat $1 has fallen in a pitfall, and cannot be attacked until they climb out of it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b17) == 1) { display3 %wavechat $1 has been knocked off the motorcycle, and cannot be attacked until they get back on it return } if ($readini(" $+ $scriptdirWSInfo3.ini",$1,b24) == 1) { display3 %wavechat $1 has been paralyzed by an electric floor, and cannot be attacked until they're unparalyzed return } if ($2 !isnum 1 - 24) { display3 %wavechat You can only use up to 24 Wavebeast specials. Please type a number between 1 and 24. return } if ($2 !isnum $calc(($hget(Player,Wavelength) * 3) - 2) - $calc($hget(Player,Wavelength) * 3)) { display3 %wavechat You don't have this Wavebeast special to use. Please choose another option. return } if ((%wavestorm-melee == 1) && ($readini(WSInfo1.ini",$+(Wavebeast,$2),Target) == 1) && ($1 != $me) && ($?!="This special is a beneficial special designed to be used on yourself or your teammates. Are you sure you want to use it on an enemy?" == $false)) { return } if ((%wavestorm-melee != 1) && (($1 == %wavestorm-friend1) || ($1 == %wavestorm-friend2) || ($1 == %wavestorm-friend3)) && ($readini(" $+ $scriptdirWSInfo1.ini",$+(Wavebeast,$2),Target) == 2)) { display3 %wavechat You can only use this special on an opponent: %wavestorm-enemy1 %wavestorm-enemy2 %wavestorm-enemy3 %wavestorm-enemy4 return } if ((%wavestorm-melee != 1) && (($1 == %wavestorm-enemy1) || ($1 == %wavestorm-enemy2) || ($1 == %wavestorm-enemy3) || ($1 == %wavestorm-enemy4)) && ($readini(" $+ $scriptdirWSInfo1.ini",$+(Wavebeast,$2),Target) == 1)) { display3 %wavechat You can only cast this spell on a teammate: %wavestorm-friend1 %wavestorm-friend2 %wavestorm-friend3 return } if (($readini(" $+ $scriptdirWSInfo3.ini",$1,z01) == 1) && ($2 != 16)) { display3 %wavechat $1 has fallen. Only the white Wavebeast special Absolute Restart can be cast on a fallen person. return } display2 %wavechat casts $+(,$readini(" $+ $scriptdirWSInfo1.ini",$+(Wavebeast,$2),Color1),$chr(44),$readini(" $+ $scriptdirWSInfo1.ini",$+(Wavebeast,$2),Color2),$readini(" $+ $scriptdirWSInfo1.ini",$+(Wavebeast,$2),Title),!) $me $replace($readini(" $+ $scriptdirWSInfo1.ini",$+(Wavebeast,$2),Saying1),!target,$1,!me,$me,!gender1,%wavestorm-gender1,!gender2,%wavestorm-gender2,!gender3,%wavestorm-gender3) if ($2 isnum 1 - 9) { var %wavestorm-beastnum = $+(0,$2) } elseif ($2 isnum 10 - 24) { var %wavestorm-beastnum = $2 } if ($2 == 1) { display2 unleashes 4,5Blaze Inferno! $me sends blistering, glowing rays of energy into the parched ground beneath $+($1,$chr(44)) and the ground explodes, engulfing $1 in an aura of raging flames! .notice $1 Wavestorm %wavestorm-battleground $1 $+(w,%wavestorm-beastnum) %wavestorm-levelsend } elseif ($2 == 2) { if (%wavestorm-melee != 1) { if (%wavestorm-enemy4) { var %wavestorm-wavebeast-2-rand1 = $rand(1,4) } elseif (%wavestorm-enemy3) { var %wavestorm-wavebeast-2-rand1 = $rand(1,3) } else { goto wavestorm-wavebeast-2-2 } var %wavestorm-wavebeast-2-target1 = $eval($+(%,wavestorm-enemy,%wavestorm-wavebeast-2-rand1),2) :wavestorm-wavebeast-2-1 if (%wavestorm-enemy4) { var %wavestorm-wavebeast-2-rand2 = $rand(1,4) } elseif (%wavestorm-enemy3) { var %wavestorm-wavebeast-2-rand2 = $rand(1,3) } if (%wavestorm-wavebeast-2-rand2 == %wavestorm-wavebeast-2-rand1) { goto wavestorm-wavebeast-2-1 } var %wavestorm-wavebeast-2-target2 = $eval($+(%,wavestorm-enemy,%wavestorm-wavebeast-2-rand2),2) goto wavestorm-wavebeast-2-3 :wavestorm-wavebeast-2-2 var %wavestorm-wavebeast-2-target1 = %wavestorm-enemy1 if (%wavestor-enemy2) { var %wavestorm-wavebeast-2-target2 = %wavestorm-enemy2 } :wavestorm-wavebeast-2-3 } else { if ($ini(" $+ $scriptdirWSInfo3.ini",0) > 3) { :wavestorm-wavebeast-2-a var %wavestorm-wavebeast-2-target1 = $nick(%wavechat,$rand(1,$ini(" $+ $scriptdirWSInfo3.ini",0)) if ((%wavestorm-wavebeast-2-target1 == %wavestorm-wavebeast-fuse1) || (%wavestorm-wavebeast-2-target1 == %wavestorm-wavebeast-fuse2)) { goto wavestorm-wavebeast-2-a } if ($ini(" $+ $scriptdirWSInfo3.ini",0) > 4) { :wavestorm-wavebeast-2-b var %wavestorm-wavebeast-2-target2 = $nick(%wavechat,$rand(1,$ini(" $+ $scriptdirWSInfo3.ini",0)) if ((%wavestorm-wavebeast-2-target2 == %wavestorm-wavebeast-fuse1) || (%wavestorm-wavebeast-2-target2 == %wavestorm-wavebeast-fuse2) || (%wavestorm-wavebeast-2-target2 == %wavestorm-wavebeast-2-target1)) { goto wavestorm-wavebeast-2-b } } } } if (%wavestorm-wavebeast-2-target1) { if (%wavestorm-wavebeast-2-target2) { display2 unleashes 4,7Meteor Shower! $me shoots two tiny orbs of maroon into the air; the orbs shoot skyward, and transform into massive balls of fire before spiraling back down into %wavestorm-wavebeast-2-target1 and $+(%wavestorm-wavebeast-2-target2,!) } else { display2 unleashes 4,7Meteor Shower! $me shoots two tiny orbs of maroon into the air; the orbs shoot skyward, and transform into massive balls of fire before spiraling back down into $+(%wavestorm-wavebeast-2-target1,!) } .notice %wavestorm-wavebeast-2-target1 Wavestorm %wavestorm-battleground %wavestorm-wavebeast-2-target1 $+(w,%wavestorm-beastnum) %wavestorm-levelsend if (%wavestorm-wavebeast-2-target2) { .notice %wavestorm-wavebeast-2-target2 Wavestorm %wavestorm-battleground %wavestorm-wavebeast-2-target2 $+(w,%wavestorm-beastnum) %wavestorm-levelsend } } else { display3 %wavechat There are no viable targets to use this special on. } } elseif ($2 == 3) { display2 unleashes 7,1Sun Flare! $me sends beams of eruptive energy flaming down towards the battlefield, igniting an explosion miles wide .notice %wavechat Wavestorm %wavestorm-battleground %wavechat $+(w,%wavestorm-beastnum) %wavestorm-levelsend } elseif ($2 == 4) { display2 unleashes 15,7Spark Dispel! $me sends ripples of electricity scampering around the battlefield, short-circuiting every fortification shield .notice %wavechat Wavestorm %wavestorm-battleground %wavechat $+(w,%wavestorm-beastnum) %wavestorm-levelsend } elseif ($2 == 5) { display2 unleashes 1,8Thunder Barrier! $me engages an electric shield to block magic attacks set %wavestorm-magic-wavebeast 1 } elseif ($2 == 6) { display2 unleashes 8,1Shock Wave! $me dashes forward, transforms into a bolt of lightning, and crashes into the middle of the arena, sending bolts of raw electricity catapulting across the battlefield .notice %wavechat Wavestorm %wavestorm-battleground %wavechat $+(w,%wavestorm-beastnum) $calc(%wavestorm-hp / 10) } elseif ($2 == 7) { display2 unleashes 0,3Bedrock Tumble! $me thrusts %wavestorm-gender3 hands into the ground beneath %wavestorm-gender2 $+ $chr(44) pulls out two large boulders, and furiously flings them at $1 .notice $1 Wavestorm %wavestorm-battleground $1 $+(w,%wavestorm-beastnum) $calc(%wavestorm-hp / 5) } elseif ($2 == 8) { display2 unleashes 7,5Meteorite Barrage! $me pulls an arc of tumbling asteroids in from orbit and forces them to rotate around the arena continously set %wavestorm-wavebeast-8 1 } elseif ($2 == 9) { if (%wavestorm-melee == 1) { display2 unleashes 3,1Foliage Buffer! $me places %wavestorm-gender3 hands to the ground and sprouts a brigade of tress and bushes to provide protection to %wavestorm-gender3 friends .notice %wavestorm-wavebeast-fuse1 Wavestorm %wavestorm-battleground %wavestorm-wavebeast-fuse1 $+(w,%wavestorm-beastnum) %wavestorm-levelsend .notice %wavestorm-wavebeast-fuse2 Wavestorm %wavestorm-battleground %wavestorm-wavebeast-fuse2 $+(w,%wavestorm-beastnum) %wavestorm-levelsend } else { if (%wavestorm-friend1) { display2 unleashes 3,1Foliage Buffer! $me places %wavestorm-gender3 hands to the ground and sprouts a brigade of tress and bushes to provide protection to %wavestorm-gender3 teammates .notice %wavestorm-friend1 Wavestorm %wavestorm-battleground %wavestorm-friend1 $+(w,%wavestorm-beastnum) %wavestorm-levelsend if (%wavestorm-friend2) { .notice %wavestorm-friend2 Wavestorm %wavestorm-battleground %wavestorm-friend2 $+(w,%wavestorm-beastnum) %wavestorm-levelsend } if (%wavestorm-friend3) { .notice %wavestorm-friend3 Wavestorm %wavestorm-battleground %wavestorm-friend3 $+(w,%wavestorm-beastnum) %wavestorm-levelsend } } } } elseif ($2 == 10) { display2 unleashes 0,2Rampaging Niagara! $me sends a cascade of floodwaters rushing across the arena .notice %wavechat Wavestorm %wavestorm-battleground %wavechat $+(w,%wavestorm-beastnum) %wavestorm-levelsend } elseif ($2 == 11) { display2 unleashes 11,10Drifting Downpour! $me sends a torrent of rain pouring over the battlefield .notice %wavechat Wavestorm %wavestorm-battleground %wavechat $+(w,%wavestorm-beastnum) %wavestorm-levelsend } elseif ($2 == 12) { display2 unleashes 11,1Miasmic Spray! $me punches the ground and causes a fierce geyser of putrid water to explode beneath $+($1,'s) feet .notice $1 Wavestorm %wavestorm-battleground $1 $+(w,%wavestorm-beastnum) %wavestorm-levelsend } elseif ($2 == 13) { if ($rand(1,2) == 2) { display2 unleashes 0,6Pandemic Interrupt! $me sheathes the entire arena in crystal, stopping every single fighter! .notice %wavechat Wavestorm %wavestorm-battleground %wavechat $+(w,%wavestorm-beastnum) %wavestorm-levelsend } else { display2 attempts to unleash 0,6Pandemic Interrupt, sheathing the entire arena in crystal, but the crystal immediately shatters before it can affect anyone } } elseif ($2 == 14) { display2 unleashes 8,6Crystal Dispersion! $me screams and seemingly explodes, sending an array of ice spikes flying outwards in all directions .notice %wavechat Wavestorm %wavestorm-battleground %wavechat $+(w,%wavestorm-beastnum) %wavestorm-levelsend } elseif ($2 == 15) { if (%wavestorm-wavebeast-15 != 1) { set %wavestorm-wavebeast-15 1 display2 unleashes 6,9Parallel Rebound! $me punches the back of %wavestorm-gender3 clone, pouring purple energy through %wavestorm-gender2 $+ $chr(44) switching %wavestorm-gender3 mode. The clone begins to mimic $+($me,'s) every move! } else { set %wavestorm-wavebeast-15 2 display2 unleashes 6,9Parallel Rebound! $me punches the back of %wavestorm-gender3 clone, pouring purple energy through %wavestorm-gender2 $+ $chr(44) switching %wavestorm-gender3 mode. The clone begins to intercept and reverse all physical attacks! } } elseif ($2 == 16) { if (%wavestorm-melee == 1) { display2 unleashes 0,1Absolute Restart! $me sends a holy aura of flowing white energy throughout the arena, reversing all ailments and filling health levels .notice %wavestorm-wavebeast-fuse1 Wavestorm %wavestorm-battleground %wavestorm-wavebeast-fuse1 $+(w,%wavestorm-beastnum) %wavestorm-levelsend .notice %wavestorm-wavebeast-fuse2 Wavestorm %wavestorm-battleground %wavestorm-wavebeast-fuse2 $+(w,%wavestorm-beastnum) %wavestorm-levelsend } else { if (%wavestorm-friend1) { display2 unleashes 0,1Absolute Restart! $me sends a holy aura of flowing white energy throughout the arena, reversing all ailments and filling health levels .notice %wavestorm-friend1 Wavestorm %wavestorm-battleground %wavestorm-friend1 $+(w,%wavestorm-beastnum) %wavestorm-levelsend if (%wavestorm-friend2) { .notice %wavestorm-friend2 Wavestorm %wavestorm-battleground %wavestorm-friend2 $+(w,%wavestorm-beastnum) %wavestorm-levelsend } if (%wavestorm-friend3) { .notice %wavestorm-friend3 Wavestorm %wavestorm-battleground %wavestorm-friend3 $+(w,%wavestorm-beastnum) %wavestorm-levelsend } } } } elseif ($2 == 17) { display2 unleashes 7,14Plenary Outbreak! $me .notice %wavechat Wavestorm %wavestorm-battleground %wavechat $+(w,%wavestorm-beastnum) %wavestorm-levelsend } elseif ($2 == 18) { display2 unleashes 0,10! $me .notice $1 Wavestorm %wavestorm-battleground $1 $+(w,%wavestorm-beastnum) %wavestorm-levelsend } elseif ($2 == 19) { display2 unleashes 14,8! $me .notice $1 Wavestorm %wavestorm-battleground $1 $+(w,%wavestorm-beastnum) %wavestorm-levelsend } elseif ($2 == 20) { if ($rand(1,4) == 4) { display2 unleashes 5,15! $me .notice $1 Wavestorm %wavestorm-battleground $1 $+(w,%wavestorm-beastnum) %wavestorm-levelsend } else { display2 unleashes 5,15! $me } } elseif ($2 == 21) { if ($rand(1,4) == 4) { display2 unleashes 0,7! $me set %wavestorm-wavebeast-21 1 startbattletimer } else { display2 unleashes 0,7! $me } } elseif ($2 == 22) { if ($rand(1,2) == 2) { display2 unleashes 0,14! $me .notice $1 Wavestorm %wavestorm-battleground $1 $+(w,%wavestorm-beastnum) %wavestorm-levelsend } else { display2 unleashes 0,14! $me } } elseif ($2 == 23) { display2 unleashes 14,1! $me .notice $1 Wavestorm %wavestorm-battleground $1 $+(w,%wavestorm-beastnum) %wavestorm-levelsend } elseif ($2 == 24) { display2 unleashes 0,1! $me .notice $1 Wavestorm %wavestorm-battleground $1 $+(w,%wavestorm-beastnum) %wavestorm-levelsend if (%wavestorm-melee != 1) { if ($1 == %wavestorm-enemy1) { var %wavestorm-wavebeast-24-target1 = $eval(%wavestorm-enemy2,1) var %wavestorm-wavebeast-24-target2 = $eval(%wavestorm-enemy4,1) } elseif ($1 == %wavestorm-enemy2) { var %wavestorm-wavebeast-24-target1 = $eval(%wavestorm-enemy1,1) var %wavestorm-wavebeast-24-target2 = $eval(%wavestorm-enemy3,1) } elseif ($1 == %wavestorm-enemy3) { var %wavestorm-wavebeast-24-target1 = $eval(%wavestorm-enemy2,1) var %wavestorm-wavebeast-24-target2 = $eval(%wavestorm-enemy4,1) } elseif ($1 == %wavestorm-enemy4) { var %wavestorm-wavebeast-24-target1 = $eval(%wavestorm-enemy1,1) var %wavestorm-wavebeast-24-target2 = $eval(%wavestorm-enemy3,1) } } else { if ($ini(" $+ $scriptdirWSInfo3.ini",0) > 3) { :wavebeast-24-target1 var %wavestorm-wavebeast-24-target1 = $ini(" $+ $scriptdirWSInfo3.ini",$rand(1,$ini(" $+ $scriptdirWSInfo3.ini",0))) if ((%wavestorm-wavebeast-24-target1 == %wavestorm-wavebeast-fuse1) || (%wavestorm-wavebeast-24-target1 == %wavestorm-wavebeast-fuse2)) { goto wave-beast-24-target1 } if ($ini(" $+ $scriptdirWSInfo3.ini",0) > 4) { :wavebeast-24-target2 var %wavestorm-wavebeast-24-target2 = $ini(" $+ $scriptdirWSInfo3.ini",$rand(1,$ini(" $+ $scriptdirWSInfo3.ini",0))) if ((%wavestorm-wavebeast-24-target2 == %wavestorm-wavebeast-fuse1) || (%wavestorm-wavebeast-24-target2 == %wavestorm-wavebeast-fuse2)) { goto wave-beast-24-target2 } } } } if (%wavestorm-wavebeast-24-target1) { .notice %wavestorm-wavebeast-24-target1 Wavestorm %wavestorm-battleground %wavestorm-wavebeast-24-target1 $+(w,%wavestorm-beastnum) $calc(%wavestorm-levelsend / 4) } if (%wavestorm-wavebeast-24-target2) { .notice %wavestorm-wavebeast-24-target2 Wavestorm %wavestorm-battleground %wavestorm-wavebeast-24-target2 $+(w,%wavestorm-beastnum) $calc(%wavestorm-levelsend / 4) } } unset %wavestorm-beastnum* set -n %wavestorm-windowlasttarget $1 startbattletimer } elseif (%wavestorm-melee == 1) { display3 %wavechat You can only attack someone in $+(%wavechat,.) } }