[MicroMacro-HELP] mobs with buff

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
wardorPL
Posts: 5
Joined: Wed Nov 21, 2012 1:35 pm

[MicroMacro-HELP] mobs with buff

#1 Post by wardorPL » Wed Nov 21, 2012 1:45 pm

I have got a problem because when i try to set a waypoints to manualy exp farm, it work but attack only mobs without buffs [dont know how to translate them] that gives from them more xp. Tried many things and it still dont work pls help me.
Sorry for my bad english

Mer-Ki-Vah
Posts: 35
Joined: Sat Feb 04, 2012 6:53 am

Re: [MicroMacro-HELP] mobs with buff

#2 Post by Mer-Ki-Vah » Fri Nov 23, 2012 12:21 pm

U need use the ntBuff addon ... or

function getupBuff(_buffName)
local buffName=_buffName;
if not player:hasBuff(buffName) then
RoMScript("CastSpellByName(\'"..buffName.."\')");yrest(800); --player:cast(buffName);
end;
end
.
.
. if player.Class1 == CLASS_SCOUT then
getupBuff("Frost Arrow")
elseif player.Class1 == CLASS_MAGE then -- and player.Class2 == CLASS_PRIEST
getupBuff("Magic Barrier")
getupBuff("Essence of Magic")
getupBuff("Fire Ward")
getupBuff("Blessed Spring Water")
elseif player.Class1 == CLASS_KNIGHT then
getupBuff("Enhanced Armor")
getupBuff("Holy Seal")
elseif player.Class1 == CLASS_CHAMPION then
getupBuff("Forge")
elseif player.Class1 == CLASS_ROGUE then
elseif player.Class1 == CLASS_PRIEST then
elseif player.Class1 == CLASS_WARRIOR then
elseif player.Class1 == CLASS_WARLOCK then
end;

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: [MicroMacro-HELP] mobs with buff

#3 Post by lisa » Fri Nov 23, 2012 9:30 pm

The bot will use what skills you set in the profile.

If you want other "buffs" like from potions then you just add in code to the profiles onleavecombat.
for example

Code: Select all

	<onLeaveCombat><![CDATA[
	if not player:hasBuff(506687) then -- housemaid luck
		inventory:useItem(207203)
	end
	if not player:hasBuff(503479) then -- pet perfume
		inventory:useItem(207582)
	end
	if not player:hasBuff(501647) then --potent luck
		inventory:useItem(202322)
	end
	]]></onLeaveCombat>
You need the ID for the item that gives the buff and you need the ID of the buff itself.

an example of profile skills would look like this

Priest/Scout

Code: Select all

	<skills_priest>	
		<skill name="PRIEST_SOUL_SOURCE"    	hotkey="MACRO" priority="110" inbattle="true" hpper="30" />
		<skill name="PRIEST_URGENT_HEAL"    	hotkey="MACRO" priority="100" hpper="85"  />
		<skill name="PRIEST_REGENERATE"     	hotkey="MACRO" priority="90"  hpper="60" />
		<skill name="PRIEST_ICE_BLADE"     		hotkey="MACRO" priority="80" />	
		<skill name="PRIEST_GRACE_OF_LIFE" 		hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" />
		<skill name="PRIEST_AMPLIFIED_ATTACK" 	hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" />
		<skill name="PRIEST_HOLY_AURA"      	hotkey="MACRO" priority="100" inbattle="true" hpper="24" />
		<skill name="PRIEST_MAGIC_BARRIER" 		hotkey="MACRO" priority="20" rebuffcut="60" inbattle="false" />
		<skill name="PRIEST_HEALING_SALVE"     	hotkey="MACRO" priority="95" />
		<skill name="PRIEST_EMBRACE_OF_THE_WATER_SPIRIT"     	hotkey="MACRO" priority="95" inbattle="false" />
	</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

wardorPL
Posts: 5
Joined: Wed Nov 21, 2012 1:35 pm

Re: [MicroMacro-HELP] mobs with buff

#4 Post by wardorPL » Sun Dec 02, 2012 4:56 am

i dont mean mine buff, i know how to set using buffs.I have problem when mobs from new zones have buff he dont attack them so if u know how help say

Mer-Ki-Vah
Posts: 35
Joined: Sat Feb 04, 2012 6:53 am

Re: [MicroMacro-HELP] mobs with buff

#5 Post by Mer-Ki-Vah » Mon Dec 03, 2012 9:47 am

I think the point is not the buff. They are fighting, an u need setup in profil:

changeProfileOption("ANTI_KS",false);

Try

wardorPL
Posts: 5
Joined: Wed Nov 21, 2012 1:35 pm

Re: [MicroMacro-HELP] mobs with buff

#6 Post by wardorPL » Tue Dec 04, 2012 1:33 am

nope it isn't it. bot target this mobs without buff ,but when they have it dont want target. It's like bot dont understand this buff so dont target. and They are yellow[neutral] mobs so they cant fighting no1 is here

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: [MicroMacro-HELP] mobs with buff

#7 Post by lisa » Tue Dec 04, 2012 4:06 am

wardorPL wrote:nope it isn't it. bot target this mobs without buff ,but when they have it dont want target. It's like bot dont understand this buff so dont target. and They are yellow[neutral] mobs so they cant fighting no1 is here
They meant the mob is attacking another mob which means they are in combat and the bot is designed to not kill things that are already in combat.
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

wardorPL
Posts: 5
Joined: Wed Nov 21, 2012 1:35 pm

Re: [MicroMacro-HELP] mobs with buff

#8 Post by wardorPL » Tue Dec 04, 2012 6:30 am

it isnt it. the mobs staying in 1 place and dont attack. I put here SS so you will see which buff i mean[if u need i can later add it in english] so help if u can
ht tp://img255.imageshack.us/img255/5312/problemr.png
[couldn't add here as image because "My post has been ignored sorry"]

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: [MicroMacro-HELP] mobs with buff

#9 Post by rock5 » Tue Dec 04, 2012 7:33 am

Maybe with that buff it has more hp so the Elite Factor gets triggered. So it doesn't attack it because it has too much hp. There are 2 ways to fix it. One is to increase the Elite Factor. The default elite factor is 5. So any mobs that have 5 x your hp or more will not be attacked. You can increase it to a big value so it attacks. You change it by adding

Code: Select all

<option name="AUTO_ELITE_FACTOR"	value="50" /> 
to your profile. Or you can set PARTY_INSTANCE to true and it will ignore the elite factor. You do that by adding the following to your profile.

Code: Select all

<option name="PARTY_INSTANCE"		value="true" />
If you already have that line but it looks like this

Code: Select all

<!-- <option name="PARTY_INSTANCE"		value="true" /> -->
then change it so it look like the line above.
  • 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

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: [MicroMacro-HELP] mobs with buff

#10 Post by lisa » Tue Dec 04, 2012 7:30 pm

Now that I know which mobs it is I actually went to take a look, I was getting error in memroy reading errors, for the hp offset.

Code: Select all

Error in memory reading: memoryreadint(proc,0x18)
Error in memory reading: memoryreadint(proc,0x2CC)
Error in memory reading: memoryreadint(proc,0x2D4)
turn on debugging and see if you get the same

example

Code: Select all

rom/bot path:2324 debug

--=== Added ===--

even with the error reads mine attacked them fine, I had a name in my profile mobs option lol

Code: Select all

Stopping waypoint: Target acquired before moving.
Engaging enemy [Lechif Imperial Guard] in combat.
Use MACRO: SCOUT_SHOOT         =>   Lechif Imperial Guard (233643/233643)
Use MACRO: SCOUT_COMBO_SHOT    =>   Lechif Imperial Guard (195727/233643)
Use MACRO: SCOUT_AUTOSHOT      =>   * Failed to cast *
Use MACRO: SCOUT_HIDDEN_PERIL  =>   Lechif Imperial Guard (136702/233643)
Use MACRO: SCOUT_THORN_ARROW   =>   Lechif Imperial Guard (99052/233643)
Use MACRO: SCOUT_SHOOT         =>   Lechif Imperial Guard (57241/233643)
Use MACRO: SCOUT_COMBO_SHOT    =>   Lechif Imperial Guard (57241/233643)
Use MACRO: SCOUT_AUTOSHOT      =>   * Failed to cast *
Fight finished. Killed 8 Lechif Imperial Guard. (fight #17 / runtime 4 minutes)
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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: [MicroMacro-HELP] mobs with buff

#11 Post by rock5 » Wed Dec 05, 2012 1:17 am

lisa wrote:Now that I know which mobs it is I actually went to take a look, I was getting error in memroy reading errors, for the hp offset.

Code: Select all

Error in memory reading: memoryreadint(proc,0x18)
Error in memory reading: memoryreadint(proc,0x2CC)
Error in memory reading: memoryreadint(proc,0x2D4)
I notice that it is only showing the offset which means the address was 0. So the problem is the address was 0. Not that I know why.
lisa wrote:even with the error reads mine attacked them fine
I think the op was saying it doesn't attack in a waypoint so it might have been attacking with rbassist. What were you using?
  • 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

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: [MicroMacro-HELP] mobs with buff

#12 Post by lisa » Wed Dec 05, 2012 1:24 am

I just positioned in the middle of a few of them and did

Code: Select all

rom/bot path:wander
some had the buff, some didn't, bot killed them all
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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: [MicroMacro-HELP] mobs with buff

#13 Post by rock5 » Wed Dec 05, 2012 9:43 am

I was near by so I had a look. I don't think it's the elite factor anymore. There are mobs there with no buff and the same hp.
  • 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

wardorPL
Posts: 5
Joined: Wed Nov 21, 2012 1:35 pm

Re: [MicroMacro-HELP] mobs with buff

#14 Post by wardorPL » Sat Dec 08, 2012 7:51 am

okay its work. i changed in this profile as u said rock5 and its work so thank you. Topic can be closed

abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

Re: [MicroMacro-HELP] mobs with buff

#15 Post by abron1 » Thu Jan 31, 2013 8:30 pm

I tried to use this piece of code but it didn't work.

Code: Select all

if player.Class1 == CLASS_SCOUT then -- or if player.Class2 == CLASS_SCOUT then
So i can use this code in my onleave in my profile like this?

Code: Select all

if player.Class1 == CLASS_SCOUT then -- or if player.Class2 == CLASS_SCOUT then
   	if 999 > inventory:itemTotalCount("Runic Thorn") then
	inventory:useItem(212236) -- Use Rune Catapult 
	yrest(1000)
	RoMScript("UseEquipmentItem(10);")
	yrest(1000)
	inventory:useItem(213403) -- Use Shamrock Feather Bow
	yrest(1000)
	inventory:useItem(212185) -- Use Arrows
	end
what i want it to do is if i have scout first or second class it will make arrows if not then it won't.

just need someone to show me how to code it i tried to use the example up a few post. or do i need to do

Code: Select all

if player.Class1 == CLASS_SCOUT  then
   	if 999 > inventory:itemTotalCount("Runic Thorn") then
	inventory:useItem(212236) -- Use Rune Catapult 
	yrest(1000)
	RoMScript("UseEquipmentItem(10);")
	yrest(1000)
	inventory:useItem(213403) -- Use Shamrock Feather Bow
	yrest(1000)
	inventory:useItem(212185) -- Use Arrows
	end

Code: Select all

if player.Class2 == CLASS_SCOUT then
   	if 999 > inventory:itemTotalCount("Runic Thorn") then
	inventory:useItem(212236) -- Use Rune Catapult 
	yrest(1000)
	RoMScript("UseEquipmentItem(10);")
	yrest(1000)
	inventory:useItem(213403) -- Use Shamrock Feather Bow
	yrest(1000)
	inventory:useItem(212185) -- Use Arrows
	end
in the one leave part of the profile? i tried both ways and got

Code: Select all

5:34pm - ...ers/User/Desktop/micromacro/scripts/rom/settings.lua:653: Failed to
compile and run Lua code for onLeaveCombat in character profile.]

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: [MicroMacro-HELP] mobs with buff

#16 Post by lisa » Thu Jan 31, 2013 9:56 pm

Code: Select all

if player.Class1 == CLASS_SCOUT then -- or if player.Class2 == CLASS_SCOUT then
you have part of the code commented out with --

Code: Select all

if player.Class1 == CLASS_SCOUT or player.Class2 == CLASS_SCOUT then
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

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: [MicroMacro-HELP] mobs with buff

#17 Post by rock5 » Fri Feb 01, 2013 2:11 am

Hey, this is that post I couldn't find and thought was deleted! I did a search for Lechif, Toron, Bridge, Guard. I came up with nothing. Looking up I see Lechif Guard but only in

Code: Select all

 tags. So it doesn't include code in searches. Grrr. Well if I search for it in the future I'll find it because of this post. :)
  • 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

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: [MicroMacro-HELP] mobs with buff

#18 Post by lisa » Fri Feb 01, 2013 2:39 am

yeah forum searches don't search inside code tags, I always found that a little annoying, that's why it is important for titles to atleast have some indication of what is being discussed in the topic =)
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

noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: [MicroMacro-HELP] mobs with buff

#19 Post by noobbotter » Tue Feb 05, 2013 11:24 am

So, did we figure out what the issue was with the bot not attacking certain mobs? I was seeing the same thing in the new area. I was exp farming some of the Lvl 76/77 Reindeer (yellow/neutral mobs) and some of them would never get targeted. I don't think it's the buffs that the mobs have (glowing red, blue, or orange spheres around their necks) because it would sometimes attack them and sometimes not.

Was the solution the Elite factor? Or should I use

Code: Select all

<option name="PARTY_INSTANCE"      value="true" />
?

What all does the above affect? Just tells the bot to attack everything, regardless of level/hp/eliteness? Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest