Hi, I am new to mushclient and using lua.
Not sure exactly where to start but i want to make an alias that allows me to add a players Name, class, and clan to a table.
I've been looking around and i guess it would look something like this
Alias playeradd * * *
-- playeradd Joe Mage BIGCLAN
player = player or {}
x = %1
player = %1 -- Joe ?
player[x].class = %2 -- Mage ?
player[x].clan = %3 -- BIGCLAN
Not sure if this is right, where i would put this in the program or anything like that.
Not sure exactly where to start but i want to make an alias that allows me to add a players Name, class, and clan to a table.
I've been looking around and i guess it would look something like this
Alias playeradd * * *
-- playeradd Joe Mage BIGCLAN
player = player or {}
x = %1
player = %1 -- Joe ?
player[x].class = %2 -- Mage ?
player[x].clan = %3 -- BIGCLAN
Not sure if this is right, where i would put this in the program or anything like that.