Page 1 of 3

Party Bot as at 7th oct 2011

Posted: Fri Oct 07, 2011 9:05 am
by lisa
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

Re: Party Bot as at 7th oct 2011

Posted: Fri Oct 07, 2011 9:19 am
by nerdyone255
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?

Re: Party Bot as at 7th oct 2011

Posted: Fri Oct 07, 2011 9:22 am
by lisa
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 =)

Re: Party Bot as at 7th oct 2011

Posted: Fri Oct 07, 2011 9:25 am
by nerdyone255
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

Re: Party Bot as at 7th oct 2011

Posted: Fri Oct 07, 2011 9:29 am
by lisa
My numpad still does icons, you using any addons, like extraactionbars? that thing messes with your keyboard.

Re: Party Bot as at 7th oct 2011

Posted: Fri Oct 07, 2011 9:31 am
by nerdyone255
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

Re: Party Bot as at 7th oct 2011

Posted: Fri Oct 07, 2011 9:43 am
by nerdyone255
jsut flew through zs in a 4 person party.

seems stable :D

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

Re: Party Bot as at 7th oct 2011

Posted: Sun Oct 09, 2011 2:46 am
by lisa
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.

Re: Party Bot as at 7th oct 2011

Posted: Sun Oct 09, 2011 10:17 am
by nerdyone255
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

Re: Party Bot as at 7th oct 2011

Posted: Sun Oct 09, 2011 11:08 am
by rock5
nerdyone255 wrote:THANK YOU LISA/ROCK
The party part is all Lisa. Credit where credits due.

Re: Party Bot as at 7th oct 2011

Posted: Sun Oct 09, 2011 12:12 pm
by lisa
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 =)

Re: Party Bot as at 7th oct 2011

Posted: Mon Oct 10, 2011 9:11 am
by nerdyone255
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

Re: Party Bot as at 7th oct 2011

Posted: Mon Oct 10, 2011 7:39 pm
by lisa
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.

Re: Party Bot as at 7th oct 2011

Posted: Tue Oct 18, 2011 11:47 am
by Nero
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.

Re: Party Bot as at 7th oct 2011

Posted: Tue Oct 18, 2011 9:10 pm
by lisa
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.

Re: Party Bot as at 7th oct 2011

Posted: Thu Oct 27, 2011 3:50 pm
by nerdyone255
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?

Re: Party Bot as at 7th oct 2011

Posted: Thu Oct 27, 2011 3:55 pm
by nerdyone255
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.

Re: Party Bot as at 7th oct 2011

Posted: Thu Oct 27, 2011 4:17 pm
by BillDoorNZ
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.

Re: Party Bot as at 7th oct 2011

Posted: Thu Oct 27, 2011 4:56 pm
by nerdyone255
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...

Re: Party Bot as at 7th oct 2011

Posted: Thu Oct 27, 2011 6:07 pm
by BillDoorNZ
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;