Lizardscale Woven Sash
This item requires you to target something to cast, either yourself or another person.
I was thinking something along the lines of:
Code: Select all
[Belt]
FullName=Lizardscale Woven Sash
keepUp=True
TargetSelf=True|FalseModerator: MacroQuest Developers
Code: Select all
[Belt]
FullName=Lizardscale Woven Sash
keepUp=True
TargetSelf=True|FalseCode: Select all
/varset itemspellname ${FindItem[${Ini[${IniFile},${ialias},FullName]}].Spell}
/if (${itemspellname.Equal[${Me.Buff[${itemspellname}]}]}) /varset doiclick 0
/if (${doiclick}>0) {
/if (${Cursor.ID}) /autoinv
/docommand /iclick ${ialias}
Alright, after having time to actually read this and look at it closely, I don't think I'd wanna implement it this way. Sitting after every nuke is a good way to get killed. I was thinking more along the lines of sitting only when there are no mobs in the immediate vicinity, which of course would be harder to code, but much more desirable for me personally.Braedo wrote:here is what i did to enable "auto sit" you may have to fiddle with the delay a tad depending on what spells you use...
open up your afnuke.inc and notice the bold... this basically puts a sit command right after every time u nuke! hope it works for you!
:wait2
/if (${Me.Casting.ID} || ${Me.Moving}) /goto :wait2
/if (${pausetimer}) /goto :nukeloop
/if (${Target.CurrentHPs}>${stopnuke} && !${Me.Moving} && ${Target.ID}==${mobid} && !${Target.Type.Equal[Corpse]}) {
/varset nukecount ${Math.Calc[${nukecount}+1]}
/echo Main Nuke Number ${nukecount}
/echo ${mainnuke} on ${Target.CleanName}, Health: ${Target.PctHPs}
/varset TempSpell ${mainnuke}
/call cast "${mainnuke}" ${mainnukegem} ${checktarget}
/sit
/if (!${nukepause.Equal["None"]}) /varset pausetimer ${nukepause}
} else /if (${Target.CurrentHPs}<=${stopnuke} && ${Target.CurrentHPs}>${stopnuke2} && !${Me.Moving} && ${Target.ID}==${mobid} && !${Target.Type.Equal[Corpse]}) {
/if (${TempSpell.Equal[${mainnuke}]}) /varset nukecount 0
/varset nukecount ${Math.Calc[${nukecount}+1]}
/echo End Nuke Number ${nukecount}
/echo ${endnuke} on ${Target.CleanName}, Health: ${Target.PctHPs}
/varset TempSpell ${endnuke}
/call cast "${endnuke}" ${endnukegem} ${checktarget}
/delay 3
/sit
/if (!${nukepause.Equal["None"]}) /varset pausetimer ${nukepause}
Yeah that should be fairly easy to add. I have a book too so it's a good incentive.Ydinlataus wrote:Nice work Azum!
I was wondering if you have considered adding automated TL in the macro, something along the lines:
Code: Select all
Sub Event_Chat(string ChatType, string Sender, string ChatText) /if (${ChatType.Equal[TELL]}) { /if (${ChatText.Find[tl ]} || ${ChatText.Equal[tl]}) { /target pc ${Sender} /delay 1s ${Target.Name.Equal[${Sender}]} /if (${FindItem[Time Traveler's Abandoned Notebook].ID}) /call Cast "Time Traveler's Abandoned Notebook" item }/else /call cast translocate } /return
Code: Select all
Sub Event_EXP
/if (${Target.CurrentHPs}>=0) /return
/varset engagedmob 0
/varset mobid 0
/varset conccount 0
/varset nukecount 0
/varset issnared 0
/varset pausetimer 0
/return Code: Select all
Sub Event_EXP
/if (${Target.CurrentHPs}>=0) /return
/sit
/varset engagedmob 0
/varset mobid 0
/varset conccount 0
/varset nukecount 0
/varset issnared 0
/varset pausetimer 0
/return Code: Select all
[Settings]
tankname=Tank
mainassist1=Tank
mainassist2=Tank
mainassist3=Tank
doassist=1
checktarget=nocheck
concuss=1
myconcgem=gem1
concnum=2
hasele=1
checkfamiliar=1
myfamiliar=303
engagedistance=200
mainnuke=Strike of Solusek
mainnukegem=gem4
mainnukenum=1
endnuke=Lure of Ro
endnukenum=4
endnukegem=gem8
mobhealth=93
stopnuke=20
stopnuke2=-1
medtoggle=1
medpercent=35
manatomedup=70
manarobe=1
beginrobe=20
donerobe=75
modrod=1
rodpercent=90
harvestpercent=70
doharvest=0
harvestgem=gem7
shieldofmaelin=1
maelingem=gem6
forceshield=1
forcegem=gem3
usetimewand=1
useepic=0
spellshield=0
ssgem=gem5
manaward=0
manawardgem=gem2
tempstaff=0
staffhealth=95
doxuzl=0
xuzlperc=85
dosnare=0
snareperc=25
snaregem=gem5
retry=3
maxbuffs=15
doleash=0
leashholder=nobody
leashlength=40
followdistance=30
nukepause=None
startdisplay=1That sounds strange. Do you have all the required files? (afnuke.mac, afnuke.inc, afnuke2.inc) Do you have the latest version of MQ2?Gaverok wrote:I am having a hell of a time with this atm. This is my toons current INI file:
When I start the macro with the tanks name or just start it regularly it mem's the nuke spells if needed. Then when it checks for Force Shield or goes to cast it the macro crashes. When I disable that it will crash when checking for Shield of Maelin. Basically the bot crashes if it is set to do anything more than assist and nuke (i.e. buffing itself or clicking an item). I'm not MQ code savy at all. I just know how to start the macro and edit what im told to in the INI's or whatever else. Is there something I am doing wrong? Should there be hotkeys made and placed in specific slots for it to see and use the item?