PDA

View Full Version : Worldchat & game script.



Grandelf
15-12-09, 03:46 PM
Worldchat & 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:



DROP TABLE IF EXISTS `chat`;

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;


Also if you dont have this yet:



<LuaHypArc AllowCharDBQueries="1">


Put it in your optional.conf.

And here is the script:
http://pastebin.com/f426115d5 (http://pastebin.com/f426115d5)

Grandelf

yvangkwheng
15-12-09, 11:29 PM
what is this all about. some macro used for quickly collecting wow gold (www.advertising.removed.by.dimman.com)?

Dimman
17-12-09, 09:44 AM
what is this all about. some macro used for quickly collecting wow gold (http://www.power4game.com/)?

Could you ****ing stop and advertise? or else I'm going to rape your mom Ok ? :mad:
And yes I'm serious .

ON TOPIC
Thanks for this script, +Rep


Edit : need to spread :)

Infantry
20-12-09, 07:45 AM
double post

Wolferine
21-12-09, 03:53 AM
If I try #chat lol it automaticly bans me from the chat, and the chat doesn't show up.

http://img682.imageshack.us/img682/1401/20771879.jpg

EDIT: Woops my fault I did put the chat table in world, not logon.