diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-29 20:14:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-29 20:14:22 +0300 |
commit | e06acdc70331ba79a0569799610866977fde54c4 (patch) | |
tree | 2eee7767a2730752f8683e121ed3ad45474ca78d /server | |
parent | 090fb47aa837fcbabf9b545d4f3e8976acf53e6e (diff) | |
download | docs-e06acdc70331ba79a0569799610866977fde54c4.tar.gz docs-e06acdc70331ba79a0569799610866977fde54c4.tar.bz2 docs-e06acdc70331ba79a0569799610866977fde54c4.tar.xz docs-e06acdc70331ba79a0569799610866977fde54c4.zip |
Update hercules scripts doc.s20170605
Diffstat (limited to 'server')
-rw-r--r-- | server/scripts/script_commands.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/server/scripts/script_commands.txt b/server/scripts/script_commands.txt index 5ba0aaa..0ba350a 100644 --- a/server/scripts/script_commands.txt +++ b/server/scripts/script_commands.txt @@ -7450,6 +7450,27 @@ no RID is attached), false will be returned. In case of success, true is returned. --------------------------------------- + +*addchannelhandler("<#channel>", "<NPC::OnEvent>") + +This command will trigger the specified event every time a player +talks in the specified channel, with said player as attached rid. +It assigns the message to @channelmes$ + +OnChannelMessage: + channelmes("#chan", "Echo: " + @channelmes$); + end; + +OnInit: + addchannelhandler("#chan", "NPC::OnChannelMessage"); + +--------------------------------------- + +*removechannelhandler("<#channel>", "<NPC::OnEvent>") + +Removes a channel handler added by addchannelhandler() + +--------------------------------------- *rand(<number>{, <number>}) This function returns a number ... |