Welcome to the MMOtop - Arcemu, Mangos, Trinity.
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Grandelf's Avatar
    Status : Grandelf is offline
    Join Date : Nov 2009
    Posts : 117
    Thanks: 1
    Thanked 23 Times in 13 Posts
    Rep Power : 4
    Reputation:153Grandelf has a spectacular aura about Grandelf has a spectacular aura about

    Default [Lua] Worldchat & game script.

    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:


    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;


    Also if you dont have this in you options conf. yet:


    Code:
    <LuaHypArc AllowCharDBQueries="1">
    Just scroll down and put the line there.

    And here is the script:


    [Only registered and activated users can see links. ]

    Grandelf

  2. #2
    Jerry's Avatar
    Status : Jerry is offline
    Join Date : Mar 2009
    Location : Serbia
    Posts : 2,321
    Thanks: 223
    Thanked 501 Times in 286 Posts
    Rep Power : 10
    Reputation:2077Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute Jerry has a reputation beyond repute

    Default

    Thank man

  3. #3
    Status : LilleCarl is offline
    Join Date : Dec 2009
    Location : Muahaha wanna know really?
    Posts : 10
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Rep Power : 0
    Reputation:10LilleCarl is on a distinguished road

    Default

    Please everyone START LEARNING C++ else you will be stuck there one day when your core aint working and you say "im going to change repack" i mean man you need to learn how to code the core itself so it goes better start learning c++ the contribute to arc or aspire or any project.

    anyways nice "Lua" script or how i shouild spell it xD


    // LilleCarl

  4. #4
    Grandelf's Avatar
    Status : Grandelf is offline
    Join Date : Nov 2009
    Posts : 117
    Thanks: 1
    Thanked 23 Times in 13 Posts
    Rep Power : 4
    Reputation:153Grandelf has a spectacular aura about Grandelf has a spectacular aura about

    Default

    Quote Originally Posted by LilleCarl View Post
    Please everyone START LEARNING C++ else you will be stuck there one day when your core aint working and you say "im going to change repack" i mean man you need to learn how to code the core itself so it goes better start learning c++ the contribute to arc or aspire or any project.

    anyways nice "Lua" script or how i shouild spell it xD


    // LilleCarl
    Ehm no thanks. I'll just keep scripting Lua =P, because I dun like C++.


 

Similar Threads

  1. [C++] Ulduar Razorscale boss script
    By Jerry in forum LUA / C++ Scripts
    Replies: 3
    Last Post: 06-03-2011, 11:38 AM
  2. [C++] Guild Housing Script V.3.0
    By Jerry in forum LUA / C++ Scripts
    Replies: 7
    Last Post: 04-08-2011, 01:11 PM
  3. Script to Manage Latency
    By jfernandoz in forum TrinityCore Guides
    Replies: 5
    Last Post: 02-10-2011, 10:28 AM
  4. Game Master Item Vendor
    By Jerry in forum SQL Querys
    Replies: 0
    Last Post: 08-26-2009, 05:54 PM
  5. c++ Script COMMANDS!!!!
    By Jerry in forum LUA / C++ Guides
    Replies: 0
    Last Post: 08-26-2009, 05:49 PM

Visitors found this page by searching for:

lua game script

LUA world chat

grandelf scissors stone paper

c trinity worldchat

worldchat script lua

world chat lua script

SEO Blog

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts