<option name="MAX_FIGHT_TIME" value="40" /> <!-- Max time without damage before break -->
what does this value do?
Higher numbers = longer fight times?
lower numbers = fight breaks?
I raised the number to 40 b/c i'm getting
"Taking too long to damage target, Breaking sequence"
right now I am using the bot on a waypoint to just use the normal attack (white hits) with no casting but on occasion i get the break sequence. FYI I am doing this to lvl up the skill of 1 - handed sword + getting physical defense % lvl increase.
Also I am using RC2 currently if that matters. Should I raise the value to 120? It seems to not have any effect since i raised it to 40.
need help with sequence breaking
Re: need help with sequence breaking
If you just want to use white attacks then I would suguest making up a WP to do just that instead of using the normal bot attack functions.
If you are just attacking the same mob or type of mob you can just do this
This will only use the normal attack, so no need to change the profile, actually better if you leave profile with all the skills the way they should be.
If you are trying to move around and kill different mobs and also need to heal and use pots then you will need to add some more code to it but it should be easy enough to do.
To buff add
player:checkSkills(true)
To check potions add
player:checkPotions();
To use eggpet add
checkEggPets()
If you are worried you might actually die, add a HP check for your char and then if low HP add
player:fight()
This will use your profile skills to finish off the mob quickly.
If you need to move around a bit you can add in the coords and use
player:moveTo(CWaypoint(X,Z))
change the X and Z to the corresponding coords.
That should be enough to get you started anyway.
If you are just attacking the same mob or type of mob you can just do this
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
local mobnameorid = "Somemobname" -- change this
while(true) do
local found = player:findNearestNameOrId(mobnameorid)
player:target(found)
RoMScript("UseSkill(1,1)")
yrest(1000)
end
</onLoad>
</waypoints>
If you are trying to move around and kill different mobs and also need to heal and use pots then you will need to add some more code to it but it should be easy enough to do.
To buff add
player:checkSkills(true)
To check potions add
player:checkPotions();
To use eggpet add
checkEggPets()
If you are worried you might actually die, add a HP check for your char and then if low HP add
player:fight()
This will use your profile skills to finish off the mob quickly.
If you need to move around a bit you can add in the coords and use
player:moveTo(CWaypoint(X,Z))
change the X and Z to the corresponding coords.
That should be enough to get you started anyway.
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual