• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Request - Allow ranger spells like stealthy shot to work with ambush tag (1 Viewer)

Version of KissAssist.mac?
12.002
When did your problem start?
After trying to add a spell with the ambush tag to a ranger's .ini file
Character Role?
  1. Assist
What class is having this issue?
  1. Ranger
How often does this issue occur?
Always
So I had tried to set up a DPS line like this on my ranger (edited multiple places from hunter to ranger as I keep switching ranger and hunter as class names because of WoW forever but realize this is extremely confusing due to KA having the role of hunter):

Code:
DPS1=Stealthy Shot|99|ambush

I found that KA was never casting the spell. I did a search on the forums and found a couple people seemed to have brought up the issue before. I turned on dps debug and took a look and found that the function BeforeAttack just didn't seem to deal with spells. It seems set up to handle items, alternate abilities, disciplines, abilites, and even docommand lines, but not spells.

So I modified BeforeAttack and added the following for spells, and it seemed to work fine for my ranger, so thought I'd throw this out here in case, it would be a good idea to just add it to the base code.

Code:
                } else /if (${Me.CombatAbility[${UseThis}]} && !${Me.CombatAbilityTimer[${UseThis}]} && ${Me.CombatAbilityReady[${UseThis}]} && ${Spell[${UseThis}].EnduranceCost}<${Me.Endurance}) {
                    /disc ${Me.CombatAbility[${Me.CombatAbility[${UseThis}]}].ID}
                    /echo ## Before Attack >> ${UseThis} <<
                } else /if (${Me.Skill[${UseThis}]} && ${Me.AbilityReady[${UseThis}]}) {
                    /doability "${UseThis}"
                    /echo ## Before Attack >> ${UseThis} <<
| ---new for spells
        } else /if (${Me.SpellReady[${UseThis}]}) {
            /call CastWhat "${UseThis}" ${MyTargetID} BeforeAttack 0 0
            /echo ## Before Attack >> ${UseThis} <<
| ---spells end
                } else /if (${UseThis.Find[command:]}) {
                    /call CastCommand "${UseThis}" ${MyTargetID} 0
            /echo ## Before Attack >> ${UseThis} <<
                }
 
Last edited:
Would you mind horribly if we can take a peak at your INI so that we can see if there is something strange going on in your settings? I am suspicious of a few things and would love trying to recreate for testing.

Are you running Assist mode? or Hunter mode? I know you said in the character role Assist, but you mentioned Hunter? Or are you just calling your ranger a hunter?
 
Would you mind horribly if we can take a peak at your INI so that we can see if there is something strange going on in your settings? I am suspicious of a few things and would love trying to recreate for testing.

Are you running Assist mode? or Hunter mode? I know you said in the character role Assist, but you mentioned Hunter? Or are you just calling your ranger a hunter?
I'm sure I accidentally called my ranger a hunter because of WoW forever having just come out, but I realize how confusing that is with kissassist having the hunter role.

Sure I can post my .ini file, and yes I'm running in assist mode.

Code:
[General]
KissAssistVer=12.002
Role=Assist
CampRadius=30
CampRadiusExceed=400
ReturnToCamp=0
ChaseAssist=0
ChaseDistance=25
MedOn=1
MedStart=20
MedStop=100
MedCombat=1
LootOn=0
RezAcceptOn=1|90
AcceptInvitesOn=1
GroupWatchOn=0
GroupWatchCheck=FALSE
CorpseRecoveryOn=0
EQBCOn=0
DanNetOn=1
DanNetDelay=20
IRCOn=0
CampfireOn=0
CharInfo=Ranger|120|GOLD
DPSMeter=0
ScatterOn=0
LOSBeforeCombat=0
UseSpawnMaster=0
XTSlot=0
[SpellS]
MiscGem=9
MiscGemLW=0
MiscGemRemem=1
LoadSpellSet=0
SpellSetName=KissAssist
CastingInterruptOn=1
CheckStuckGem=1

[Buffs]
BuffsOn=1
BuffsSize=6
Buffs1=NULL
Buffs2=Wildstalker's Unity (Beza)|dual|Howling Blades
Buffs3=Shield of Rimespurs|CLASS|MA
Buffs4=Cloak of Needlebards|CLASS|PAL
Buffs5=Arbor Stalker's Enrichment
Buffs6=Poison Arrows|dual|Poison Arrows XIII
RebuffOn=1
CheckBuffsTimer=10
PowerSource=NULL
[Melee]
AssistAt=99
MeleeOn=1
FaceMobOn=1
MeleeDistance=50
StickHow=!front loose
AutoFireOn=0
UseMQ2Melee=0
TargetSwitchingOn=0
PetTauntOverride=0
[GoM]
GoMSHelp=Format - Spell|Target, MA Me or Mob, i.e. Rampaging Servant Rk. II|Mob
GoMSize=1
GoMSpell1=Ice Burrower Swarm|Mob
GoMSpell2=NULL
GoMSpell3=NULL
[AE]
AEOn=0
AESize=10
AERadius=50
AE1=NULL
AE2=NULL
AE3=NULL
AE4=NULL
AE5=NULL
AE6=NULL
AE7=NULL
AE8=NULL
AE9=NULL
AE10=NULL
[DPS]
DPSOn=2
DPSSize=21
DPSSkip=5
DPSInterval=0
DPS1=Stealthy Shot|99|ambush
DPS2=Wildstalker's Discipline|98|Cond2
DPS3=Auspice of the Hunter|97|weave|Cond2
DPS4=Empowered Blades|96|Cond2
DPS5=Group Guardian of the Forest|95|Cond2
DPS6=Pack Hunt|94|Cond2
DPS7=Bonecrawler Swarm|93|Cond2
DPS8=Spire of the Pathfinders|92|weave|Cond2
DPS9=Jolting Wheel Kicks|91|weave
DPS10=Elemental Arrow|90|weave
DPS11=Mistral Boon|89
DPS12=Blizzard of Blades|88|weave|Cond5
DPS13=Focused Gale of Blades|87|weave|Cond6
DPS14=Restless Wind|86
DPS15=Outrider's Accuracy|85|weave|Cond7
DPS16=Weapon Shield Discipline|84|Cond4
DPS17=Pyroclastic Ash|83
DPS18=Guardian of the Forest|82|weave|Cond8
DPS19=Marked Shots|81
DPS20=ArrowStorm|80|Cond5
DPS21=Swarm of Hyperboreads|79
DebuffAllOn=0
[Aggro]
AggroOn=0
AggroSize=1
Aggro1=Jolting Wheel Kicks|70|>
[Heals]
Help=Format Spell|% to heal at i.e. Devout Light Rk. II|50
HealsOn=1
HealInterval=0
AutoRezOn=0
HealsSize=2
Heals1=Meltwater Spring|65
Heals2=Weapon Shield Discipline|35|me
XTarHeal=0
XTarHealList=Xtar slots here Example: 5|6|7
HealGroupPetsOn=0
RezMeLast=0
[Cures]
CuresOn=0
CuresSize=5
Cures1=NULL
Cures2=NULL
Cures3=NULL
Cures4=NULL
Cures5=NULL
[Merc]
Help=To use: Turn off Auto Assist in Manage Mercenary Window
MercOn=0
MercAssistAt=92
[Burn]
BurnAllNamed=0
UseTribute=0
BurnSize=15
Burn1=NULL
Burn2=NULL
Burn3=NULL
Burn4=NULL
Burn5=NULL
Burn6=NULL
Burn7=NULL
Burn8=NULL
Burn9=NULL
Burn10=NULL
Burn11=NULL
Burn12=NULL
Burn13=NULL
Burn14=NULL
Burn15=NULL
[Pull]
PullWith=Snare
PullMeleeStick=0
MaxRadius=650
MaxZRange=250
UseWayPointZ=0
PullWait=5
PullRadiusToUse=90
PullRoleToggle=0
ChainPull=0
ChainPullHP=90
PullPause=30|2
PullLevel=0|0
PullArcWidth=0
PullOnReturn=0
[PullAdvanced]
PullLocsOn=0
[AFKTools]
AFKHelp=AFKGMAction=0 Off, 1 Pause Macro, 2 End Macro, 3 Unload MQ2, 4 Quit Game
AFKToolsOn=1
AFKGMAction=1
AFKPCRadius=500
CampOnDeath=0
ClickBacktoCamp=0
[KConditions]
ConOn=1
CondSize=8
Cond1=${Me.PctMana} < 85
Cond2=${Target.Named}
Cond3=!${Target.Named}
Cond4=${Target.Named} && ${Target.TargetOfTarget.Name.Equal[${Me.Name}]} && ${Me.PctHPs} < 45
Cond5=${XAssist.XTFullHaterCount} < 2
Cond6=${XAssist.XTFullHaterCount} > 1
Cond7=${Me.Song[Spirit of Vesagran].ID}
Cond8=${Me.Song[Outrider's Accuracy XXXVII].ID} && !${Me.Song[Group Guardian of the Forest XIV].ID}
 
To make sure I'm clear, with the posted .ini file using ambush for my DPS1 line of stealthy shot, I had log parses showing my ranger having never cast stealthy shot. But then after I added the change I posted to BeforeAttack to the kissassist.mac file, I was then both seeing the log parse now including stealthy shot being cast, as well as manually observing the ranger starting off combat on mobs by casting the spell and seeing the output of the /echo line now showing up in my rangers MQ window with the "## Before Attack >> Stealthy shot <<", which was also not happening prior to my change.
 
I think the core issue is that you are running MeleeOn=1 and then the Stealthy Shot isn't triggering because you are in combat when assist activates. I am curious why you aren't using an autofire command line? You are leaving a lot of DPS on the table without using a bow.

I do remember struggling with ambush when I was testing a rogue ini for their attack while sneaking. It is a little less finicky as they don't have to be out of combat - just sneaking. Turning on attack doesn't drop sneak on a rogue which allows the ambush to work.
 
I think the core issue is that you are running MeleeOn=1 and then the Stealthy Shot isn't triggering because you are in combat when assist activates. I am curious why you aren't using an autofire command line? You are leaving a lot of DPS on the table without using a bow.

I do remember struggling with ambush when I was testing a rogue ini for their attack while sneaking. It is a little less finicky as they don't have to be out of combat - just sneaking. Turning on attack doesn't drop sneak on a rogue which allows the ambush to work.
I just run a melee ranger because it's easier and for a long time the account was just ftp and had 0 aa and was trash at dps anyway and was just leveling it to have ranger buffs. And yeah, stealthy shot isn't triggering because he assists, because the kissassist function BeforeAttack is not coded to deal with spells, so even though the .ini file is set up to do it, the code to actually do it doesn't exist.

Is it possible to get stealthy shot to go off in some other way being a bow ranger not meleeing and using autofire instead, or not using ambush, probably, but kind of the whole reason I made the post was because BeforeAttack isn't set up to deal with spells, hence the request flair.
 
I figured it was something along those lines. No shade, just curious.

So Ambush should work for other items that don't have the specific Out of Combat flag that Stealthy Shot has. Ambush was added to replace the older BeforeCombat entry in the Melee section. And I believe they added the function for all classes even tho it was intended for melee classes. You just happened upon the most specific item that requires the character to be Out of Combat for the spell to work. This is definitely a one-off case and probably should be added on an ad hoc basis for those desiring this intended function.

As a workaround I would still run with MeleeOn=0 as a melee ranger and just use a command line to start attack after this specific out of combat DPS line. But in that instance you could utilize the |once tag as well as you wouldn't be able to fire it again while in combat.
 
Request - Allow ranger spells like stealthy shot to work with ambush tag

Users who are viewing this thread

Back
Top
Cart