byron
-
Posts
7 -
Joined
-
Last visited
Content Type
Forums
Articles
Bug Tracker
Downloads
Store
Posts posted by byron
-
-
I'm having a problem where if I have 2 players and use
foreach (WoWPlayer _unit in ObjectManager.GetObjectWoWPlayer() )
{
Logging.WriteDebug("Unit: " + _unit.Name + " Requires : " + (_unit.MaxHealth- _unit.Health).ToString() + " Heal " + (_unit.HealthPercent).ToString() + " % ");
}It returns completely different health values depending on if they are in a party or not
on vanilla
-
ah think I found what I was looking for
CHAT_MSG_SPELL_FAILED_LOCALPLAYER
then test for "You fail to cast power word Fortitude: Target is too low level."
only because I cant work out on vanilla what level someone has to be to cast a rank 3 fort on them
-
Hi I think I was more wondering
from c# how do I find the party index number for a member of the group
or given the index number, from lua how do I find the players name to return to c# (it it was a raid I could use raidroster with the index to return the players name, just wondered how to do it when they are a party)
-
something similar to below sent from c
Lua.LuaDoString
for groupindex = 1; MAX_PARTY_MEMBERS do
debuff = UnitDebuff("party"..groupindex , 1, SHOW_DISPELLABLE_DEBUFFS);
if ( debuff ) then
DEFAULT_CHAT_FRAME:AddMessage("how do I return a list of player names here back to c#" );
else
DEFAULT_CHAT_FRAME:AddMessage("return no -one to dispel" );
end
end -
Is there a way to check for error target is too low level when casting buffs
ObjectManager.GetObjectWoWPlayer()
in Developers assistance
Posted
WoWPlayer.MaxHealth is the MaxPercentage and WowPlayer.Health == WowPlayerHealthPercent when not in a party on Vanilla
And if they are in group or party then the values are what you would expect them to be