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
Party Bot (questions/answers)
Re: Party Bot (questions/answers)
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: Party Bot (questions/answers)
hey lisa i read that there is a way to tell different party members to do different things
i am not sure how to do this because i want the melee character to fight with me but i want to tell the healer not to follow
i use all the functions and it works perfect but if i can tell party member 3 to no follow no loot then me and my other geared melee character fight the trash and them i can call the healer.. and can you give me a example on how to make them a skill from the leader bot
i am not sure how to do this because i want the melee character to fight with me but i want to tell the healer not to follow
i use all the functions and it works perfect but if i can tell party member 3 to no follow no loot then me and my other geared melee character fight the trash and them i can call the healer.. and can you give me a example on how to make them a skill from the leader bot
Re: Party Bot (questions/answers)
I did post this somewhere when someone asked about using whispers.
if you really want then you can also use character names
You could also add functions to the profile for the healer so that what you use in game is easier.
example
profile onload
then in party chat do
I just realised I used a local value in party.lua to stop the following, I think I should make it into a function so it can be called from other places. I should probably do more functions in party.lua so people don't need to write up the code in party chat for things that will be done regularly.
I'll have a think on it.
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"
You could also add functions to the profile for the healer so that what you use in game is easier.
example
profile onload
Code: Select all
function stop()
changeProfileOption("LOOT", false)
end
Code: Select all
code"if stop then stop() end"
I'll have a think on it.
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: Party Bot (questions/answers)
Party.lua is now fully updated in rev 751 will changes from here.
- 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: Party Bot (questions/answers)
hey lisa is there a way for the leader to say a use skill comand and the party member does it like if it was in a waypoint?
example: leader says in party chat
then the priest wil cast group heal if its in his profile. reason i am asking is because i party with a warden and pet and run instances solo, and the only way my pet can get fully healed is if i resummon go to the other screen and use the group heal manually. and there are times when i don't have the time to resummon or switch screens. if its possible
example: leader says in party chat
Code: Select all
player:cast("PRIEST_GROUP_HEAL")
Re: Party Bot (questions/answers)
Code: Select all
code"player:cast("PRIEST_GROUP_HEAL")"
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: Party Bot (questions/answers)
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
Re: Party Bot (questions/answers)
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
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: Party Bot (questions/answers)
well lisa we have another issue lol.
when i use the comand for the priest to group heal the melee character that doesn't have that skill errors and the bot stops
and i tried to use a key press instead but the priest errored (melee characters was already stopped)
so my idea have the bot ignor commands for skills it don't have so it don't error
oh and the party members are not using pets for some reason
when i use the comand for the priest to group heal the melee character that doesn't have that skill errors and the bot stops
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
oh and the party members are not using pets for some reason
Re: Party Bot (questions/answers)
This is like 4 or 5 posts ago.
Not sure when I will have time for it, I'll see how I go.
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
Not sure when I will have time for it, I'll see how I go.
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: Party Bot (questions/answers)
--== removed as newer file posted later ===--
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: Party Bot (questions/answers)
maybe do it like you did the old pet heal for warden where you had the warden target the pet and heal with recover if it was a wd/d. i forget where you put that pieces of code.
old code you had from warden post not sure if it will help
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>
Re: Party Bot (questions/answers)
seems adding the warden pet to partymemberpawn is causing issues, for some reason it seems to think it is buffing pet when it is buffing itself, still won't heal the pet.
Might have to do some more specific code for warden pet's, I might get time to work on it at some stage this weekend.
Might have to do some more specific code for warden pet's, I might get time to work on it at some stage this weekend.
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: Party Bot (questions/answers)
ok this seems to be working well, I set it to 80% and it only uses urgent heal or recover to heal pet.
It just does the 1 heal each main loop, so it's priority is always going to be players.
Give it a test and see how it goes.
--=== Added ===--
Had a look at druid skills a bit closer, I am thinking restore life is probably a good skills to use, as level of only 6 and does a good once off heal with no heal over time, so I am thinking something like this.
After more testing it always does a double heal anyway, seems it casts skill and then continues on in loop and so it comes back to decide to heal again before the last skill has been cast.
Could add in a yrest I guess but I think I will just leave it as a double heal and change it to like 60% hp and no additional code for lower hp
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)
Give it a test and see how it goes.
--=== Added ===--
Had a look at druid skills a bit closer, I am thinking restore life is probably a good skills to use, as level of only 6 and does a good once off heal with no heal over time, so I am thinking something like this.
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
Could add in a yrest I guess but I think I will just leave it as a double heal and change it to like 60% hp and no additional code for lower hp
- Attachments
-
- party.lua
- (17.14 KiB) Downloaded 307 times
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: Party Bot (questions/answers)
it did target pet and healed it but the it aslo crashed the game
Re: Party Bot (questions/answers)
crashed how?abron1 wrote:it did target pet and healed it but the it aslo crashed the game
Mine works fine.
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: Party Bot (questions/answers)
for some reason i can't copy from mm window but ill run it again and try to copy the error message
it works perfectly but after three fights it crashes everytime
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))
Last edited by abron1 on Sat Feb 16, 2013 4:02 pm, edited 4 times in total.
Re: Party Bot (questions/answers)
to copy from MM window, Right click your mouse on the top-most area (title bar), Hover over "Edit".
then you should see what to do from there. If for some reason you cant copy and paste text from that to Notepad++ or a normal Text file, its feasible you have another issue with your computer in general
then you should see what to do from there. If for some reason you cant copy and paste text from that to Notepad++ or a normal Text file, its feasible you have another issue with your computer in general
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)
Re: Party Bot (questions/answers)
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
--=== removed ===--
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: Party Bot (questions/answers)
got this error
didn't evern get to the first fight
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>
Who is online
Users browsing this forum: No registered users and 5 guests