09-15-2013, 07:14 AM
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
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