The script has now been updated ! Read below for more info! This is for ArcEmu
The following features is now added:
- Chat admins. Those can be promoted by an admin and demoted again aswell.
- You can choose your own watermark for those Chat admins.
- The spam filter can now be customized.
- Added an instant messaging system. This is still beta and will only work as it should when the player is in a guild.
- You no longer have to type ban or mute durations. They do now automatically reset to 0 if nothing else is passed.
- I also added a few more nil checks.
You can always find the newest script here.
If you had V.2 you should run this query to you world database:
Code:
ALTER TABLE `global_chat` ADD `Chat_admin` TINYINT(1) UNSIGNED NOT NULL AFTER `Activated` ;
otherwice you should run this into you world database:
Code:
CREATE TABLE `global_chat` (
`Account_Name` varchar(50) character set utf8 collate utf8_unicode_ci NOT NULL,
`Activated` tinyint(1) unsigned default '1',
`Warnings` tinyint(1) unsigned default '0',
`Banned` tinyint(1) unsigned default '0',
`Spam_warns` tinyint(3) unsigned default '0',
`Ban reason` text character set utf8 collate utf8_bin NOT NULL,
`Ban_Time` bigint(20) unsigned default '0' COMMENT '0 and 1 in ban for perm',
`GM_muted` TINYINT(1) UNSIGNED DEFAULT '0', `Mute_time` BIGINT(20) UNSIGNED DEFAULT '0',
`muted list` longtext character set utf8 collate utf8_unicode_ci NOT NULL,
`Chat_admin` TINYINT(1) UNSIGNED NOT NULL,
UNIQUE KEY `Account_Name` (`Account_Name`)
)
I hope you will find this usefull I will keep this post updated as I come up with ideas to add. If you have some feel free to post them here and I will take a look at it COMMANDS:
Code:
#chat kick (player name) -- starts a vote-kick against the player with the name. If there is most "Yes" the player is kicked for 5 min. #chat on/off -- Turns the global chat on/off
#chat ignore (player name) -- Ignores the player with name
#chat unignore (player name) -- unignores the player with name.
#chat ignorelist -- shows you a list of players you have ignored.
#chat instant on/off -- Turns the instant messenger system on or off. When the system is turned on you can use the global chat directly from the guild chat :)
ADMIN: Code:
------ Server Admin and Chat Admin commands ------
.chat ban (acc name) (duration) -- This will ban the player with account(he cant use or see whats said in the chat). Duration is entered in seconds. .chat mute (acc name) (duration) -- Same as above this will just make the player with account name unable to talk in the chat, but he can still see whats said.
.chat unmute (acc name) -- This will unmute the player with account
.chat unban (acc name) -- This will unban the player with account.
----- Server admins only! -----
.chat setadmin (acc name) -- this will promote the player to an admin of the chat. .chat desetadmin (acc name) -- this will demote the admin back to normal player rank.
Notice that those admins only will have the ability to ban/mute/unban and unmute players from the chat! they wont have any other GM abilities. As i've said before. All bugs and ideas should be replied to this post i will fix them as quick as i can or (for ideas) add them as quick as i can aswell