Page 1 of 1
Changing Profile Options - Mobs
Posted: Mon Oct 22, 2012 12:08 am
by scithen
Hi everyone. I recently stumbled across the bot, and have been reading everything I can about waypoints, scripting, etc to be able to set up my own waypoints. However, I'm a complete noob when it comes to scripting and whatnot, and I tend to learn best by example, rather than working my way through it on my own. I can do some of the basic stuff already, though I haven't toyed with merchants and whatnot yet.. I lag too badly in most settlements/cities for that.
With that said, is there a way to change my profile's mob settings at the start of a waypoint? I'm terribly forgetful, and sometimes it takes a bit to realize that I forgot to change/remove the mob names when I switched farming waypoints. Just so we're clear, I mean these:
Code: Select all
<mobs>
<!-- names of mobs we want to attack -->
<!-- if no names defined we will attack all mobs -->
<mob name="Colorful Ostrich" />
<mob name="Young Ostrich" />
</mobs>
Depending on my wife's work schedule, I usually just use a secondary account (paranoid about my main one being banned..) to farm stuff for daily quests, the guild, and runes to sell in the AH. This bot is completely awesome and I love it - lots of stuff to do around the house, so I just let it do the things I need to do but don't have time for. I'll always prefer manually leveling my chars and whatnot, but the help with farming is nice.
Thanks in advance.

Re: Changing Profile Options - Mobs
Posted: Mon Oct 22, 2012 12:45 am
by abron1
here is a example
Code: Select all
<onLoad>
-- Change Profile Option
changeProfileOption("MAX_TARGET_DIST", 60)
changeProfileOption("HP_LOW_POTION", 80)
RoMScript("MasterVolumeSlider_SetValue(0)")
settings.profile.mobs = {"Crying Ghost","Wailing Soul","Noxious Blood Wraith"}
</onLoad>
the mob one is what your looking for....just changed the names of the mobs to the ones ou want to kill
Re: Changing Profile Options - Mobs
Posted: Mon Oct 22, 2012 1:11 am
by scithen
Since all I want to change is the mobs, do I need all of that? Or can I just put the mobs line into the onLoad section of the profile?
ie:
Code: Select all
<onLoad>
-- Change Profile Option
settings.profile.mobs = {"Crying Ghost","Wailing Soul","Noxious Blood Wraith"}
</onLoad>
Re: Changing Profile Options - Mobs
Posted: Mon Oct 22, 2012 1:20 am
by lisa
If you want to change the profile you can just do more of this
Code: Select all
<mobs>
<!-- names of mobs we want to attack -->
<!-- if no names defined we will attack all mobs -->
<mob name="Colorful Ostrich" />
<mob name="Young Ostrich" />
<mob name="somemobname" />
</mobs>
Generally if you change the mob names it is for a specific waypoint file and you do that code in the onload of the waypoint.
Code: Select all
<onLoad>
-- Change Profile Option
settings.profile.mobs = {"Crying Ghost","Wailing Soul","Noxious Blood Wraith"}
</onLoad>
Re: Changing Profile Options - Mobs
Posted: Mon Oct 22, 2012 1:23 am
by scithen
Oops, yeah, that's what I meant - the waypoint, not the profile. I know I can use a third (or more?) mob lines in the options, but I don't want my warlock running off attacking the Zuridon disciples (or whatever they're called.. exact name eludes me) while I'm farming the ostriches.
Thanks. Still trying to fumble my way through all of this.
Edit: Stuck in obsidian stronghold while my recall's on cooldown, so one more quick question. The onLoad code goes inside the <waypoints> tag?
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
settings.profile.mobs = {"Young Ostrich","Colorful Ostrich",""}
</onLoad>
<!-- # 1 --><waypoint x="5901" z="9736" y="-60"> </waypoint>
...
Re: Changing Profile Options - Mobs
Posted: Mon Oct 22, 2012 1:29 am
by lisa
There is a userfunction which I found to make life easier for mob names.
http://www.solarstrike.net/phpBB3/viewt ... =27&t=3626
scithen wrote:but I don't want my warlock running off attacking the Zuridon disciples
Add the mob you don't want to attack to friend list, easier than adding multiple things to mob list.
If something is in the friend list the bot won't attack it, bot will just defend itself from it.
Re: Changing Profile Options - Mobs
Posted: Mon Oct 22, 2012 1:32 am
by scithen
lisa wrote:
Add the mob you don't want to attack to friend list, easier than adding multiple things to mob list.
If something is in the friend list the bot won't attack it, bot will just defend itself from it.
I'd considered that, but it goes back to my being forgetful and all. I figured just changing the mobs
at the beginning of the waypoint would probably be easiest, though if I'm mistaken I'm certainly
open to suggestions.
Re: Changing Profile Options - Mobs
Posted: Mon Oct 22, 2012 1:38 am
by lisa
scithen wrote:lisa wrote:
Add the mob you don't want to attack to friend list, easier than adding multiple things to mob list.
If something is in the friend list the bot won't attack it, bot will just defend itself from it.
I'd considered that, but it goes back to my being forgetful and all. I figured just changing the mobs
at the beginning of the waypoint would probably be easiest, though if I'm mistaken I'm certainly
open to suggestions.
Yup changing them in the WP is the way to go.
If you chain WP together you also need to remember to change it again though, so if yu do a loadpaths() in the new WP you need to remember that there might be mob names already and if so then it will still only attack those mobs. With adding friend list you are just adding an ignore list as such and it still will attack anything else.
Re: Changing Profile Options - Mobs
Posted: Mon Oct 22, 2012 1:40 am
by scithen
Alright. Thanks again.

I don't do a lot of chaining WPs right now, though I'll certainly keep that in mind.
Re: Changing Profile Options - Mobs
Posted: Mon Oct 22, 2012 2:18 am
by scithen
Well, the settings.profile thing wasn't working for some reason, but that userfuction did the
trick. Just had to stop typoing the mobs' names, lol.
On a side note, every time I run the bot, I get some ID not found messages.. I can only
assume they're related to userfunctions or something, as they didn't start showing up
until I added some new ones and shifted some waypoints into different folders. Short of
taking everything apart and adding it in one piece at a time, is there a way to tell what
I'm being yelled at for?
Code: Select all
Id 556783 not found
Id 538088 not found
Id 555492 not found
Id 538093 not found
Id 557613 not found
Id 538174 not found
Id 559745 not found
Id 538088 not found
Id 559490 not found
Id 538093 not found
I've checked everything I can think of, but I'm not really finding anything.
Edit: Just to clarify, the bot still runs without a hitch, I'm just not sure what the IDs
not found is about.
Re: Changing Profile Options - Mobs
Posted: Mon Oct 22, 2012 2:31 am
by lisa
That is from memorytable.lua, probably just a coincidence it is happening now that you have some userfunctions, ID's will probably be for some items you have now.
Rock did a lot of work on that a while back, maybe he can think of why the ID not found print.
Re: Changing Profile Options - Mobs
Posted: Mon Oct 22, 2012 2:36 am
by scithen
Alright.. I guess I'll just ignore them for now, since they don't seem to be hurting
anything. Thanks again, and sorry for being such a nub. >.<
Re: Changing Profile Options - Mobs
Posted: Mon Oct 22, 2012 3:21 am
by rock5
I figured out what they were just recently in another post. It's when it tries to get stats from certain items that don't have stats. Basically the bot reads a number from memory, adds 500000 which results in the id of the stat. Certain items that don't have stats have numbers at that offset that isn't for a stat. So when it adds 500000 to it it ends up with an invalid id.
Which reminds me, I need to add a fix for this. Probably only have it look for stats on items with valid item types, eg. weapons, armor, maybe mana stones.