LoTROInterface (https://www.lotrointerface.com/forums/index.php)
-   Interface Help (L) (https://www.lotrointerface.com/forums/forumdisplay.php?f=3)
-   -   partynumber (https://www.lotrointerface.com/forums/showthread.php?t=3698)

glafria 05-21-2018 12:24 PM

Hi @all,

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.


glafria 05-30-2018 08:45 AM

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.


Galphoglas 05-31-2018 12:48 PM


JE n'ai jamais eu un bon niveau en langue vivante donc je ne suis pas sur de bien comprendre la demande

Par contre:

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

glafria 06-01-2018 04:57 AM


J'ai essayé ces deux-là, mais le résultat n'était pas ce que tu voulais.
Je suis probablement sur la mauvaise piste.


glafria 06-01-2018 10:14 AM

I tried it with this code

HTML Code:

MyRaidQuery = Turbine.Gameplay.Player;
MyRaidQuery1 = MyRaidQuery.GetRaid;

MyPartyQuery = Turbine.Gameplay.Player;
MyPartyQuery1 = MyPartyQuery.GetParty;

The Output was


[06/01 05:13:00 PM] Debuglinestart
[06/01 05:13:00 PM]
[06/01 05:13:00 PM]
[06/01 05:13:00 PM] Debuglineend

So the Value is nil or the syntax is wrong.

Garan 06-01-2018 11:34 AM

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:

glafria 06-02-2018 08:28 AM

Hi Garan,

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 02:55 PM.

vBulletin® - Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.