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

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pluguin Chat command for start and stop Scrypt
Author Message
OxenteBahia Offline
VIP Member
***

Posts: 72
Joined: Jul 2012
Reputation: 11
Version: 1.4.2.138
Post: #1
Pluguin Chat command for start and stop Scrypt

hello guys!
I looked around the forum and could not find a pluguin to enable and disable a text command by Scrypt in char party or clan chat. example (start ...stop enables and disables certain Scrypt) ... I believe I've seen something like that here in the forum but I could not find.

Thank you!

Living is drawing without erasing!
08-24-2015 21:38 PM
Find all posts by this user Quote this message in a reply
schubbel2208 Offline
Expired VIP Member
**

Posts: 154
Joined: Jun 2012
Reputation: 35
Version: 1.4.3.143
Post: #2
RE: Pluguin Chat command for start and stop Scrypt

    LUA Programming
function OnChatUserMessage(chatType, nick, msg)
 if (chatType == L2ChatType.CHAT_PARTY) then
 Message = string.lower(msg); -- Converts message to lower case letters.
 Message = Message:gsub("^%s*(.-)%s*$", "%1"); -- Trimming message of spaces on start.
 if (Message == "start") then
 ProcessCommand("/scriptStart urscript.lua");
 ShowToClient("Debug","script xy On");
 end;
 if (Message == "stop") then
 ProcessCommand("/scriptStop urscript.lua");
 ShowToClient("Debug","script xy Off");
 end;
 end;
end;

08-24-2015 22:45 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Script that read the chat messages carlosdiegao 7 7,135 12-10-2017 19:15 PM
Last Post: testforl2
Wink LifeDrain start 12.05.2017 Interlude drosgardius 0 2,371 05-10-2017 23:37 PM
Last Post: drosgardius
  LifeDrain start 12.05.2017 drosgardius 0 1,751 05-10-2017 23:36 PM
Last Post: drosgardius
  drop command/function Emkej8 4 4,488 08-13-2016 21:00 PM
Last Post: Emkej
  CP/Mana Stop Working Crnogorac 3 4,044 04-08-2016 10:36 AM
Last Post: TheQQmaster
  L2 stop working when press login laydown 0 2,141 08-19-2015 00:53 AM
Last Post: laydown
  Command list DjNanos 2 5,688 07-28-2015 16:13 PM
Last Post: DjNanos
  Start and Stop Scripts benbt91 4 5,188 03-20-2015 14:05 PM
Last Post: kerberos464
WTB WTB chat script abl521 0 1,771 03-01-2015 17:50 PM
Last Post: abl521
  L2.exe Stop Working. manolisfox 6 4,129 01-19-2015 01:03 AM
Last Post: manolisfox



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