Page 1 of 1

[MicroMacro-HELP] mobs with buff

Posted: Wed Nov 21, 2012 1:45 pm
by wardorPL
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

Re: [MicroMacro-HELP] mobs with buff

Posted: Fri Nov 23, 2012 12:21 pm
by Mer-Ki-Vah
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;

Re: [MicroMacro-HELP] mobs with buff

Posted: Fri Nov 23, 2012 9:30 pm
by lisa
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>

Re: [MicroMacro-HELP] mobs with buff

Posted: Sun Dec 02, 2012 4:56 am
by wardorPL
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

Re: [MicroMacro-HELP] mobs with buff

Posted: Mon Dec 03, 2012 9:47 am
by Mer-Ki-Vah
I think the point is not the buff. They are fighting, an u need setup in profil:

changeProfileOption("ANTI_KS",false);

Try

Re: [MicroMacro-HELP] mobs with buff

Posted: Tue Dec 04, 2012 1:33 am
by wardorPL
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

Re: [MicroMacro-HELP] mobs with buff

Posted: Tue Dec 04, 2012 4:06 am
by lisa
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.

Re: [MicroMacro-HELP] mobs with buff

Posted: Tue Dec 04, 2012 6:30 am
by wardorPL
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"]

Re: [MicroMacro-HELP] mobs with buff

Posted: Tue Dec 04, 2012 7:33 am
by rock5
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.

Re: [MicroMacro-HELP] mobs with buff

Posted: Tue Dec 04, 2012 7:30 pm
by lisa
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)

Re: [MicroMacro-HELP] mobs with buff

Posted: Wed Dec 05, 2012 1:17 am
by rock5
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?

Re: [MicroMacro-HELP] mobs with buff

Posted: Wed Dec 05, 2012 1:24 am
by lisa
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

Re: [MicroMacro-HELP] mobs with buff

Posted: Wed Dec 05, 2012 9:43 am
by rock5
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.

Re: [MicroMacro-HELP] mobs with buff

Posted: Sat Dec 08, 2012 7:51 am
by wardorPL
okay its work. i changed in this profile as u said rock5 and its work so thank you. Topic can be closed

Re: [MicroMacro-HELP] mobs with buff

Posted: Thu Jan 31, 2013 8:30 pm
by abron1
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.]

Re: [MicroMacro-HELP] mobs with buff

Posted: Thu Jan 31, 2013 9:56 pm
by lisa

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

Re: [MicroMacro-HELP] mobs with buff

Posted: Fri Feb 01, 2013 2:11 am
by rock5
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. :)

Re: [MicroMacro-HELP] mobs with buff

Posted: Fri Feb 01, 2013 2:39 am
by lisa
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 =)

Re: [MicroMacro-HELP] mobs with buff

Posted: Tue Feb 05, 2013 11:24 am
by noobbotter
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.