right, so i need to set each datastring of quickslot(n)savedatax to a table with data and type
(where n = quickslot's number)
e.g.
Code:
shortcut(n) = quickslot(n):GetShortcut()
local type(n) = shortcut(n):GetType(),
local data(n) = shortcut(n):GetData()
quickslot1SavData = type,data,
-- And then copy for the other shortcuts...
}
local savedatax ={
quickslot(n)SavData = { Data = data(n),
Type = type(n),
}
...
}
and for loading:
Code:
savedatax = Turbine.etc.loading(Blardyblar)
local sc(n)=Turbine.UI.Lotro.Shortcut();
sc(n):SetType(savedatax.quickslot(n)SavData.Type);
sc(n):SetData((savedatax.quickslot(n)SavData.Data);
quickslot(n):SetShortcut(sc(n));
God that's a bit confusing!
lets try it shall we...
SRY 4 FORMATTING
__________________
We create that what only we love most, But what truly creates us is what(who) loves us the most. - ME, i'm philosopher nao
Where's Chuck Norris' plugin?