Troub script question

zakiya

Active Member
I am trying to use Troub script and I am having some problems. It is a new toon and when I start the bot, it loops "stealth check" on console and switching between melee and ranged ( bow attack ) non-stop. Any suggestions ?
 

bjcasey

ISX Specialist
What do you mean by new toon? What level is the toon? What are the settings you have selected? Are you using it solo or part of a group?
 

zakiya

Active Member
Found the problem in script.

if ${Actor[ID,${KillTarget}].Distance}>${Position.GetMeleeMaxRange[${TID}]} && !${Me.RangedAutoAttackOn}
EQ2Execute /auto 1
elseif ${Actor[ID,${KillTarget}].Distance}<${Position.GetMeleeMaxRange[${TID}]} && !${Me.AutoAttackOn}
EQ2Execute /auto 2

I changed the script as above and the bot works nicely. The auto 1 and 2 are flipped I believe.
 
I have a question about the troub script as well. I'm not seeing it use the ability (night strike) after (bump) is being used. I've tried messing with the code, but i'm no programmer and have had no success. I don't want to mess anything up lol.

; Stealth Attack Combo
; Check if we have the bump AA and use it to stealth us, if we do not, skip it entirely
echo stealth check
if ${Me.Ability[${SpellType[391]}](exists)} && ${Me.Ability[${SpellType[391]}].IsReady} && ${Me.Ability[${SpellType[130]}].TimeUntilReady}<.1 && !${RangedAttackMode} && (${Actor[${KillTarget}].Target.ID}!=${Me.ID} || !${Actor[${KillTarget}].CanTurn})
{
echo use stealth
while ${Me.CastingSpell}
{
wait 2
}
call CastSpellRange 391 0 1 1 ${KillTarget}
call CastSpellRange 130 0 1 1 ${KillTarget}
return
}

in the eq2bot main window, it shows it queue up bump and use it, but immediately after instead of hitting night strike, it just queues up another spell. in the IS console it reads:

stealth check
use stealth
12:51:01 DEBUG: CheckPosition(1,1,23883712,391,FALSE)

So yeah, like i said I have no idea what i'm doing, but i'm pretty sure something is wrong here. any help would be much appreciated :)
 

ownagejoo

Well-Known Member
I am see the same problem with the troub script, I have yet to pin it down why its not casting night strike after bump. I have played with timing and waits but its still not casting it.

It is the next line of code and should cast it. I am still debugging this and will let anyone know when I fix it.

Ownagejoo
 

Pygar

EQ2Bot Specialist
for bump, try using an eq2execute /useability Bump instead of castspellrange

CastSpellRange may have some delay issues with instant cast abilities.
 
Top Bottom