help with bot running wild
-
- Posts: 94
- Joined: Tue Dec 21, 2010 3:12 am
help with bot running wild
<option name="WANDER_RADIUS" value="500" />
<option name="WAYPOINT_DEVIATION" value="0" />
i got these options but bot will go way off way points. it will see a gathernode or mob and run to it. then it will see another after that, then another and soon it is super far off course and when it trys to go back will get stuck like on an entire mountain since it went so far away. also how can i beter make it so it doesnt get stuck on trees.
<option name="WAYPOINT_DEVIATION" value="0" />
i got these options but bot will go way off way points. it will see a gathernode or mob and run to it. then it will see another after that, then another and soon it is super far off course and when it trys to go back will get stuck like on an entire mountain since it went so far away. also how can i beter make it so it doesnt get stuck on trees.
Re: help with bot running wild
Maybe you want the mob combat distance?
what your value here?
Code: Select all
<option name="COMBAT_DISTANCE" value="150" />
Thanks for reading!
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
-
- Posts: 94
- Joined: Tue Dec 21, 2010 3:12 am
Re: help with bot running wild
its 300. but I dont see how that option would make this happen. also is with gathering. but i am not having that trouble now that im in less mob pack area. I saw someone else post a thread how to stop getting the mob buffs but my bot never gets them Oo how i make it so it picks them up. thank you.
Re: help with bot running wild
It picks the "buffs", which in fact are called sigils, by default.
Thanks for reading!
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
-
- Posts: 94
- Joined: Tue Dec 21, 2010 3:12 am
Re: help with bot running wild
i don't see how it does it by default when it never ever picks them up. when i see a "good buff" when im alt tabed doing something I have to fight the bot for control to inch my way to the buff toget it. but never has it got them byitself.
Re: help with bot running wild
If you have loot set to true it picks them up by default, if you have loot set to false then it assumes you don't want to go near corpses and therefore doesn't pick up the buffs.
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
-
- Posts: 94
- Joined: Tue Dec 21, 2010 3:12 am
Re: help with bot running wild
I have looting on. it loots fine. just never gets the sigils.
and I got another question. not sure if i should open a new thread or not but here it goes.
sometimes the bot will fail to use a buff is there anyway instead of having it press the button once every X-min that it instead checks if the buff is active onmyself if not cast buff?
<onSkillCast><![CDATA[
player:updateBuffs("player")
if player.Class1 == CLASS_ROGUE then
if not player:Buff("Enhanced Armor") then
player:cast(KNIGHT_ENHANCED_ARMOR);
end
else
if not player:Buff("Lion's Protection") then
player:cast("ROGUE_LIONS_PROTECTION");
end
end
]]></onSkillCast>
is this how it is? i pretty much look all over forums and copy paste stuff together but I get an errow from "Buff returns a nill value" and "hasBuff returns a nill value"
and I got another question. not sure if i should open a new thread or not but here it goes.
sometimes the bot will fail to use a buff is there anyway instead of having it press the button once every X-min that it instead checks if the buff is active onmyself if not cast buff?
<onSkillCast><![CDATA[
player:updateBuffs("player")
if player.Class1 == CLASS_ROGUE then
if not player:Buff("Enhanced Armor") then
player:cast(KNIGHT_ENHANCED_ARMOR);
end
else
if not player:Buff("Lion's Protection") then
player:cast("ROGUE_LIONS_PROTECTION");
end
end
]]></onSkillCast>
is this how it is? i pretty much look all over forums and copy paste stuff together but I get an errow from "Buff returns a nill value" and "hasBuff returns a nill value"
Re: help with bot running wild
Getting the sigils is part of the loot function so if it is looting it should also get the sigils. If it's working for everyone else it should be working for you, unless you're running an older version or got a conflict when updating.mayainverse wrote:I have looting on. it loots fine. just never gets the sigils.
Firstly. you should be putting code withing code tags.mayainverse wrote:and I got another question. not sure if i should open a new thread or not but here it goes.
sometimes the bot will fail to use a buff is there anyway instead of having it press the button once every X-min that it instead checks if the buff is active onmyself if not cast buff?
<onSkillCast><![CDATA[
player:updateBuffs("player")
if player.Class1 == CLASS_ROGUE then
if not player:Buff("Enhanced Armor") then
player:cast(KNIGHT_ENHANCED_ARMOR);
end
else
if not player:Buff("Lion's Protection") then
player:cast("ROGUE_LIONS_PROTECTION");
end
end
]]></onSkillCast>
is this how it is? i pretty much look all over forums and copy paste stuff together but I get an errow from "Buff returns a nill value" and "hasBuff returns a nill value"
This line,
Code: Select all
player:Buff("Lion's Protection")
Code: Select all
player.Buff["Lion's Protection"]
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
- Posts: 94
- Joined: Tue Dec 21, 2010 3:12 am
Re: help with bot running wild
tried i still get error i used both "Buff" and "hasBuff" still returns nil
Re: help with bot running wild
It's strange, I don't see your code using hasBuff but i guess that's the function you want to use. Also i think it's supposed to be 'player.Buffs', not 'player.Buff'. Sorry.mayainverse wrote:tried i still get error i used both "Buff" and "hasBuff" still returns nil
Anyway, try this,
Code: Select all
<onSkillCast><![CDATA[
player:updateBuffs("player")
if player.Class1 == CLASS_ROGUE then
if not player:hasBuff("Enhanced Armor") then
player:cast(KNIGHT_ENHANCED_ARMOR);
end
else
if not player:hasBuff("Lion's Protection") then
player:cast("ROGUE_LIONS_PROTECTION");
end
end
]]></onSkillCast>
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
- Posts: 94
- Joined: Tue Dec 21, 2010 3:12 am
Re: help with bot running wild
that was the first one I tried and didnt work. then i tried removing the "has" didnt work. and i tried both with "has" and without has by replacing ":" with "." didnt work always returns nill
Re: help with bot running wild
What exactly is the error when using my example?mayainverse wrote:that was the first one I tried and didnt work. then i tried removing the "has" didnt work. and i tried both with "has" and without has by replacing ":" with "." didnt work always returns nill
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
- Posts: 94
- Joined: Tue Dec 21, 2010 3:12 am
Re: help with bot running wild
xxxxx/player.lua:512: onSkillCast error:
[string "..."]:4 attempt to call method 'hasBuff' (a nil value)
then it brings me back to command line
[string "..."]:4 attempt to call method 'hasBuff' (a nil value)
then it brings me back to command line
-
- Posts: 94
- Joined: Tue Dec 21, 2010 3:12 am
Re: help with bot running wild
trying to run that egg script also and i get a nil value returned also and bot resets as well.
Re: help with bot running wild
I'm guessing you are using an older version of the rombot as line 512 of player.lua, for me, is part of the old commented out harvest function.mayainverse wrote:xxxxx/player.lua:512: onSkillCast error:
[string "..."]:4 attempt to call method 'hasBuff' (a nil value)
then it brings me back to command line
Also that error indicates that hasBuff is not recognized as a valid function, but it is. Have a look in pawn.lua and see if you can find the CPawn:hasBuff function.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
- Posts: 94
- Joined: Tue Dec 21, 2010 3:12 am
Re: help with bot running wild
i dont see how i could be using old version just today i had downloaded from that top thread.
this is what i get
this is what i get
Code: Select all
function CPawn:hasBuff(buff)
if self.Address == player.TargetPtr then
self:updateBuffs("target")
else
self:updateBuffs("player")
end
local bool = (self.Buffs[buff] ~= nil) -- exists or not, true or false
local count = (self.Buffs[buff] or 0) -- Buff count or 0
return bool, count
end
Re: help with bot running wild
If you are just using the download, that is way out of date. The only way i know to have an up-to-date version is to use TortoiseSVN or similar software. If you are not using it I suggest you do.mayainverse wrote:i dont see how i could be using old version just today i had downloaded from that top thread.
I wish the Administrator would remove that download and just require people to use svn. The download just causes problems.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: help with bot running wild
Or just needs to be kept up to date. I haven't been uploading any new packages because of all the new features we've been adding and the patched which have broken some things. Now that things appear to be pretty stable again, I've uploaded a new package.rock5 wrote:If you are just using the download, that is way out of date. The only way i know to have an up-to-date version is to use TortoiseSVN or similar software. If you are not using it I suggest you do.mayainverse wrote:i dont see how i could be using old version just today i had downloaded from that top thread.
I wish the Administrator would remove that download and just require people to use svn. The download just causes problems.
Re: help with bot running wild
I don't know, I still down like it. Isn't there anyway for people who don't want to use svn to just be able to download the files off the svn repository? You can look at these files using a web browser but there's no way to download them. It would save you having to keep that link upto date and avoid problems when it isn't.Administrator wrote:Or just needs to be kept up to date. I haven't been uploading any new packages because of all the new features we've been adding and the patched which have broken some things. Now that things appear to be pretty stable again, I've uploaded a new package.
I suspect maybe I don't know what I'm talking about.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
- Posts: 94
- Joined: Tue Dec 21, 2010 3:12 am
Re: help with bot running wild
well I got svn did clean install and egg script is working like a charm(dam awsome) but this script still doesnt work this time isntead of saying "buff" returns nill its the updatebuff that returns nil.
also bot refusessssss to target ether neutral mobs or mobs that are too low level that the game turns them neutral.
so for example these foxes where like 12 lvls below me they are red but they wont ever agro you if you run in front. bot wont target these. bot does not target any yellow mobs. and will only target mobs that have ability to agro you (will target though even if they are not currently agroed on you iguess its just i f they have the ability)
didnt have this problem before
also bot refusessssss to target ether neutral mobs or mobs that are too low level that the game turns them neutral.
so for example these foxes where like 12 lvls below me they are red but they wont ever agro you if you run in front. bot wont target these. bot does not target any yellow mobs. and will only target mobs that have ability to agro you (will target though even if they are not currently agroed on you iguess its just i f they have the ability)
didnt have this problem before
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 4 guests