• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->

Quick stupid little assist code help (1 Viewer)

letmein

New member
Joined
Aug 10, 2005
RedCents
I want to add to my lootwhore macro, some script that assists a specified toon, monitors the targets life, if below 81% /pet attacks.

Then at 50% cast a spell once only.

Now. I've posted this in an early thread, but because MQ2 was down, I couldn't test it until now. It doesn't work. So can someone help me out here?

This is last little bit I need to fix, and it's driving me batty.

Thanks in advance you guys are awesome.
 
and the cast spell once thing...

Rich (BB code):
Sub Kill 
/declare Dotted bool inner
/declare OldTarget string inner
/if (!${Defined[Dotted]}) /varset Dotted FALSE
/tar ${Master}
 /assist 
 /if (${Target.PctHPs}<81&&${Me.PctMana}>90&&${Me.PctMana}>20) {
/petattack
} else {
/echo target not under 80%, returning
/return
}
/if (${Target.PctHPs}<51&&${Me.PctMana}>90&&${Me.PctMana}>20&&${Dotted}==FALSE&&!${Target[${OldTarget}]}) {
have it cast whatever you want here IE /cast 1
/varset Dotted FALSE
/varset OldTarget (${Target})
}
/return
 
Cade,

This is the error it just through out.

Failed to parse /if condition '(79<51&&97>90&&97>20&&False==F'(79<51&&97>90&&97>20&&False==False&&!TOONNAME)', non-numeric encountered.

End macro.

Any ideas?
 
Rich (BB code):
|Macro Lootwhore.mac
|Macro Made By Hamburgerhelper
|For use of Redguides ONLY
|My brain hurts
|Usage /mac Lootwhore "Mastersname"
|Commands: /tell "lootwhore" Camp out now - Makes Bot Camp
|          /tell "lootwhore" Reset Mac - Resets Mac


#Event MobDied "#*# has been slain by#*#" 
|#Event Tell "#*#tells you#*#"
#Event MobDied "#*#You have slain#*#"
#Event Died "#*#You have entered Guild Lobby#*#"
#Event reset "#*#Reset mac#*#" 
#Include advpath.inc 

#turbo 10
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sub Main 
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|Change This Stuff ---------------------------
|Spell List
/declare turnedon outer FALSE
/call InitAPFVars 1 15 20
 
|loot all items? (0 no, 1 yes) 
 /declare LootAllItems     int outer  0 
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|Loot Array Information. 
 /call ReadINI HunterLoot.ini "${Zone.Name}" Loot 
 /if (!${Defined[ItemsToLoot]}) { 
 /echo No Loot Array Created... 
 } 
|Variables that you don't need to worry about. 
 /deletevar Master 
 /declare Master string Global
 /varset Master ${Param0}
 /declare LootSlot         int outer  0 
 /declare MyXLOCA int outer 0 
 /declare MyYLOCA int outer 0 
 /declare AnchorX int outer ${Me.X} 
 /declare AnchorY int outer ${Me.Y}
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
 /echo Starting Looting Macro. 
 :loop
 /call GMcheck  
 /doevents
 /delay 5 
 /goto :loop 
/return 

|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|SUB: Looting 
 Sub Event_MobDied 
 /delay 5s
 /squelch /declare LootSlot    int inner  0 
 /declare LootCheck   int inner  0 
 /declare LootTotal   int inner  0 
 /target npc corpse radius 200 
 :MovementLoop 
 /face fast nolook 
 /if (${Int[${Target.Distance}]}>13) { 
 /keypress forward hold 
 } 
 /if (${Int[${Target.Distance}]}<13&&${Int[${Target.Distance}]}>11) { 
 /keypress forward 
 } 
 /if (${Int[${Target.Distance}]}<9) { 
 /keypress back 
 } 
 /if (${Int[${Target.Distance}]}>13) { 
 /goto :MovementLoop 
 } 
 /keypress forward 
 /keypress back 
 /delay 5 
 /loot 
 /delay 5 
 /if (!${Corpse.Items}) { 
 /echo NO LOOT!
 /notify LootWnd DoneButton leftmouseup 
 /delay 5
/return 
 } 
 /varset LootTotal ${Corpse.Items} 
 /for LootSlot 1 to ${LootTotal} 
 /itemnotify loot${LootSlot} leftmouseup 
 /delay 5 
 /if (${LootAllItems}) { 
 /echo Keeping a ${Cursor.Name}... WOOT! 
 /autoinventory 
 /autoinventory 
 /delay 5 
 } else { 
 /for LootCheck 1 to ${ItemsToLoot.Size} 
 /if (${Cursor.Name.Find[${ItemsToLoot[${LootCheck}]}]}) { 
 /echo Keeping a ${Cursor.Name}... WOOT! 
 /autoinventory 
 /autoinventory 
 /delay 5 
 } 
 /next LootCheck 
 } 
 /if (${Cursor.ID}) { 
 /echo Destroying a ${Cursor.Name}... 
 /destroy 
 /destroy 
 /delay 5 
 } 
 /next LootSlot 
 /delay 5 
 /notify LootWnd DoneButton leftmouseup 
 /delay 5
 /call Kill
/return 
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|SUB: Reading from an INI File 
Sub ReadINI(FileName,SectionName,ArrayType) 
 /echo Attempting to Read Section "${SectionName}" Zone Information from ${FileName}... 
 /delay 1s 
 /if (${Ini[${FileName},${SectionName},-1,NO].Equal[NO]}) { 
 /echo "${SectionName}" is not a Valid Section for FILE:${FileName}, ending macro... 
 /delay 1s 
 /return 
 } 
 /declare nValues     int local  1 
 /declare nArray      int local  0 
 /declare KeySet      string local  ${Ini[${FileName},${SectionName}]} 
 :CounterLoop 
 /if (${String[${Ini[${FileName},${SectionName},${ArrayType}${nValues}]}].Equal[null]}) { 
 /varcalc nValues ${nValues}-1 
 /goto :MakeArray 
 } 
 /varcalc nValues ${nValues}+1 
 /goto :CounterLoop  
 :MakeArray 
 /if (${FileName.Equal["HunterLoot.ini"]}&&${nValues}>0) { 
 /echo Declaring Loot Array... 
 /declare ItemsToLoot[${nValues}]  string outer 
 } 
 /for nArray 1 to ${nValues} 
 /if (${FileName.Equal["HunterLoot.ini"]}) { 
 /squelch /varset ItemsToLoot[${nArray}] ${Ini[${FileName},${SectionName},${ArrayType}${nArray}]} 
 } 
 /next nArray 
 /echo "${SectionName}" Zone Information Read Successfully from ${FileName}... 
 /delay 1s 
/return 

Sub Kill 
 /declare Dotted bool inner
 /declare OldTarget string inner
 /if (!${Defined[Dotted]}) /varset Dotted FALSE
 /tar ${Master}
 /assist 
 /if (${Target.PctHPs}<81&&${Me.PctMana}>90&&${Me.PctMana}>20) {
 /petattack
 } else {
 /echo target not under 80%, returning
/return
}
/if (${Target.PctHPs}<51&&${Me.PctMana}>90&&${Me.PctMana}>20&&${Dotted}==FALSE&&!${Target[${OldTarget}]}) {
/cast 1
/varset Dotted FALSE
/varset OldTarget (${Target})
}
/return

|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Sub WaitTilThere
 :LoopTilThere
 /if (${PathingFlag}==1) {
 /call AdvPathPoll
 /delay 0
 /doevents
 /goto :LoopTilThere
 }
 /return
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sub Event_reset 
/Tell ${Master} Resetting in 5
/delay 5s 
/tar ${Master}
/macro lootwhore ${Master} 
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sub Event_tell
 /tell ${Master} ${Sender} told Me, '${ChatText}' 
/return 
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sub Event_camp 
 /camp 
 /endmac 
/return
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
Sub GMcheck
/if (${Spawn[gm].ID}) {
/mqlog GM Fuggin up plan
/keypress instant_camp
/endmac
}
/return
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
sub event_died    
 /twist off
 /delay 1
 /sit
 /delay 3
 /camp desktop
 /end
 /return

This is what I got, and throwing the above error.
 
Rich (BB code):
Sub Kill 
 /declare Dotted bool inner
 /declare OldTarget string inner
 /if (!${Defined[Dotted]}) /varset Dotted FALSE
 /tar ${Master}
 /assist 
 /if (${Target.PctHPs}<81&&${Me.PctMana}>90&&${Me.PctMana}>20) {
 /petattack
 } else {
 /echo target not under 80%, returning
/return
}
/if (${Target.PctHPs}<51&&${Me.PctMana}>90&&${Me.PctMana}>20&&${Dotted}==FALSE&&!${Target[${OldTarget}]}) {
/cast 1
/varset Dotted FALSE
/varset OldTarget (${Target})
}
/return

Had an extra /return in there which I deleted, still not working. It's isn't even trying to run the /call Kill it looks to me.

I don't get it. It ran it once and I got the error, now I can't get it to call the SUB Kill.

Wierd.
 
Yeah...no matter what I try, my toon running the lootwhore macro won't even ASSIST the bard.

It's not doing anything at all. except looting.
 
Can someone PLEASE help me get this thing working?

No matter what I do, I can't even get my second toon to assist my bard.

This is severly limiting my AA's, and I'd like to get it fixed asap. I was up till 1am trying to get it to work, now I'm dragging ass at work =b
 
Quick stupid little assist code help

Users who are viewing this thread

Back
Top