lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > Lua Programming Help (L)

Reply
Thread Tools Display Modes
  #1  
Unread 10-02-2011, 01:19 AM
MrJackdaw's Avatar
MrJackdaw MrJackdaw is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2009
Location: Lancaster, England
Posts: 249
New Warden functions

I managed to access the new warden functions yesterday and thought it may be useful to show the code here;

First, set the player and playerattributes;
Code:
Player = Turbine.Gameplay.LocalPlayer.GetInstance()
PlayerAttributes=Player:GetClassAttributes()
Then the listener;
Code:
PlayerAttributes.GambitChanged=function()  
*What you want to happen*
end
PlayerAttributes:GetGambitCount() returns the count of current gambits
PlayerAttributes:GetGambit(i) returns which gambit (fist,shield,spear) is in slot i
PlayerAttributes:GetGambit(PlayerAttributes:GetGam bitCount()) returns the last used gambit - will throw an error if it is zero.

Have fun!
__________________
************************************************** ************************************************** **
"Our ideals may never be realised, But they indicate what we are trying to do." Dick Tahta
Reply With Quote
  #2  
Unread 10-04-2011, 04:53 PM
Garan's Avatar
Garan Garan is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Oct 2010
Posts: 340
There are also a pair of new events:
MaxGambitCountChanged
GambitChanged

which I think were fired for the Player object, but might have been on the Attributes - I haven't played with it much but they might be useful.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
issue with functions inside of a class SanDBoX Lua Programming Help (L) 18 10-08-2010 07:44 PM
LUA REQ: Warden Gambit Helper Valdacil Interface Requests (L) 5 09-28-2010 09:15 AM


All times are GMT -5. The time now is 04:10 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui