View Full Version : Sbounty Attack Routines
SashaFierce
12-14-2015, 03:09 PM
I'm having problems with sbounty/bigshot doing different attack routines based on the creature.
For targets I have:
greater krynch (a),earth elemental (a),greater earth elemental (a),Illoke jarl (c)
And in each Commands (a)/(b)/(c) portion I have different attacks, but no matter what it always uses command a.
Any ideas?
Arqueto
12-14-2015, 03:19 PM
Have you tried:
greater krynch(a), earth elemental(a), greater earth elemental(a), Illoke jarl(c) ?
Seems nitpicky but I believe that was the solution to my issues in the past.
SashaFierce
12-14-2015, 03:28 PM
Have you tried:
greater krynch(a), earth elemental(a), greater earth elemental(a), Illoke jarl(c) ?
Seems nitpicky but I believe that was the solution to my issues in the past.
I think that's how I had it the first time, then I added in the spaces to try to fix it, I can put it back but I don't think it likes it either way.
SashaFierce
12-14-2015, 03:31 PM
Deleted every entry, and created a new entry, Illoke jarl(c)
It still always defaults to attack routine A
elcidcannon
12-14-2015, 03:40 PM
what are your three listed attack routines? maybe the issue is there
SashaFierce
12-14-2015, 03:47 PM
a: wait 15,hasteattack target(x30)
b: hasteattack target(xx)
c: 410(m10),stance off and feint target,wait 15,hasteattack target(x30)
hasteattack is a custom command I created in bigshot
def cmd_hasteattack( npc )
return unless Spell[506].known? and Spell[506].active? and Spell[506].timeleft >= 0.1
dothistimeout "attack ##{npc.id}", 1, /^You thrust\!$/
waitrt?
end
SashaFierce
12-14-2015, 06:50 PM
Further update: It appears to be something with bigshot. Removing sbounty from the equation, 3 different attack routines, bigshot is not recognizing them.
elcidcannon
12-14-2015, 06:55 PM
have you tried it without the custom command? something simple like:
a: attack target
b: 410(m10)
SashaFierce
12-14-2015, 07:04 PM
have you tried it without the custom command? something simple like:
a: attack target
b: 410(m10)
Same thing, doesn't recognize different attacks.
elcidcannon
12-14-2015, 07:06 PM
Interesting...have you tweaked it all, besides the custom command? Try re-downloading it from the repository.
SashaFierce
12-14-2015, 07:09 PM
Wondering if something has changed in Lich so that these are no longer valid.
Sbounty:
:hunt_pre_commands => Gtk::Entry.new.set_text(CharSettings[:hunt_pre_commands].collect { |a| a.strip }.join(',')),
:hunt_commands_a => Gtk::Entry.new.set_text(CharSettings[:hunt_commands_a].collect { |a| a.strip }.join(',')),
:hunt_commands_b => Gtk::Entry.new.set_text(CharSettings[:hunt_commands_b].collect { |a| a.strip }.join(',')),
:hunt_commands_c => Gtk::Entry.new.set_text(CharSettings[:hunt_commands_c].collect { |a| a.strip }.join(',')),
Sbounty-bigshot:
UserVars.op['hunting_commands'] = settings[:hunt_commands_a].join(',')
UserVars.op['hunting_commands_b'] = settings[:hunt_commands_b].join(',')
UserVars.op['hunting_commands_c'] = settings[:hunt_commands_c].join(',')
Bigshot:
set_value_required( 'hunting_commands', 'split_xx' )
set_value( 'hunting_commands_b', 'split_xx', Array.new )
set_value( 'hunting_commands_c', 'split_xx', Array.new )
if routine_letter == 'c'
return @HUNTING_COMMANDS_C unless @HUNTING_COMMANDS_C.size == 0
elsif routine_letter == 'b'
return @HUNTING_COMMANDS_B unless @HUNTING_COMMANDS_B.size == 0
end
return @HUNTING_COMMANDS
end
add_label_entry($OP_TABLE5, "*hunting commands:", 'hunting_commands')
add_label_entry($OP_TABLE5, "hunting commands(b):", 'hunting_commands_b')
add_label_entry($OP_TABLE5, "hunting commands(c):", 'hunting_commands_c')
Tgo01
12-14-2015, 07:15 PM
Have you tried using just the critter noun? Looking at the code it should work with the full name or noun but the instructions specifically state to just use the critter noun.
SashaFierce
12-14-2015, 07:20 PM
Have you tried using just the critter noun? Looking at the code it should work with the full name or noun but the instructions specifically state to just use the critter noun.
Thanks, I'll give that a try next.
It worked fine for the longest time, it just recently stopped working for some unknown reason.
SashaFierce
12-14-2015, 07:35 PM
Damn, I feel stupid.
It works now. I've always used the full name of the creature before. :(
Thanks Tgo01, remind me to kiss you later.
Aethor
12-14-2015, 07:52 PM
custom commands are not recognized in bigshot
I would imagine not so in sbounty or azbounty
how about:
a:incant 506, attack target(x30)
b: attack target(xx)
c: incant 410(m10), stance off, feint target,wait 15,incant 506, attack target(x30)
krynch(a), elemental(a), jarl(c)
SashaFierce
12-14-2015, 08:04 PM
custom commands are not recognized in bigshot
I would imagine not so in sbounty or azbounty
how about:
a:incant 506, attack target(x30)
b: attack target(xx)
c: incant 410(m10), stance off, feint target,wait 15,incant 506, attack target(x30)
krynch(a), elemental(a), jarl(c)
You can create custom commands in bigshot if you code them in.
This is the custom command I added in bigshot.
def cmd_hasteattack( npc )
return unless Spell[506].known? and Spell[506].active? and Spell[506].timeleft >= 0.1
dothistimeout "attack ##{npc.id}", 1, /^You thrust\!$/
waitrt?
end
It basically stops you from attacking unless you're hasted.
Haldrik
12-14-2015, 09:14 PM
custom commands are not recognized in bigshot
I would imagine not so in sbounty or azbounty
Sbounty is just a layer on top of bigshot. It simply copies A/B/C over to bigshot settings.
Haldrik
12-14-2015, 09:15 PM
Have you tried using just the critter noun? Looking at the code it should work with the full name or noun but the instructions specifically state to just use the critter noun.
Is there a way to get
"greater bog troll"
"bog troll"
to work? :(
Tgo01
12-14-2015, 09:27 PM
Is there a way to get
"greater bog troll"
"bog troll"
to work? :(
It should work, just have to be careful with any spaces.
The script separates each critter at the comma and treats everything before (a/b/c) as part of the critter name.
Thus greater bog troll(a),bog troll(b)
Should work perfectly because the script will now match "greater bog troll" with all critter names in the room and if it matches that exactly it will use attack sequence a. Same goes for bog troll.
However greater bog troll (a), bog troll(b)
Would try to match "greater bog troll " (notice the space) and " bog troll" with all critters in the room. Since critter names don't have spaces before or after their names it will never match these with critters.
At least that's what it looks like to me from looking at the code. If the lack of spaces still can't tell the difference between greater bog troll and bog troll then I'm at a loss :O
Haldrik
12-15-2015, 12:16 AM
It should work, just have to be careful with any spaces.
The script separates each critter at the comma and treats everything before (a/b/c) as part of the critter name.
Thus greater bog troll(a),bog troll(b)
Should work perfectly because the script will now match "greater bog troll" with all critter names in the room and if it matches that exactly it will use attack sequence a. Same goes for bog troll.
However greater bog troll (a), bog troll(b)
Would try to match "greater bog troll " (notice the space) and " bog troll" with all critters in the room. Since critter names don't have spaces before or after their names it will never match these with critters.
At least that's what it looks like to me from looking at the code. If the lack of spaces still can't tell the difference between greater bog troll and bog troll then I'm at a loss :O
Ah. I'll have to give it a shot without the spaces and see what happens. Ty!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.