With changes to our game, it is becoming more and more difficult to simply hit the mob with any old ability. You will eventually have to develop a way to centralize how you check if you should hit an ability. To that end, i want to plant an idea in your head if you are using script similar this..
consider a change and route all your abilities through a central function. This will allow you to check to make sure you should cast that ability and later you can add a feature that can even make sure that if it is an ice based ability, that you dont use it on a mob that is healed by ice (but that is further down the road)
Now all you "Experts" out there will hack on me for not using a loop. Ya Ya... you gotta crawl first. Perhaps one of the other guys will take some time and explain how looping works.
Anyway, for those of you that are just working on customizing things like vgshaman, this should help you take steps to really focusing the logic of your script to allow for future filters and routines. Hope it helps someone out there.
mmo
Code:
function attack()
{
If ${Me.Ability[${Ability1}].IsReady}
{
Me.Ability[${Ability1}]:Use
call MeCasting
}
elseIf ${Me.Ability[${Ability2}].IsReady}
{
Me.Ability[${Ability2}]:Use
call MeCasting
}
elseIf ${Me.Ability[${Ability3}].IsReady}
{
Me.Ability[${Ability3}]:Use
call MeCasting
}
}
function MeCasting()
{
wait 3
while ${Me.IsCasting}
{
wait 1
}
while ${VG.InGlobalRecovery}
{
wait 1
}
while ${Me.ToPawn.IsStunned}
{
wait 1
}
wait 3
}
Code:
function attack()
{
Call DoAbility "${attack1}"
Call DoAbility "${attack2}"
Call DoAbility "${attack3}"
}
function DoAbility(string ability)
{
if ${Me.Ability[${ability}].IsReady}
{
Me.Ability[${ability}]:Use
call MeCasting
}
}
function MeCasting()
{
wait 3
while ${Me.IsCasting}
{
wait 1
}
while ${VG.InGlobalRecovery}
{
wait 1
}
while ${Me.ToPawn.IsStunned}
{
wait 1
}
wait 3
}
Anyway, for those of you that are just working on customizing things like vgshaman, this should help you take steps to really focusing the logic of your script to allow for future filters and routines. Hope it helps someone out there.
mmo