Lineage 2 Tower Forum

Full Version: Help With Party commands
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I'm trying to do a pluging that ppl can use commands by clan chat, party chat and whisper, But recognizing only clan members

I'm trying by this way..

function OnChatUserMessage(chatType, nick, msg)
local caller = GetUserByName(nick);
local me = GetMe();
local Message = string.lower(msg);
Message = Message:gsub("^%s*(.-)%s*$", "%1");

----------COMANDOS PARTY-------------
if (isscom) then
if (nick:IsMyClanMember()) then
if (chatType == L2ChatType.CHAT_TELL) then
if (Message == "pt") then
Command("/invite " .. nick);
end;
end;
--- extract --

But i cant make it useful. Please help me
Reference URL's