[C++ Release] GM Guild Invite Message menu

User Tag List

Results 1 to 4 of 4
  1. #1
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C++ Release] GM Guild Invite Message

    Here is a C++ Script i made its using the ON_GUILD_JOIN server hook to make it say congrats when someone joins the GM guild

    Code:
    //This is the Main Script name it what ever you want .cpp
     
    #define ID [Your GM Guild ID]
     
    void GMHire(Player* plr)
    {
    if(plr->GetGuildId()== ID)
    {
    char message[200];
    sprintf(message, "Congratulations %s on getting hired to the [YourServerName] GM Team", plr->GetName());
    plr->BroadcastMessage(message);
    }
    }
     
    void SetupGMHire(ScriptMgr * mgr)
    {
    mgr->register_hook(SERVER_HOOK_EVENT_ON_GUILD_JOIN, (void*)GMHire);
    }
     
    
    Code:
    //Name this file Setup.cpp
    #include"StdAfx.h"
    #include"Setup.h"
    #include<ScriptSetup.h>
    extern"C" SCRIPT_DECL uint32 _exp_get_script_type()
    {
    return SCRIPT_TYPE_MISC;
    }
    extern"C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
    {
    SetupGMHire(mgr);
    }
    #ifdef WIN32
    BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
    {
    return TRUE;
    }
    #endif
    
    
    Code:
    //Name this file Setup.h
      
    void SetupGMHire(ScriptMgr * mgr);
     
    #endif
    
    Thats the script i have it fully tested and everything reply with your thoughts of this
    Last edited by mager1794; 07-26-2008 at 02:21 AM.
    Lunar Gaming - Reaching For The Stars

    [C++ Release] GM Guild Invite Message
  2. #2
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    #ifndef INSTANCE_SCRIPTS_SETUP_H
    #define INSTANCE_SCRIPTS_SETUP_H

    You don't need these >>

  3. #3
    Nebels's Avatar Member
    Reputation
    7
    Join Date
    Jul 2008
    Posts
    29
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should organize the files better for easier editing.

  4. #4
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TheSpidey View Post
    #ifndef INSTANCE_SCRIPTS_SETUP_H
    #define INSTANCE_SCRIPTS_SETUP_H

    You don't need these >>
    lol ooops i was just copyin my setup files and i kinda left that in by accident i guess
    Lunar Gaming - Reaching For The Stars

Similar Threads

  1. NinjaInvite 2.0 RELEASE [Send Mass Guild Invites]
    By Timmid in forum WoW UI, Macros and Talent Specs
    Replies: 270
    Last Post: 10-29-2012, 11:14 PM
  2. Automatic guild inviter?
    By pur3fknpawah in forum World of Warcraft General
    Replies: 0
    Last Post: 06-14-2008, 01:49 PM
  3. auto guild inviter?
    By gangstas in forum WoW UI, Macros and Talent Specs
    Replies: 2
    Last Post: 03-22-2008, 02:38 PM
  4. How To get sweet revenge for random guild invite
    By elliotps932 in forum World of Warcraft Guides
    Replies: 9
    Last Post: 03-21-2008, 03:54 AM
  5. Guild invitation scam
    By Fap in forum WoW Scam Prevention
    Replies: 7
    Last Post: 03-13-2008, 05:38 PM
All times are GMT -5. The time now is 10:55 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search