Page 1 of 1

partybot question

Posted: Thu Dec 08, 2011 3:06 pm
by nerdyone255
is there a way to use a modifier to specify a permanent target (party leader probably) for single friendly target buffs such as "healing salve" or "Body Vitilization"?

Re: partybot question

Posted: Thu Dec 08, 2011 8:25 pm
by lisa
you could probably add in an option to name a player for special buffs.
Then in the onpreskillcast section of profile check for the name and not to cast if name doesn't match.

Something like this in profile.

Code: Select all

	<onPreSkillCast><![CDATA[
	target = player:getTarget();
	local charname = {"Char1","Char2","Char3")
	if arg1.Name == "PRIEST_HEALING_SALVE" or "DRUID_BODY_VITALIZATION" then
		for k,v in pairs(charname) do
			if target and target.Name == v then return true end
		end
	return false
	end
	]]></onPreSkillCast>
Obviously change the "Char1" and such to actual character names you want to use the buffs on.
Untested and just wrote it off the top of my head, so it would need testing.

Re: partybot question

Posted: Fri Dec 09, 2011 8:46 am
by nerdyone255
going to write it into a profile today :)

thanks for the direction lisa!