Re: Party Bot (questions/answers)
Posted: Mon Feb 11, 2013 8:53 am
nothing unusual there, I just forgot I had even done it.rock5 wrote:Lisa you didn't mention there were other changes in this file that needed to be committed
MicroMacro home
https://www.solarstrike.net/phpBB3/
nothing unusual there, I just forgot I had even done it.rock5 wrote:Lisa you didn't mention there were other changes in this file that needed to be committed
Code: Select all
code"if player.Class1 == CLASS_PRIEST then
--do stuff
end"
Code: Select all
code"if player.Name == "Scoobydoo" then
--do stuff
end"
Code: Select all
function stop()
changeProfileOption("LOOT", false)
end
Code: Select all
code"if stop then stop() end"
Code: Select all
player:cast("PRIEST_GROUP_HEAL")
Code: Select all
code"player:cast("PRIEST_GROUP_HEAL")"
that was the planabron1 wrote:wow ok thanks.. as i get a better understanding how this works its now easy for me to solo instances with a team of my characters now
Code: Select all
code"player:cast("PRIEST_GROUP_HEAL")"
Code: Select all
Unknown profile skill PRIEST_GROUP_HEAL. Check your manual castings (e.g. in the
events or waypoint files). Be sure the skill is in the skills section of your p
rofile.
Did not find any crashed game clients.
8:55pm - ...er/Desktop/micromacro/scripts/rom/classes/player.lua:936: attempt to
compare number with nil
Code: Select all
code"keyboardPress("key.VK_0")"
Code: Select all
Unknown profile skill PRIEST_GROUP_HEAL. Check your manual castings (e.g. in the
events or waypoint files). Be sure the skill is in the skills section of your p
rofile.
Did not find any crashed game clients.
8:55pm - ...er/Desktop/micromacro/scripts/rom/classes/player.lua:936: attempt to
compare number with nil
lisa wrote:Code: Select all
code"if player.Class1 == CLASS_PRIEST then --do stuff end"
You are right I forgot to add in pet usage, shouldn't be hard to add, might add in some other stuff too, maybe some userfunctions to make it all easier aswell.abron1 wrote:oh and the party members are not using pets for some reason
Code: Select all
<onLeaveCombat>
runicthorn2()
player:update()
if 25 > (player.Pet.HP/player.Pet.MaxHP * 100) then
player:target( player.Pet )
player:cast("WARDEN_SUMMON_CHIRON_THE_CENTAUR")
yrest(1000)
end
if not player:hasBuff("Protection of Nature") then
player:cast("WARDEN_SUMMON_NATURE_CRYSTAL");
player:cast("WARDEN_PROTECTION_OF_NATURE");
player:cast("WARDEN_SUMMON_CHIRON_THE_CENTAUR");
end
if player:findNearestNameOrId(102102) then
local Evelyn = player:findNearestNameOrId(102102)
player:target(Evelyn)
player:fight()
end
</onLeaveCombat>
Code: Select all
Use MACRO: PRIEST_URGENT_HEAL => Spirit of the Oak (5607/7061)
Use MACRO: PRIEST_URGENT_HEAL => Spirit of the Oak (5685/7061)
Use MACRO: PRIEST_WAVE_ARMOR => Spirit of the Oak (5549/7061)
Use MACRO: PRIEST_URGENT_HEAL => Spirit of the Oak (5628/7061)
Use MACRO: PRIEST_URGENT_HEAL => Spirit of the Oak (5698/7061)
Use MACRO: PRIEST_URGENT_HEAL => Spirit of the Oak (5611/7061)
Use MACRO: PRIEST_URGENT_HEAL => Spirit of the Oak (5611/7061)
Use MACRO: PRIEST_URGENT_HEAL => Spirit of the Oak (5689/7061)
Code: Select all
for k,v in pairs(petmemberpawn) do
-- no repeat loop so just 1 heal and will heal again next time round, keeps players as priority.
if v.HP/v.MaxHP*100 > 10 and 80 > v.HP/v.MaxHP*100 then -- Alive and under 80% hp
player:target(v)
if 30 > v.HP/v.MaxHP*100 then -- extra heal if HP is really low
if player.Class1 == CLASS_PRIEST then
player:cast("PRIEST_URGENT_HEAL")
elseif player.Class1 == CLASS_DRUID then
player:cast("DRUID_RESTORE_LIFE")
end
end
if player.Class1 == CLASS_PRIEST then
player:cast("PRIEST_URGENT_HEAL")
elseif player.Class1 == CLASS_DRUID then
player:cast("DRUID_RECOVER")
end
end
end
crashed how?abron1 wrote:it did target pet and healed it but the it aslo crashed the game
Code: Select all
Use MACRO: PRIEST_URGENT_HEAL => Chiron the Centaur (20360/55448)
Engaging enemy [Sugon Armored Beast] in combat.
Use MACRO: PRIEST_URGENT_HEAL => Chiron the Centaur (39536/55448)
Use MACRO: PRIEST_HEALING_SALVE=> My Warden (68850/68850)
Use MACRO: PRIEST_WAVE_ARMOR => My Warden (68850/68850)
Engaging enemy [Sugon Armored Beast] in combat.
Use MACRO: MAGE_LIGHTNING => Sugon Armored Beast (161266/202275)
Use MACRO: MAGE_FIREBALL => Sugon Armored Beast (143136/202275)
Use MACRO: PRIEST_BONE_CHILL => Sugon Armored Beast (114133/202275)
Use MACRO: PRIEST_ICEWIND_BLADE=> Sugon Armored Beast (78175/202275)
7:47am - ...rs/User/Desktop/micromacro/scripts/rom/functions.lua:321: bad argume
nt #1 to 'memoryWriteBytePtr' ((null))
I think this is just a return from Rombot when the client crashes. Not exactly the root of why it crashesfunctions.lua:321: bad argument #1 to 'memoryWriteBytePtr' ((null)
correct, the game iteself must have crashed and that is why that error.ellisdee wrote:I think this is just a return from Rombot when the client crashes. Not exactly the root of why it crashes
Code: Select all
Enter the number of the path you want to use and press Enter > 49
You chose 49
Loaded waypoint path partyhealer.xml
No return path with default naming partyhealer_return.xml found.
We use the normal waypoint path partyhealer.xml now.
GM detection started
Party Monitor started.
Party member 1 has the name of my warden
Use MACRO: PRIEST_HEALING_SALVE=> Chiron the Centaur (29725/50700)
Did not find any crashed game clients.
5:39pm - ...ser/Desktop/micromacro/scripts/rom/classes/party.lua:98: attempt to
call local 'heal' (a boolean value)
Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script>