Quantcast partynumber - LoTROInterface
VGInterface.com
Search Downloads


Go Back   LoTROInterface > LotRO > General Discussion & Support > Interface Help (L)

Reply
Thread Tools Display Modes
  #1  
Unread 05-21-2018, 12:24 PM
glafria's Avatar
glafria glafria is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Dec 2015
Location: Germany , Wiesbaden
Posts: 28
Send a message via ICQ to glafria Send a message via MSN to glafria Send a message via Skype™ to glafria
partynumber

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
__________________
Glafria, an old old human healing minestrel.
She is a member of an Legion on Gwaihir


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Glafria, eine alte heilende Menschenfrau.

Sie ist ein ehrbares Mitglied einer Allianz auf Gwaihir.
Reply With Quote
  #2  
Unread 05-30-2018, 08:45 AM
glafria's Avatar
glafria glafria is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Dec 2015
Location: Germany , Wiesbaden
Posts: 28
Send a message via ICQ to glafria Send a message via MSN to glafria Send a message via Skype™ to glafria
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.


Glaf
__________________
Glafria, an old old human healing minestrel.
She is a member of an Legion on Gwaihir


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Glafria, eine alte heilende Menschenfrau.

Sie ist ein ehrbares Mitglied einer Allianz auf Gwaihir.
Reply With Quote
  #3  
Unread 05-31-2018, 12:48 PM
Galphoglas's Avatar
Galphoglas Galphoglas is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Aug 2017
Posts: 6
Hum...

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
__________________
Programmeur, mais français avant tout
Reply With Quote
  #4  
Unread 06-01-2018, 04:57 AM
glafria's Avatar
glafria glafria is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Dec 2015
Location: Germany , Wiesbaden
Posts: 28
Send a message via ICQ to glafria Send a message via MSN to glafria Send a message via Skype™ to glafria
Bonjour

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

merci
__________________
Glafria, an old old human healing minestrel.
She is a member of an Legion on Gwaihir


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Glafria, eine alte heilende Menschenfrau.

Sie ist ein ehrbares Mitglied einer Allianz auf Gwaihir.
Reply With Quote
  #5  
Unread 06-01-2018, 10:14 AM
glafria's Avatar
glafria glafria is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Dec 2015
Location: Germany , Wiesbaden
Posts: 28
Send a message via ICQ to glafria Send a message via MSN to glafria Send a message via Skype™ to glafria
I tried it with this code



HTML Code:
MyRaidQuery = Turbine.Gameplay.Player;
MyRaidQuery1 = MyRaidQuery.GetRaid;

MyPartyQuery = Turbine.Gameplay.Player;
MyPartyQuery1 = MyPartyQuery.GetParty;
        
        Turbine.Shell.WriteLine("Debuglinestart");
        Turbine.Shell.WriteLine(MyPartyQuery.GetParty);
        Turbine.Shell.WriteLine(MyRaidQuery.GetRaid);
        Turbine.Shell.WriteLine("Debuglineend");



The Output was


Quote:
[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.
__________________
Glafria, an old old human healing minestrel.
She is a member of an Legion on Gwaihir


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Glafria, eine alte heilende Menschenfrau.

Sie ist ein ehrbares Mitglied einer Allianz auf Gwaihir.
Reply With Quote
  #6  
Unread 06-01-2018, 11:34 AM
Garan's Avatar
Garan Garan is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Oct 2010
Posts: 243
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:
http://www.lotrointerface.com/downloads/cat67.html
Reply With Quote
  #7  
Unread 06-02-2018, 08:28 AM
glafria's Avatar
glafria glafria is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Dec 2015
Location: Germany , Wiesbaden
Posts: 28
Send a message via ICQ to glafria Send a message via MSN to glafria Send a message via Skype™ to glafria
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.
__________________
Glafria, an old old human healing minestrel.
She is a member of an Legion on Gwaihir


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Glafria, eine alte heilende Menschenfrau.

Sie ist ein ehrbares Mitglied einer Allianz auf Gwaihir.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:46 PM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | VGInterface | LoTROInterface | MMOInterface | Swtorui