Party Bot as at 7th oct 2011

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Party Bot as at 7th oct 2011

#1 Post by lisa » Fri Oct 07, 2011 9:05 am

Ok I updated party bot to my current files in the middle of all the updates with patch issues. I changed a few things.

Partydps
Still place Icon I on targets you want killed.
If these icons are on partydps bot then it will.
Icon II: it will mount
Icon VI: it will logout.

Partyhealer.
Mostly the same except made it update party member name and pawn regularly instead of every 30 seconds.
Changed this though.
If in profile you have

Code: Select all

<option name="HEALER_FIGHT"		value="true" />
If a mob has icon I it will kill it, obviously need to make sure all attack skills and settings are done properly in profile.
As with anything once in fight mode it will ignore it's duty of healing rest of party but will still heal itself.
Follows as normal, no icon needed.

party bot is still very much a work in progress and will probably stay that way for a long time, updating and improving all the time.

I would love to hear what people want from party bot.
Originally I made it to just be the foundation and hoped others would use that to build something big and beautiful lol

Updated 9th oct 2011
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

nerdyone255
Posts: 107
Joined: Mon Nov 22, 2010 10:17 am

Re: Party Bot as at 7th oct 2011

#2 Post by nerdyone255 » Fri Oct 07, 2011 9:19 am

awesome working now with getNameFollow()

instead of having to put the III icon on.

did rom change something? i used to use my numpad to assign raid icons and now i cant anymore :P

what was that macro to assign a raid icon lisa?

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

Re: Party Bot as at 7th oct 2011

#3 Post by lisa » Fri Oct 07, 2011 9:22 am

nerdyone255 wrote: what was that macro to assign a raid icon lisa?

Code: Select all

/script SetRaidTarget("target",1)

Code: Select all

/script SetRaidTarget("player2",3)
you get the idea =)
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

nerdyone255
Posts: 107
Joined: Mon Nov 22, 2010 10:17 am

Re: Party Bot as at 7th oct 2011

#4 Post by nerdyone255 » Fri Oct 07, 2011 9:25 am

lisa wrote:
nerdyone255 wrote: what was that macro to assign a raid icon lisa?

Code: Select all

/script SetRaidTarget("target",1)

Code: Select all

/script SetRaidTarget("player2",3)
you get the idea =)
perfect. did something ingame change or is it just me? i used to be able to set my target's raid icon using my numberpad...

now numberpad is targeting party members eventhough in keybindings it is set to raid targeting

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

Re: Party Bot as at 7th oct 2011

#5 Post by lisa » Fri Oct 07, 2011 9:29 am

My numpad still does icons, you using any addons, like extraactionbars? that thing messes with your keyboard.
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

nerdyone255
Posts: 107
Joined: Mon Nov 22, 2010 10:17 am

Re: Party Bot as at 7th oct 2011

#6 Post by nerdyone255 » Fri Oct 07, 2011 9:31 am

lisa wrote:My numpad still does icons, you using any addons, like extraactionbars? that thing messes with your keyboard.
pro, youre right... as always <3

nerdyone255
Posts: 107
Joined: Mon Nov 22, 2010 10:17 am

Re: Party Bot as at 7th oct 2011

#7 Post by nerdyone255 » Fri Oct 07, 2011 9:43 am

jsut flew through zs in a 4 person party.

seems stable :D

huge improvement is that dps now attacks when attacked. LOVE it

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

Re: Party Bot as at 7th oct 2011

#8 Post by lisa » Sun Oct 09, 2011 2:46 am

k found the new address thanks to rock, updated to rev 655.

Also renamed the profile option for healer to fight to HEALER_FIGHT.

Removed the check for icon III to follow, I was just testing the icons were working and forgot to change it back before uploading.


Updated first post.
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

nerdyone255
Posts: 107
Joined: Mon Nov 22, 2010 10:17 am

Re: Party Bot as at 7th oct 2011

#9 Post by nerdyone255 » Sun Oct 09, 2011 10:17 am

in all seriousness, i think partybot is the best part of this entire project.

i cant even think of any way i would improve it. with this last revision it works like a charm.

load up partydps on a scout
load up partyhealer on a priest

and i can run through pretty much anything i want. heals and attacks are quick, im always buffed, and im even getting 3 times the mems because all my chars are with me :D

THANK YOU LISA/ROCK

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

Re: Party Bot as at 7th oct 2011

#10 Post by rock5 » Sun Oct 09, 2011 11:08 am

nerdyone255 wrote:THANK YOU LISA/ROCK
The party part is all Lisa. Credit where credits due.
  • 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: Party Bot as at 7th oct 2011

#11 Post by lisa » Sun Oct 09, 2011 12:12 pm

nerdyone255 wrote:in all seriousness, i think partybot is the best part of this entire project.

i cant even think of any way i would improve it. with this last revision it works like a charm.

load up partydps on a scout
load up partyhealer on a priest

and i can run through pretty much anything i want. heals and attacks are quick, im always buffed, and im even getting 3 times the mems because all my chars are with me :D

THANK YOU LISA/ROCK
reading this actually made my night better, ty =)
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

nerdyone255
Posts: 107
Joined: Mon Nov 22, 2010 10:17 am

Re: Party Bot as at 7th oct 2011

#12 Post by nerdyone255 » Mon Oct 10, 2011 9:11 am

well youre welcome, you deserve it.

and eventhough alot of people dont post about it here, i know a BUNCH on my server that use it all the time for follow heals and extra dps.

THANK YOU

just wish there was something i could do to help updating/improving.

im very nub when it comes to code.. well maybe not very nub, but in comparison to you i am :P

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

Re: Party Bot as at 7th oct 2011

#13 Post by lisa » Mon Oct 10, 2011 7:39 pm

even adding suguestions or ideas helps. you might be slicing up KS one day and think, hmmm might be good if ........ post it here and I'll look into 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

User avatar
Nero
Posts: 98
Joined: Wed Aug 10, 2011 9:07 am

Re: Party Bot as at 7th oct 2011

#14 Post by Nero » Tue Oct 18, 2011 11:47 am

As far as functionality goes, it's great - my first day using it and I'm helping my newly grown druid with quests on my mage. One function that I think could be added is a choice of attacks that you could set - for example, if you put raid icon I on a mob it uses normal skills as defined in profile, and if you put raid icon II, it will use different set of skills, in a similar way of 'boss skills' that you've shown me.
I don't know how I could go about adding it though, as the whole PartyDPS() is coded in a different place that waypoint, and it's in onLoad anyway.

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

Re: Party Bot as at 7th oct 2011

#15 Post by lisa » Tue Oct 18, 2011 9:10 pm

The WP basically acts as a shortcut to rom/classes/party.lua
Code you are looking for is in that file.

Best way I see to do what you want is to create a userfunction, I can't remember if I did the bossbuffs() in the dod or in a userfunction, either way a userfunction is the way to go if using it in other places aswell.

then change the code in party.lua

The code at the very top of file is the look for Icon I function, looks like this.

Code: Select all

function icontarget(address) -- looks for icon I on mobs
	local pawn = CPawn(address);
	local icon = pawn:GetPartyIcon()
	pawn:update()
	if icon == 1 then 
		return true
	end
end
You can create another 1 with a different name, icontargetII(address)
and have if icon == 2 then

Around line 90 you will see this

Code: Select all

		--=== Find mobs with I icon and kill them ===--
		player:target(player:findEnemy(nil,nil,icontarget,nil)) 
		if player:haveTarget() then
			player:fight();
		end
make another similar just after it.

Code: Select all

		--=== Find mobs with II icon and kill them ===--
		player:target(player:findEnemy(nil,nil,icontargetII,nil)) 
		if player:haveTarget() then
			if bossbuffs then
				bossbuffs()
			else
				printf("No bossbuffs function loaded.\n")
			end
			player:fight();
		end
This isn't ideal but it will do what you want for now. I will have a think of best implementation when I have more time.

File will look something like this.
Attachments
party.lua
(4.78 KiB) Downloaded 145 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

nerdyone255
Posts: 107
Joined: Mon Nov 22, 2010 10:17 am

Re: Party Bot as at 7th oct 2011

#16 Post by nerdyone255 » Thu Oct 27, 2011 3:50 pm

is there a way to get partydps.xml to attack targets in pvp?

it seems to attack reds that attack it first, but isnt picking up my "I" raid icon that i pop on it to make dps attack, and also doesnt attack back if a party member other than itself is attacked.

maybe a profile setting im missing?

nerdyone255
Posts: 107
Joined: Mon Nov 22, 2010 10:17 am

Re: Party Bot as at 7th oct 2011

#17 Post by nerdyone255 » Thu Oct 27, 2011 3:55 pm

seems like the partydps.xml just isnt recognizing a red in pvp as a target. if i target manually on the char that partydps is controlling, it starts to attack.

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Party Bot as at 7th oct 2011

#18 Post by BillDoorNZ » Thu Oct 27, 2011 4:17 pm

ok, a suggestion for you Lisa ;) just in case you don't already have enough on your plate :D

NPC Interaction - some way for the PartyDPS/Heals to interact with npc dialogs. e.g. talk to XYZ npc, select option 1, then option 5 etc. This is not a simple one as the main use case for it would be for quest accepting and turn-ins. i.e. Main targets the npc, either sets a raid icon to tell the bots to open a dialog (target_NPC) and then sets another icon to tell them which ChoiceOption / Speakframe option to select. I'll have to do a bit more thinking about this as theres a lot of questions and variable involved in all of that. Might even require extending ingamefunctions to do it tho as ideally you would want to be able to select the quest on your main character and have the bots just mirror what the main is doing. It would be nice to be able to get a main + 4 bots to do all 10 daileys in one sitting or to build waypoints for quest chains and run 5 characters through at once.

I remember reading a comment from Admin about some IPC functions for MM, but have never heard any more about it. If there are some there, then it would make it easier to get this sort of thing happening as you could tell the other MM instances to execute the appropriate dialog options, instead of going through the game client and therefore risking detection by gms.

nerdyone255
Posts: 107
Joined: Mon Nov 22, 2010 10:17 am

Re: Party Bot as at 7th oct 2011

#19 Post by nerdyone255 » Thu Oct 27, 2011 4:56 pm

Ack, can't figure out what I'm doing wrong that partydps isn't targeting red players in pvp.

Lisa: where can I find a full list of party settings to declare in characters profile. Maybe that's the issue...

BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Party Bot as at 7th oct 2011

#20 Post by BillDoorNZ » Thu Oct 27, 2011 6:07 pm

I imagine it has to do with this line of code in the CPlayer:findEnemy function (player.lua):

Code: Select all

line 263: if( obj.Type == PT_MONSTER and (_id == obj.Id or _id == nil) and obj.Address ~= ignore) then
i.e. its checking to see if the target (obj) type (obj.Type) is a MONSTER:

Code: Select all

PT_NONE = 0;
PT_PLAYER = 1;
PT_MONSTER = 2;
PT_NPC = 4;
PT_NODE = 4;

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests