BashSlamKick

Moderator: MacroQuest Developers

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

BashSlamKick

Post by aChallenged1 » Mon Jul 03, 2006 1:33 pm

The following script should work, but is untested at time of posting.
It is only meant to run for Barbarians, Ogres, and Trolls, it will exit if character is not any of those races.

How it is supposed to work...
1. it checks to see if you are any of the correct races
2. it randomly chooses 0 to 2, and from that decides which ability to use,
Bash, Slam, or Kick.
3. However it also has another random check this is a 1 in 6 chance of choosing to taunt.

Enjoy! Helpful comments appricated.

Code: Select all

; Created 3July06 by aChallenged1
; BashSlamkick.iss

function main()
{

 declare HitIt string
 declare xTaunt int
 declare x int

; I think this check will work, from what I've seen in other scripts
if !${Me.Race.Name.Equal[Barbarian, Ogre, Troll]}
   {
   echo Script for Barbarian, Ogre, and Trolls only
   endscript
   }

 while "1"
 {

 x:Set[${Math.Rand[2]}]

 Select Case ${x}

    Case 0
    HitIt:Set[bash]

    Case 1
    HitIt:Set[slam]

    Case 2
    HitIt:Set[kick]

 End Select

  wait ${Math.Rand[10]:Inc[55] ( !${Me.Stunned} && ${Me.AbilityReady[${HitIt}]} )
  xTaunt:Set[${Math.Rand[5]}]
  if ${xTaunt} == 1
    {
    doability taunt
    }
    else
    {
    doability ${HitIt}
    }
 }
}

function atexit() 
{ 
    
   deletevar HitIt
   deletevar xTaunt
   deletevar x
   echo Script BashSlamTaunt ended
    
}
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!