Page 1 of 1
Auto Equip
Posted: Mon Oct 19, 2009 6:37 am
by phanisher
Hi,
First I would like to express my gratitude to the devs of this bot. I truly appreciate the value and time put in to develop this bot.
Currently, I am confused on how to set up auto equip for my bots. I am trying to bot alts to generate arcane charges. As such, I have made some gears which I would like the bot to wear every level for extra damage and faster leveling.
I have read the Wiki but still left confused on where to place the functions (Do I change the functions or place them into my profile?) so that my bot would automatically wear the eqs per level. Also, if I have a +6 gear, would it require me to write the whole name, e.g. Superior Robe +6. Does it require me to put the eqs at specific slots on my inventory?
Your help is much needed and thanks in advance.
Re: Auto Equip
Posted: Mon Oct 19, 2009 6:45 am
by d003232
phanisher wrote:Currently, I am confused on how to set up auto equip for my bots. I am trying to bot alts to generate arcane charges. As such, I have made some gears which I would like the bot to wear every level for extra damage and faster leveling.
I have read the Wiki but still left confused on where to place the functions (Do I change the functions or place them into my profile?) so that my bot would automatically wear the eqs per level. Also, if I have a +6 gear, would it require me to write the whole name, e.g. Superior Robe +6. Does it require me to put the eqs at specific slots on my inventory?
There is a autoequipment function for the standard leveling from 1-10 for the giftback content. That's special coded in the function 'openGiftbags1To10()'. The function is called in the demo profile 'l1-10.xml'. That function use the file '/database/giftbags.xml' to decide what to equipt at which level. You could try to modifie/add that file.
At begin I also try to equipt better stuff. I send it to my characters and get it a level 5 at the mailbox. But finaly I decide for me that it don't matter to run a little longer. Becaus I can't automaticly take that stuff out of the mailbox it need's more time to watch for the break at the mailbox than just to run with the standard equipment.
Re: Auto Equip
Posted: Mon Oct 19, 2009 7:08 am
by phanisher
Thank you for your quick response.
My plan was to make a +6 level 1 wand and a +6 level 5 staff and some eqs which require level 1 or no pre-reqs. As such I want to ride to logar at level 2 (manual), collect the stuff and then start killing to level 10. On top of that, I would like to know if I can switch the weapon at level 5 for faster killing?
Thanks in advance.
Re: Auto Equip
Posted: Mon Oct 19, 2009 7:18 am
by d003232
phanisher wrote:Thank you for your quick response.
My plan was to make a +6 level 1 wand and a +6 level 5 staff and some eqs which require level 1 or no pre-reqs. As such I want to ride to logar at level 2 (manual), collect the stuff and then start killing to level 10. On top of that, I would like to know if I can switch the weapon at level 5 for faster killing?
Thanks in advance.
I wouldn't take lvl 1 stuff. After 10 (?) kills yor are allready lvl 3. And I wouldn't do a extra ride tro logar. Needs to much time. You could go with lvl 4 or 5 to logar. The demo files start at lvl 4 going to logar and on the way you get level 5.
As I said, you could insert the item-id into the table or you could 'use' the item manual into your profile or waypoint file to equipt it..
Re: Auto Equip
Posted: Mon Oct 19, 2009 7:34 am
by phanisher
Hi,
I am using the dome files to level 10 atm and its awesome, thanks. I have seen that code on Wiki, however, where should I place the code under?
Thanks again.
Re: Auto Equip
Posted: Mon Oct 19, 2009 7:44 am
by d003232
phanisher wrote:Hi,
I am using the dome files to level 10 atm and its awesome, thanks. I have seen that code on Wiki, however, where should I place the code under?
Thanks again.
You could 'use' the item into your profile or waypoint file to equipt it. Depending from what's better for you need.
Re: Auto Equip
Posted: Mon Oct 19, 2009 7:48 am
by phanisher
Thanks alot d00. I will try that soon.
My last question (sorry about this, new at it), How do I make my mage cast Fireball only at 20% of the targets HP? I have looked all over the wiki but I couldnt find any information at casting a spell at specific HP at desired targets HP (like a finisher).
Regards.
Re: Auto Equip
Posted: Mon Oct 19, 2009 7:53 am
by d003232
phanisher wrote:Thanks alot d00. I will try that soon.
My last question (sorry about this, new at it), How do I make my mage cast Fireball only at 20% of the targets HP? I have looked all over the wiki but I couldnt find any information at casting a spell at specific HP at desired targets HP (like a finisher).
Regards.
You are right. There is no skill option to do that in the moment. But you could to that in the <onCast> event. Set the skill to autouse=false:
Code: Select all
<skill name="MAGE_FIREBALL" hotkey="VK_R" autouse="false" />
and in the event:
Code: Select all
<onSkillCast>
local target = player:getTarget();
if( 20 > target.HP/target.MaxHP*100 ) then
player:cast("MAGE_FIREBALL");
end;
</onSkillCast>
Re: Auto Equip
Posted: Mon Oct 19, 2009 9:06 am
by d003232
With SVN 367 there are two new skill options:
Code: Select all
targethp Targets HP in healthpoints has to be below this level to use the skill.
targethpper Targets HP in percentage has to be below this level to use the skill.
You can just add that option to your skill into your profile e.g.
Code: Select all
<skill name="MAGE_FIREBALL" hotkey="VK_3" targethp="500" />
Re: Auto Equip
Posted: Tue Oct 20, 2009 12:38 am
by phanisher
I had tried this but the FB didnt really work as intended for low levels as they keep spamming flame to kill the mob.
Having said that, I will try it on a different on a higher level char to see what it can do. Thanks again D00
Re: Auto Equip
Posted: Tue Oct 20, 2009 12:57 am
by d003232
phanisher wrote:I had tried this but the FB didnt really work as intended for low levels as they keep spamming flame to kill the mob.
I suppose you used the option 'targethp'? There was a bug. It's corrected in SVN 367. Hope it will work now.