kmapi.addToTable()

Colour

blue = { 0.0, 0.05, 1.0, 0.0, 0.05, 1.0, 0.0, 0.05, 1.0 }
kmapi.addToTable( "colour", "Blue", blue );

table_reference = { Notebox R, Notebox G, Notebox B, MainUI R, MainUI G, MainUI B, Buttons R, Buttons G, Buttons B }
kmapi.addToTable( Type, "IN GAME TEXT", table_reference );

The type is colour for this section (Must be that spelling of colour)

Right now for the complicated bit!

newcolour = { }

This has several values to make it work:

A colour for the notebox,
A colour for the Main UI,
A colour for the UI buttons,

As stated above at table_reference

These are grouped together in threes, 1 red value, 1 green value and 1 blue value, so let's set them to 0.0 for now

newcolour = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }

NOTE: THE LAST SET OF 0.0'S DO NOT NEED A COMMA AFTER THEM!!!!!

So let's work on the notebox colour first:

Let's make it blue for simplicity:

So we start with the main UI, the middle 3 values

The reason is that this is the main UI colour and we will want to sort the other UI elements to be that colour.

So now we have:

newcolour = { 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0 }

I have put it as 0.5 to make it a less harsh blue! And it is in red so that you can see which part of the line we are working on.

Once you have the hang of how the table works, you can be more adventurous in your colours, but for now we will keep it simple.

You should be getting the point now, so once you've checked it out in the Lotro Client then you can work on the first and last 3 values,

Happy Hacking ;)