Buffing myself
Buffing myself
Hey all,
So, I'm trying to put into my profile.xml all the buffs I need before engaging in combat and I have a micro key at 8 of all the buffs I need that I set in the interface settings in the game. What and where do I have to type in the profile.xml to automatically press 8 before engaging in combat? and how to make the character to check whether he has the buffs or not?
Thanks so much in advance
So, I'm trying to put into my profile.xml all the buffs I need before engaging in combat and I have a micro key at 8 of all the buffs I need that I set in the interface settings in the game. What and where do I have to type in the profile.xml to automatically press 8 before engaging in combat? and how to make the character to check whether he has the buffs or not?
Thanks so much in advance
Re: Buffing myself
The bot is set up to automatically check for buffs, all you need to do is add the skills into your profile.
If you have skills not already included in the skills.xml then post the skills with as much detail as you can and it can be added in.
If you have skills not already included in the skills.xml then post the skills with as much detail as you can and it can be added in.
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
Re: Buffing myself
I did it like this, but it doesn't work. Is this the correct way for buffs?
<skills_priest>
<skill name="PRIEST_SOUL_SOURCE" modifier="" hotkey="VK_4" priority="110" inbattle="true" hpper="15" />
<skill name="PRIEST_HOLY_AURA" modifier="" hotkey="VK_7" priority="100" inbattle="true" hpper="24" />
<skill name="PRIEST_URGENT_HEAL" modifier="" hotkey="VK_2" priority="100" hpper="50" />
<skill name="PRIEST_REGENERATE" modifier="" hotkey="VK_6" priority="90" hpper="85" />
<skill name="PRIEST_RISING_TIDE" modifier="" hotkey="VK_3" priority="80" />
<skill name="MAGE_FIREBALL" modifier="" hotkey="VK_8" priority="70" />
<skill name="PRIEST_WAVE_ARMOR" modifier="" hotkey="VK_5" priority="40" inbattle="true" />
<skill name="PRIEST_GRACE_OF_LIFE" modifier="" hotkey="VK_9" priority="20" />
<!--skill name="PRIEST_SOUL_BOND" hotkey="VK_T" priority="30" /> -->
<!--skill name="PRIEST_MAGIC_BARRIER" hotkey="VK_F" priority="20" rebuffcut="60" inbattle="false" /> -->
<skills_priest>
<skill name="PRIEST_SOUL_SOURCE" modifier="" hotkey="VK_4" priority="110" inbattle="true" hpper="15" />
<skill name="PRIEST_HOLY_AURA" modifier="" hotkey="VK_7" priority="100" inbattle="true" hpper="24" />
<skill name="PRIEST_URGENT_HEAL" modifier="" hotkey="VK_2" priority="100" hpper="50" />
<skill name="PRIEST_REGENERATE" modifier="" hotkey="VK_6" priority="90" hpper="85" />
<skill name="PRIEST_RISING_TIDE" modifier="" hotkey="VK_3" priority="80" />
<skill name="MAGE_FIREBALL" modifier="" hotkey="VK_8" priority="70" />
<skill name="PRIEST_WAVE_ARMOR" modifier="" hotkey="VK_5" priority="40" inbattle="true" />
<skill name="PRIEST_GRACE_OF_LIFE" modifier="" hotkey="VK_9" priority="20" />
<!--skill name="PRIEST_SOUL_BOND" hotkey="VK_T" priority="30" /> -->
<!--skill name="PRIEST_MAGIC_BARRIER" hotkey="VK_F" priority="20" rebuffcut="60" inbattle="false" /> -->
- Questionmark
- Posts: 31
- Joined: Mon Apr 11, 2011 3:06 am
Re: Buffing myself
Try this. Looking at your code I understand you don't want to execute Soul Bond en Magic Barrier? Just put "--" infront of code if you want the bot to ignore it.
Code: Select all
<skills_priest>
<skill name="PRIEST_SOUL_SOURCE" modifier="" hotkey="VK_4" priority="110" inbattle="true" hpper="15" />
<skill name="PRIEST_HOLY_AURA" modifier="" hotkey="VK_7" priority="100" inbattle="true" hpper="24" />
<skill name="PRIEST_URGENT_HEAL" modifier="" hotkey="VK_2" priority="100" hpper="50" />
<skill name="PRIEST_REGENERATE" modifier="" hotkey="VK_6" priority="90" hpper="85" />
<skill name="PRIEST_RISING_TIDE" modifier="" hotkey="VK_3" priority="80" />
<skill name="MAGE_FIREBALL" modifier="" hotkey="VK_8" priority="70" />
<skill name="PRIEST_WAVE_ARMOR" modifier="" hotkey="VK_5" priority="40" inbattle="true" />
<skill name="PRIEST_GRACE_OF_LIFE" modifier="" hotkey="VK_9" priority="20" />
-- <skill name="PRIEST_SOUL_BOND" hotkey="VK_T" priority="30" />
-- <skill name="PRIEST_MAGIC_BARRIER" hotkey="VK_F" priority="20" rebuffcut="60" inbattle="false" />
</skills_priest>
Re: Buffing myself
Oh that's what that means.
Last edited by adonisz on Sun May 08, 2011 4:22 pm, edited 1 time in total.
- Questionmark
- Posts: 31
- Joined: Mon Apr 11, 2011 3:06 am
Re: Buffing myself
You can do that using the option for talking to NPC's (numpad 5), followed by the choice option (numpad 6). Check the waypoint subforum for examples.
Re: Buffing myself
Oh I just figured out what I'm having problem with.
I have this micro button at 9 that has all the buffs I need before engaging in fight and I'm trying to put it into my profile.xml, but what would be the skill name? Would it be called macro or micro?
I have this micro button at 9 that has all the buffs I need before engaging in fight and I'm trying to put it into my profile.xml, but what would be the skill name? Would it be called macro or micro?
Re: Buffing myself
For xml files comments are done like this
So to comment out a skill it would look like this
I think this would cause an error
Of course where there is lua code like in the "on events" you can use '--' to comment.
Code: Select all
<!-- Comment -->
Code: Select all
<!--skill name="PRIEST_SOUL_BOND" hotkey="VK_T" priority="30" /-->
I think this would cause an error
Code: Select all
-- <skill name="PRIEST_SOUL_BOND" hotkey="VK_T" priority="30" />
If you have the buffs added to your profile properly then you wouldn't use your custom macro. The bot can't control the buffs if you are applying them with a custom macro.adonisz wrote:Oh I just figured out what I'm having problem with.
I have this micro button at 9 that has all the buffs I need before engaging in fight and I'm trying to put it into my profile.xml, but what would be the skill name? Would it be called macro or micro?
- 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
Re: Buffing myself
This is my priests profile skills
It isn't for low lvles, if you are a low level then using the wave armor will run you out of mana quickly.
Code: Select all
<skills_priest>
<skill name="PRIEST_SOUL_SOURCE" modifier="" hotkey="VK_4" priority="110" inbattle="true" hpper="15" />
<skill name="PRIEST_HOLY_AURA" modifier="" hotkey="VK_V" priority="100" inbattle="true" hpper="24" />
<skill name="PRIEST_URGENT_HEAL" modifier="" hotkey="VK_J" priority="100" hpper="50" />
<skill name="PRIEST_HEAL" modifier="" hotkey="VK_3" priority="100" hpper="20" />
<skill name="PRIEST_GROUP_HEAL" modifier="" hotkey="VK_5" priority="100" hpper="30" />
<skill name="PRIEST_REGENERATE" modifier="" hotkey="VK_2" priority="90" hpper="80" />
<skill name="PRIEST_WAVE_ARMOR" modifier="" hotkey="VK_7" priority="40" inbattle="true" />
<skill name="PRIEST_MAGIC_BARRIER" hotkey="VK_9" priority="20" rebuffcut="60" inbattle="false" />
<skill name="PRIEST_AMPLIFIED_ATTACK" hotkey="VK_6" priority="20" rebuffcut="60" inbattle="false" />
<skill name="PRIEST_GRACE_OF_LIFE" hotkey="VK_8" priority="20" rebuffcut="60" inbattle="false" />
<!--skill name="PRIEST_SOUL_BOND" hotkey="VK_T" priority="30" /> -->
</skills_priest>
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
Re: Buffing myself
oh ok thx guys, i guess i have to do it manually then.
it works when I do it like that, I just have to put in all the different keys for different skills then.
Thanks for all your help
it works when I do it like that, I just have to put in all the different keys for different skills then.
Thanks for all your help

Re: Buffing myself
Having a macro for self buffing is just very inificient is all, you arn't checking if you have the buff or not and I assume you used things like
which keeps trying to use the skills regardless of what else is actually happening to your character at the time and therefore it might not get all the buffs if you are being attacked and try to use attack skills. Using the bot buff system works and it works very well =)
Code: Select all
/Script CastSpellByName("Grace of Life");
/wait 2
/Script CastSpellByName("Amplified Attack");
/wait 1
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
Re: Buffing myself
You can also use hotkey="MACRO" then you don't need to set up the hotkeys. It uses the skill names in skills_local.xml.adonisz wrote: I just have to put in all the different keys for different skills then.
- 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
Re: Buffing myself
yay "macro" did its job
. Thanks for all the help guys I really appreciate.
I might need to ask a lot more since I'm going to start writing scripts for instances, from FA to clops
. Thank you again 

I might need to ask a lot more since I'm going to start writing scripts for instances, from FA to clops


Re: Buffing myself
Sorry guys I just had a problem.
I didn't have the enthusiasm potion for speed and I ran the bot when my profile was like this
<onLeaveCombat><![CDATA[
-- Additional Lua code to execute after killing an enemy
useGoodie("mdmg2");
useGoodie("casting");
useGoodie("luck");
useGoodie("speed");
]]></onLeaveCombat>
The bot had this error: ...scripts/rom/classes/player.lua:1254:Error in your profile: onleaveCombat error: ...erek/Desktop/micromacro/scripts/Rom/classes/pawn.lua:537: bad argument #1 to 'gmatch' (string expected, got nil)
Is this because I put speed in my profile when I didn't have the potion? Isnt it supposed to skip the potion that I don't have?
Could you tell me what I'm doing wrong? Thanks in advance
I didn't have the enthusiasm potion for speed and I ran the bot when my profile was like this
<onLeaveCombat><![CDATA[
-- Additional Lua code to execute after killing an enemy
useGoodie("mdmg2");
useGoodie("casting");
useGoodie("luck");
useGoodie("speed");
]]></onLeaveCombat>
The bot had this error: ...scripts/rom/classes/player.lua:1254:Error in your profile: onleaveCombat error: ...erek/Desktop/micromacro/scripts/Rom/classes/pawn.lua:537: bad argument #1 to 'gmatch' (string expected, got nil)
Is this because I put speed in my profile when I didn't have the potion? Isnt it supposed to skip the potion that I don't have?
Could you tell me what I'm doing wrong? Thanks in advance
Re: Buffing myself
Have a read of the userfunctions actual topic
http://www.solarstrike.net/phpBB3/viewt ... =27&t=2406
http://www.solarstrike.net/phpBB3/viewt ... =27&t=2406
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
Re: Buffing myself
Darn.... I think I am very slow in learning things?
I read what lisa posted like 5 times and I still cannot find a solution to my problem... The post only says that there might be a problem with the script, but I have no idea.. My food from my housemaid works great, but when I put in the potions from housemaids, it gives me the error. Is there a way to fix this? Sorry I'm a really slow learner...
I read what lisa posted like 5 times and I still cannot find a solution to my problem... The post only says that there might be a problem with the script, but I have no idea.. My food from my housemaid works great, but when I put in the potions from housemaids, it gives me the error. Is there a way to fix this? Sorry I'm a really slow learner...

Re: Buffing myself
What I meant was to post your question about the userfunction on the topic created for the userfunction, you will get responses from the person who actually created it or someone who uses it, I personally haven't used it so in order to help I would need to go through all of the code and learn what makes it tick in order to troubleshoot your problem.adonisz wrote:Darn.... I think I am very slow in learning things?
I read what lisa posted like 5 times and I still cannot find a solution to my problem... The post only says that there might be a problem with the script, but I have no idea.. My food from my housemaid works great, but when I put in the potions from housemaids, it gives me the error. Is there a way to fix this? Sorry I'm a really slow learner...
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
Re: Buffing myself
If you don't have potion it should skip it cause there is check for it. I think gmatch error is only caused by wrong buff id in code but i think i haven't got errors with speed potions. If you are using latest useGoodie userfunction can you try 1 line at time to see what line really gives that error? Then i could check new id for it.adonisz wrote:Sorry guys I just had a problem.
I didn't have the enthusiasm potion for speed and I ran the bot when my profile was like this
<onLeaveCombat><![CDATA[
-- Additional Lua code to execute after killing an enemy
useGoodie("mdmg2");
useGoodie("casting");
useGoodie("luck");
useGoodie("speed");
]]></onLeaveCombat>
The bot had this error: ...scripts/rom/classes/player.lua:1254:Error in your profile: onleaveCombat error: ...erek/Desktop/micromacro/scripts/Rom/classes/pawn.lua:537: bad argument #1 to 'gmatch' (string expected, got nil)
Is this because I put speed in my profile when I didn't have the potion? Isnt it supposed to skip the potion that I don't have?
Could you tell me what I'm doing wrong? Thanks in advance
Re: Buffing myself
I tried it and it was bundled enthusiasm and clear thought. What should I fix?
Re: Buffing myself
Well on userfunction there is itemTable and it contains info about those items.
GetIdName() function gets buff names from client with ID. Then those are wrong. You could search those with itempreview addon or try script below when you have that speed and casting buff on. This will be written in game chat. It will print id's for buffs. If those are different that on userfuntion then it will give that gmatch error.
I am now at work so will test that later when i get home.
Code: Select all
speed = {ID = 207200, buffName = GetIdName(506684), castTime = 0},
casting = {ID = 207202, buffName = GetIdName(506686), castTime = 0}, -- Clear Thought
Code: Select all
/script i=1 while UnitBuff("player",i) ~= nil do nn,__,__,ii = UnitBuff("player",i) SendSystemChat(nn..", "..ii) i = i+1 end
Who is online
Users browsing this forum: No registered users and 33 guests