Genbot Version 12 Ready

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

Post by LordGiddion » Thu May 06, 2004 12:11 pm

SiatX most likely you miss spelled the name it's not Tnarg's Mending with a single quote it's Tnarg`s Mending with an acent mark.

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

Post by LordGiddion » Thu May 06, 2004 4:03 pm

Ok Did another update in this thread, I know I said I'd start a new thread but it's a small update that finishes off all the stuff that was partially implimented.
Botcore now 12.31
Botspell now 12.31

Nightshift
a lesser mummy
a lesser mummy
Posts: 54
Joined: Mon Oct 13, 2003 8:52 am

Post by Nightshift » Thu May 06, 2004 7:13 pm

Command: buff <spellname> on <target>

bot will cast spell, will recast spell, then erros and will continure to cast spell over and ovewr until macor is ended.

error:
/varset failed, variable '0' not found
botcore.inc@535 (Event_timer(string TimerName,string OldValue)):/if ($(Macro,Return)==0 /varset $(BuffListTimes[$counter}]}.Duration.TotalSeconds}
genbot.mac@57 (Main):/varset BreakOut 0


each tiime it recasts the spell the above error comes up, the only change is the variable '0' changes to '-5' then '-10' etc..

NightShift

fez_ajer
a ghoul
a ghoul
Posts: 106
Joined: Fri Apr 23, 2004 6:44 pm
Location: If I was up your ass you'd know where I was...

Try this...

Post by fez_ajer » Thu May 06, 2004 7:19 pm

botspell.inc (535)

Code: Select all

/if (${Macro.Return}==0) /varset [color=red]${[/color]BuffListTimes[${counter},1][color=red]}[/color] ${Spell[${BuffList[${counter},2]}].Duration.TotalSeconds}
/if (${Macro.Return}==1) /varcalc BuffListTimes[${counter},2] ${BuffListTimes[${counter},2]}+1
/if (${BuffListTimes[${counter},2]}>5) {
   /varset [color=red]${[/color]BuffListTimes[${counter},1][color=red]}[/color] 900
   /varset [color=red]${[/color]BuffListTimes[${counter},2][color=red]}[/color] 0
}

remove the stuff in RED
- Fez

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

Post by LordGiddion » Thu May 06, 2004 7:44 pm

fez_ajer: thanks for the catch on that 1, I'll fix it in my copy.

fez_ajer
a ghoul
a ghoul
Posts: 106
Joined: Fri Apr 23, 2004 6:44 pm
Location: If I was up your ass you'd know where I was...

Got a couple more...

Post by fez_ajer » Thu May 06, 2004 7:48 pm

botspell.inc (77)

Code: Select all

/declare SelfBuffList string [color=red]outer[/color]
botspell.inc (123)

Code: Select all

/if (${SelfBuffPass}>40[color=red])[/color] {
botspell.inc (364)

Code: Select all

/[color=red]call[/color] SpellSub "${SelfBuff[${counter}]}"
- Fez

Rassilon
a lesser mummy
a lesser mummy
Posts: 73
Joined: Thu Sep 04, 2003 6:34 pm

Post by Rassilon » Thu May 06, 2004 8:01 pm

Code: Select all

/if (${Macro.Return}==0) /varset ${BuffListTimes[${counter},1]} ${Spell[${BuffList[${counter},2]}].Duration.TotalSeconds} 
/if (${Macro.Return}==1) /varcalc BuffListTimes[${counter},2] ${BuffListTimes[${counter},2]}+1 
/if (${BuffListTimes[${counter},2]}>5) { 
   /varset ${BuffListTimes[${counter},1]} 900 
   /varset ${BuffListTimes[${counter},2]} 0 
} 
This is in botcore.inc.

Thanks

Nightshift
a lesser mummy
a lesser mummy
Posts: 54
Joined: Mon Oct 13, 2003 8:52 am

Post by Nightshift » Thu May 06, 2004 8:56 pm

botspell.inc
@570

Code: Select all

/if (${TargetName.Equal[yourself]} || ${TargetName.Equal[${Me.CleanName}]}


Not sure, but isn't this missing a ) or maybe it needs the ( at the beginning removed or something else all together?

NightShift

magictiger
a snow griffon
a snow griffon
Posts: 450
Joined: Sun Mar 21, 2004 2:24 pm

Post by magictiger » Thu May 06, 2004 9:42 pm

Missing a ). /if requres () around conditions now.

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

Post by LordGiddion » Thu May 06, 2004 9:47 pm

Bug fixes just updated, enjoy.
botcore now 12.32
Botspell now 12.32

Nightshift
a lesser mummy
a lesser mummy
Posts: 54
Joined: Mon Oct 13, 2003 8:52 am

Post by Nightshift » Thu May 06, 2004 9:59 pm

Think I found another..

botcore.inc
@545

Code: Select all

/if (${SelfBuffInt[${counter},1][color=red]}[/color]>1) /varcalc SelfBuffInt[${counter},1] ${SelfBuffInt[${counter},1]}-5
add the red code.

Missing } (right bracket)

NightShift

Nightshift
a lesser mummy
a lesser mummy
Posts: 54
Joined: Mon Oct 13, 2003 8:52 am

Post by Nightshift » Thu May 06, 2004 10:13 pm

Doing buff spellname on target, it seems work now.

but

It spams with "Don't know the spell Buffs so failing to cast"

The only place I see this is in botspell.inc @168

It also casts the buff twice when it is time recast the spell, the continues to spam the above.

NightShift

fez_ajer
a ghoul
a ghoul
Posts: 106
Joined: Fri Apr 23, 2004 6:44 pm
Location: If I was up your ass you'd know where I was...

Another

Post by fez_ajer » Thu May 06, 2004 10:31 pm

botspell.inc (571)

Code: Select all

/varset CommandPar[color=red]a[/color]m ${SpellNameParam}
Missing an 'a'
- Fez

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

Post by LordGiddion » Thu May 06, 2004 10:55 pm

Nightshift: is the target, me, yourself, botname, or someother target all together?

Charisa
a hill giant
a hill giant
Posts: 165
Joined: Tue Apr 06, 2004 5:38 pm

Post by Charisa » Thu May 06, 2004 11:58 pm

When I start the script up (with and without night's change above) I get the message Don't know the spell NULL so failing to cast" this appears to be in reference with the lines in the .ini to keep certain buffs on yourself. I tried with one spell and with two and same thing both times.

I also seem to have a problem with the selfbuff or buff <x> on <yourself> stuff not monitoring the buffs fading off and recasting. I'm not sure on timed spells yet.

Lastly I found an error in shortcuts.inc

I don't have anything that gives me line numbers easily but I think its line 181

Code: Select all

/if (${Targeting}>15) [color=red] then [/color]/return
change to:

Code: Select all

/if (${Targeting}>15) /return
Last but not least, more of a feature request, but is there any way we can implement the functionality of /memspell <slot> <gem> remotely for this script? Sometimes using a spellset isn't really practical, and being able to change the spells I have memmed would be nice. It might also be good to add the ability to dump the list of memmed spells out to chat so you can verify what is loaded.

Thanks :)