![]() |
Global Message System
This is a newer, complete remake, of the Global Message/Event System (please don't post in that thread anymore, in fact, if a moderator feels like it - go ahead and delete it).
Simply put, it's an easy-to-install system that allowed you to send messages on RC too other servers that use the system. The more servers that start using it, the better. None of the "former" versions of the old system works anymore. Current version: 1 ------------------------ Functions: * Ability to send global messages to all servers that use this system. * Ability to send private messages to all servers that use this system. * Ability to turn on/off the display of the messages. * Ability to check the current players/playercount on all servers that use this system. ------------------------ Commands: /npcglobalmsg "text in quotes" /npcsendmsg servername "text in quotes" /npcplayers servername Step-by-step Installation Guide 1) Create a new database NPC, and name it "GlobalSys", then copy and paste this code. PHP Code:
2) Add the following code inside an onRCChat() function in your Control-NPC. PHP Code:
Of course, offensive chat or too much spam, will result in a timed ban from the system. If you violate it too much, you might even get a permanent ban. Suggestions, feedback, comments - everything is appreciated. And please, use the forums built-in reputation system. If you think this is a horrible idea, give me bad rep, at least then I know its not liked. Credits too napo who is hosting the HUB on AEON! |
Added on Ziro's nagging <3
|
Thanks Twinny. :)
I'd also like to point out that you're helping this to grow by having the NPC on your server, you don't have to have global messages enabled. I plan on making a statistics website connected to the system sometime, and have servers transmit tons of data too it. So please, upload it on your server. Dont like the spam? Just set ENABLEMESSAGES to false. Thanks in advance! |
Instead of using quotes, I would loop through your tokens -- really quite simple.
|
Done.
|
Quote:
/npcsendmsg servername "text in quotes" So I wont do it, just for simplicity. If you're lazy enough to not use quotes, don't bother sending messages. |
Nice Ziro :) I won't use it though..
|
Quote:
It certainly will work with commands with two or more tokens. |
Added on Codein's Dev Circle :)
Developers Circle |
Well, the only thing that I would like to point out, is the use of tokenize without a paremeter, because atm you don't use a parameter, and tokenize without a parameter will tokenize spaces and commas, so if an account with a space in it is listed in the ACCESS enum, the account with a space in it won't function properly,..
PHP Code:
PHP Code:
|
Quote:
|
Quote:
anyways, <3 :p |
Current servers that's connected:
AEON Dev Kozmule99 Dev Nocturax Dev zokemon Developers Circle Litheria Symphonia |
Minor update, only one new command added, but meh..
Current version: 1.1 ------------------------ Functions: * Ability to send global messages to all servers that use this system. * Ability to send private messages to all servers that use this system. * Ability to turn on/off the display of the messages. * Ability to check the current players/playercount on all servers that use this system. * Ability to check servers that uses this system. Displays servers playercount, and if they have global messages disabled or not. ------------------------ Commands: /npcglobalmsg "text in quotes" /npcsendmsg servername "text in quotes" /npcplayers servername -- New -- /npcservers Step-by-step Installation Guide 1) If upgrading from an old version, replace your old code with this (might want to NOT replace the editable options). Otherwise, create a new database NPC, and name it "GlobalSys", then copy and paste this code. PHP Code:
2) If you're doing a fresh install, add the following code inside an onRCChat() function in your Control-NPC. PHP Code:
|
Step-by-step Guide for customizing commands
1) In your GlobalSys database NPC, change for example the globalmsg command from: PHP Code:
PHP Code:
|
Just added more commands and a check ensuring no commands that doesn't exist are called, nothing major. But still. Updated the HUB a little too, though.
Current version: 1.2 ------------------------ Functions: * Ability to send global messages to all servers that use this system. * Ability to send private messages to all servers that use this system. * Ability to turn on/off the display of the messages. * Ability to check the current players/playercount on all servers that use this system. * Ability to check servers that uses this system. Displays servers playercount, and if they have global messages disabled or not. * Ability to find a player on any of the servers that use this system. ------------------------ Commands: /npcglobalmsg "text in quotes" /npcsendmsg servername "text in quotes" /npcplayers servername /npcservers -- New -- /npcfindplayer playeraccount -- New -- /npcgetlatesturl Step-by-step Installation Guide 1) If upgrading from an old version, replace your old code with this (might want to NOT replace the editable options). Otherwise, create a new database NPC, and name it "GlobalSys", then copy and paste this code. PHP Code:
2) If you're doing a fresh install, add the following code inside an onRCChat() function in your Control-NPC. Otherwise replace your old with this. PHP Code:
|
Quote:
|
Quote:
|
Damn Ziro, you're still working on this?
|
Quote:
|
I really wish these updates weren't mandatory. Can't you just add a flag that says if the update is required or not?
|
Quote:
However, there won't be so many frequent updates. The last two were basically things I forgot in the initial release. |
Quote:
|
Quote:
|
Quote:
|
I'm just curious, because of about 10 minutes ago loads of UC and hosted servers were down/their npcserver was down/laggy
So, I said '/stats' in the rc window, waits 10 secs and it comes up, no npcserver is listed, then 20 secs later the npcserver pops up and the cpu list: and at number 1: 1. 83.89092337 % GlobalSys (in level symp_onlinestartlocal.nw at pos (30.5, 30)) so.. what's up? :o |
Quote:
Settle it the American way, sue 'em! |
I can't get this work at all. it won't respond with anything and everything apparently is being triggered properly from what I can tell.
|
HUB is currently disabled due to massive abuse. A more secure version is being worked on.
|
ok thanks
|
| All times are GMT +2. The time now is 06:12 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.