LoTROInterface

LoTROInterface (https://www.lotrointerface.com/forums/index.php)
-   General Authoring Discussion (L) (https://www.lotrointerface.com/forums/forumdisplay.php?f=22)
-   -   Update 15 has Lua Fixes !!!! (https://www.lotrointerface.com/forums/showthread.php?t=3512)

magill 10-10-2014 03:36 PM

Update 15 has Lua Fixes !!!!
 
From the PRELIMINARY release notes!

Plugins
  • Lua Plugins: Using LocalPlayer::GetWallet() at initialization time will no longer give you an empty wallet when loading the plugin via the Plugin Manager's "auto-load" options.
  • Lua Plugins: When pressing the "Inventory Panel" hotkey, the inventory bags will no longer show up when disabled via a plugin.
  • Lua Scripts: The returned table for Turbine.Shell.GetCommands is now property 1-based rather than 0-based.
  • The Beorning class has been hooked up with Lua plugin support. See the updated Lua documentation for information on how to use the BeorningAttributes class.


Note the reference to "UPDATED" Lua documentation! -- however, it is not yet posted.

Thurallor 10-10-2014 08:35 PM

Nice :)

moebius92 10-11-2014 11:41 PM

As far as I can tell, the BeorningAttributes is the object returned by calling GetClassAttributes() on a LocalPlayer that's a Beorning. It has two function calls:

GetWrath() - returns the current amount of Wrath (out of 100)
IsInBearForm() - returns a boolean indicating if you're in bear form or not

Also, there are two events:

WrathChanged - triggers on Wrath changing
FormChanged - triggers on changing to a bear or to a human

Not sure what else'll be in the documentation update (and I kinda hope they move Wrath out of the BeorningAttributes - can't access it in party members, so I can't make PartyFrame show the Wrath of Beorning party members. You're stuck with it displaying power.)

Thurallor 10-24-2014 03:13 PM

From today's 15.0 beta 3 release notes:
Quote:

  • Lua - Added the "bridle" slot to the GetEquipment object and fixed a crash that would result on unloading plugins after calling GetEquipment.
  • Lua - fixed the Listbox Sort method to correctly update the internal item array so that you can continue working with the listbox after sorting it.
  • Lua - fixed a situation where SetBackground call could crash if passed in an unsupported image format


magill 11-05-2014 01:17 PM

Full list of Lua Fixes from Update 15 Release notes
 
* Lua Plugins: Using LocalPlayer::GetWallet() at initialization time will no longer give you an empty wallet when loading the plugin via the Plugin Manager's "auto-load" options.
* Lua Plugins: When pressing the "Inventory Panel" hotkey, the inventory bags will no longer show up when disabled via a plugin.
* Lua Scripts: The returned table for Turbine.Shell.GetCommands is now property 1-based rather than 0-based.
* The Beorning class has been hooked up with Lua plugin support. See the updated Lua documentation for information on how to use the BeorningAttributes class.
* Lua - Added the "bridle" slot to the GetEquipment object and fixed a crash that would result on unloading plugins after calling GetEquipment.
* Lua - fixed the Listbox Sort method to correctly update the internal item array so that you can continue working with the listbox after sorting it.
* Lua - fixed a situation where SetBackground call could crash if passed in an unsupported image format


All times are GMT -5. The time now is 08:20 AM.

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