is there a function which returns the party numer of the raid.
Everything i tried, didn`t returned what i wanted.
thank you in advance.
Nobody any idea for me.
I want to build a raidinterface for healers and so on.
It would be nice to grupe the raid members exactly like in the raid.
Party One , Party two ...
At the moment they are only sorted by entering the party oder raid, i use a temp index.
I don´t find any number in the lua documentation.
Thanks in advance.
JE n'ai jamais eu un bon niveau en langue vivante donc je ne suis pas sur de bien comprendre la demande
Regarde de ce coté la: http://www.lotrointerface.com/downlo...mentation.html
rubrique: Party / PartyMember (Turbine.Gamplay)
LA réponse à ta questions est probablement: GetRaid() de PartyMember
J'ai essayé ces deux-là, mais le résultat n'était pas ce que tu voulais.
Je suis probablement sur la mauvaise piste.
I tried it with this code
The Output was
So the Value is nil or the syntax is wrong.
Several problems. First, you need to use an instance of the local player to retrieve the party and/or raid, not the class Turbine.Gameplay.Player. You are also referencing the function definitions GetParty and GetRaid rather than their results since you didn't include parenthesis.
To get an instance of the local player use:
local localPlayer = Turbine.Gameplay.LocalPlayer:GetInstance();
then to get the party, use:
local party = localPlayer:GetParty();
note the parenthesis.
I don't recall if GetParty requires the localPlayer to be passed (using the ':' notation automatically handles that) so you might be able to use the '.' notation, "localPlayer.GetParty()". I don't use the party API much because it has been sooo buggy in the past (failing to stay in synch with the game when players join/leave, failing to fire callbacks for events, etc.).
I would suggest looking at the code of existing plugins to see how to access the player's party (or any other functions you are interested in). There are several party related plugins under the Raiding and Instances category:
thanks a lot.
Sorry for the code postings.
I used Turbine.Gameplay.LocalPlayer:GetInstance(); before.
I think there are some bugs at the moment.
Sometime it works and sometime there are many errors.
i solved it through workarounds.
|All times are GMT -5. The time now is 03:30 PM.|
vBulletin® - Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.