Simple Lua Concatenation
How can I concatenate a charid into a Lua string? (I'll use a simple example to illustrate my question)
The following Lua script works great to output "NPC says, Osiris_rueda_status" Code:
The desired output would be, "NPC says, 147_rueda_status" (where 147 is the id from the character_data table) I can do this with Perl Code:
Thanks, Osiris |
Code:
e.self:Say("" .. e.other:CharacterID() .."_rueda_status"); You just want character ID? You can get more lua info here as well. :) https://github.com/EQEmu/Server/wiki/Lua-Parser http://wiki.eqemulator.org/p?Lua_Parser&frm=Main |
Code:
e.self:Say(tostring(e.other:CharacterID()) .. "_rueda_status") |
thx for the replies - I am now getting the desired output
|
All times are GMT -4. The time now is 05:51 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.