L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
 
Thread Rating:
  • 6 Vote(s) - 2.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help With Party commands
Author Message
Syloth Offline
Expired VIP Member
**

Posts: 83
Joined: Dec 2011
Reputation: 14
Version: 1.4.2.142
Post: #1
Help With Party commands

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
09-15-2013 07:14 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Information How to get 'PARTY MEMBER TARGET'? Caaioc 9 6,818 01-24-2016 09:57 AM
Last Post: TheQQmaster
  //cfg party buffs cant make them work (help) drake182 3 3,867 01-02-2016 05:47 AM
Last Post: Wazzapkhv
  cannot use l2t commands in l2 after update gorinosho 0 2,400 10-15-2015 07:29 AM
Last Post: gorinosho
  How i do to prophet heal the party player ? sectorzueira 2 3,054 09-11-2015 13:40 PM
Last Post: sectorzueira
  party buffs stopped work buybuy 2 2,768 09-01-2015 19:54 PM
Last Post: buybuy
  Good party with Ertheia ( Eviscerator) cuongbeo88 12 11,494 05-24-2015 23:42 PM
Last Post: rhadamants
  Help Auto Buff Or Heal For Not In Party Verheiden 3 4,495 04-27-2015 16:58 PM
Last Post: Hebdzik
  script sumon select party erickalisetc 8 4,797 01-23-2015 22:17 PM
Last Post: tophersoccer
  select member of party to summon bistabil 6 4,443 12-10-2014 22:49 PM
Last Post: bistabil
Exclamation Auto Accept Party / Change party leader DONT WORK! JuZioo 2 3,348 10-28-2014 23:39 PM
Last Post: JuZioo



User(s) browsing this thread: 1 Guest(s)