Moderator: MacroQuest Developers



Code: Select all
[MQ2]Goto - went to label :fastmoveloop
[MQ2]Face - Facing 'gimp'...
[MQ2]Goto - went to label :fastmoveloop
[MQ2]Face - Facing 'gimp'...
[MQ2]Goto - went to label :fastmoveloop
[MQ2]Face - Facing 'gimp'...
[MQ2]Goto - went to label :fastmoveloop
[MQ2]Face - Facing 'gimp'...
First-chance exception at 0x74736166 in eqgame.exe: 0xC0000005: Access violation reading location 0x74736166.
Code: Select all
|Fastmove
|Called by Rangesub for when mob is more than /keypress distance away.
|Usage: /call Fastmove
Sub Fastmove
/varset ObstacleCheck 0
/varset GenLastXLoc ${Me.X}
/varset GenLastYLoc ${Me.Y}
:fastmoveloop
/doevents
/if (!${Target.ID}) {
/varset Combatstatus 0
/keypress FORWARD
/if (${Me.Combat}) /attack off
/return
}
/if (${Me.Sitting}) /stand
/face fast
/if (${Target.Distance}>${FastRange}) /keypress FORWARD hold
/if (${Target.Distance}<=${FastRange}) {
/keypress FORWARD
/return
}
/if (${ObstacleCheck}>=30) {
/call Detectobst
/varset ObstacleCheck 0
}
/if (${Target.Distance}>=${Math.Calc[${FastRange}*3]}) /varcalc ObstacleCheck ${ObstacleCheck}+1
/goto :fastmoveloop
/return


Code: Select all
Sub Event_timer(string TimerName,string OldValue)
/if (${TimerName.Equal[SitTimer]}) {
/if (${Me.Standing}) /sit
}
/if (${TimerName.Equal[ChainStunTime]}) {
/call NextStun
}
/if (${TimerName.Equal[BuffListAdvance]}) {
/declare counter int local
/for counter 1 to ${BuffListCount}
/varcalc BuffList[${counter},3] ${Int[${BuffList[${counter},3]}]}-5
/if (${Int[${BuffList[${counter},3]}]}<5) {
/call StandardTarget "${BuffList[${counter},1]}"
/if (${Target.CleanName.Equal[${BuffList[${counter},1]}]}) {
/call SpellSub "${BuffList[${counter},2]}"
/if (${Macro.Return}==0) /varset BuffList[${counter},3] ${Spell[${BuffList[${counter},2]}].Duration.TotalSeconds}
}
}
/next counter
/varset BuffListAdvance 50
}
/return 


Code: Select all
/call SpellSub "Dooming Darkness" 3


The buff code does the same thing for me.LordGiddion wrote:ml2517: wasn't suggesting it as a replacment, don't plan to make a replacement in Genbot either, just sugesting that it might be nice to add it as an option.
fez_ajer: I'll look at cleaning up the implimation of Breakout.
I might look at updating spell sub to do some auto retrys. As far as spell success and Fails, spell sub returns 0 if the spell took and 1 if it didn't (in theory at least) I have plans to beef the return infomation up but it's on the to-do list
Did the suggested code for the buff timer work?