Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-03-12, 05:42 PM   #1
unlimit
Lookin' Good
 
unlimit's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 484
A way to emulate the "Builtin" package?

I don't particularly want to create my package with an OOBE file, I'd rather do it the same way the 'Built In' package works. Is there a way to emulate it?

I tried using:

lua Code:
  1. RDXEvents:Bind("INIT_DATABASE_LOADED", nil, function()
  2.  
  3.     local test = RDXDB.GetOrCreatePackage("test");
  4.  
  5.     if not test["test_script"] then
  6.         test["test_script"] = {
  7.             ["ty"] = "Script",
  8.             ["version"] = 1,
  9.             ["data"] = {
  10.                 ["script"] = "just random text",
  11.             },
  12.         }end
  13. end);

But that didn't seem to be cutting it.
__________________


kúdan: im playing pantheon
JRCapablanca: no youre not
** Pantheon has been Banned. **

Last edited by unlimit : 02-03-12 at 05:49 PM.
  Reply With Quote
 

WoWInterface » Featured Projects » OpenRDX » OpenRDX Community » OpenRDX: Community Chat » A way to emulate the "Builtin" package?


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