Likes: 0
Results 1 to 5 of 5
Thread: Worldchat & game script.
-
15-12-09, 04:46 PM #1
Worldchat & game script.
Register to remove this adWorldchat & game script.
I have created a worldchat and Game script. Now you may wonder, what the hack is that?!?
Worldchat: This script will allow players to typ #chat msg. Everyone in the world will see that msg. If the player is an admin he will get [Admin] for his name. Same for GM and vip. You can ban players from the chat, and players can block the chat, so they dont see it.
Game script: This script will allow player to typ #game plrname. Then a msg will be send to that player to choose paper, stone or scissors. If he doesnt choose anything before 20 sec. It will mean he did not accept it. You can block players from challanging you to a game. Also everytime you play a game, it will get logged into a database. Same for the games you won and the games you lost. Players can use #gameinfo plrname to see the players blockstatus, how many games he played, and how many he won and lost.
Commands:
#chat - #chat msg, will broadcast a msg that every player can see unless they are banned or blocked the chat.
#blockchat - Blocks the chat.
#unblockchat - Unblocks the chat.
#banchatplr - #banchatplr plrname. Player will be banned from chat, you can use this while player is offline.
#unbanchatplr - Same as above but then for unban.
#game - #game plrname, will challange a player by name
#stone - You can only use this while playing a game, will make you choose stone
#scissors - Same as above but for scissors.
#paper - Same as above but for paper.
#blockgame - Blocks the game
#unblockgame - Unblocks the game
#gameinfo - #gameinfo plrname, shows if the player have blocked the game settings, how many games he played, and how many he won and lost.
#commands - Shows a command list ingame.
You have to insert this query into your char DB:
Code:DROP TABLE IF EXISTS `chat`;
Code:CREATE TABLE `chat` ( `Player` varchar(21) collate latin1_general_ci default NULL, `Banned` tinyint(3) default NULL, `Block` tinyint(3) default NULL, `Game` varchar(21) collate latin1_general_ci default NULL, `Gphase` tinyint(3) default NULL, `Played` tinyint(3) default NULL, `Won` tinyint(3) default NULL, `Lost` tinyint(3) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
Code:<LuaHypArc AllowCharDBQueries="1">
And here is the script:
http://pastebin.com/f426115d5
Grandelf
› See More: Worldchat & game script.Last edited by Grandelf; 16-12-09 at 10:32 AM.
-
16-12-09, 12:29 AM #2
what is this all about. some macro used for quickly collecting wow gold?
Last edited by Dimman; 05-03-10 at 06:20 PM.
-
17-12-09, 10:44 AM #3
-
20-12-09, 08:45 AM #4
-
21-12-09, 04:53 AM #5
Register to remove this adIf I try #chat lol it automaticly bans me from the chat, and the chat doesn't show up.
EDIT: Woops my fault I did put the chat table in world, not logon.Last edited by Wolferine; 21-12-09 at 05:03 AM.