Guild Announcer menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    Protyke's Avatar Active Member
    Reputation
    22
    Join Date
    Apr 2009
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Guild Announcer

    Okay, well.. I'm tired of being a leecher on MMOwned.. I have started to learn more about Emulation and decided to make my very own CPP script.. Now, this is VERY BASIC so don't be too harsh.. This is also my very first CPP script made entirely by myself. Hey, you have to start somewhere right?

    When somebody in-game makes a guild it will display a server wide message.
    The Guild [Guild Name] has been formed by GuildLeaderName.
    In the middle of the screen.


    Screenshot:




    Code:
    // Coded by Mike 'protyke' of Dead n' Pissed //
    #include "StdAfx.h"
    #include "Setup.h"
    
    void OnGuildCreate(Player * pLeader, Guild * pGuild)
    {
        char onGuildCreate[1024];
         snprintf((char*)onGuildCreate, 1024, "The Guild|cff33ff55 [%s]|r has been formed by|cffff00bb %s", pGuild->GetGuildName(), pLeader->GetName());
      
        
            sWorld.SendWorldWideScreenText(onGuildCreate);
    
        
    }
    
    void SetupGuildCreate(ScriptMgr * mgr)
    {
       mgr->register_hook(SERVER_HOOK_EVENT_ON_GUILD_CREATE, OnGuildCreate);
    
    
    }

    *This was made by me but if somebody else posted a similar script -- Sorry. Just a simple server hook.

    Yep.

    Guild Announcer
  2. #2
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well done for your first script. cannot wait to see what else you end up making.

    good job and good luck

    +Rep

  3. #3
    Claiver's Avatar Member
    Reputation
    138
    Join Date
    Mar 2009
    Posts
    217
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey looks neat for your first works, thanks for the contribution ! +Rep for you (if possible)
    Probably won't be using this myself though.

    Claiver

  4. #4
    Linkn's Avatar Contributor
    Reputation
    90
    Join Date
    Mar 2009
    Posts
    296
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice job, I think this is the first thing in c++ I understand

    +Rep

  5. #5
    bsod-staff14's Avatar Member
    Reputation
    35
    Join Date
    Nov 2008
    Posts
    443
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good job . +Rep nice first script bud.
    Immortal GamerZ Under Development!

  6. #6
    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)
    You don't need to cast onGuildCreate

  7. #7
    gimmeurlife's Avatar Member
    Reputation
    12
    Join Date
    Aug 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    good job here man I dont know the first thing about Cpp yet so I think I need to start looking into it lol +Rep

  8. #8
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good job for your first script. Like Spidey said though you don't need to cast onGuildCreate.

    +rep for the contribution.

    I live in a shoe

  9. #9
    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)
    Looks nice for a first script XD +Rep x2 (cause its C++)
    Lunar Gaming - Reaching For The Stars

  10. #10
    Claiver's Avatar Member
    Reputation
    138
    Join Date
    Mar 2009
    Posts
    217
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got a question if I may, what does the 1024 means?

  11. #11
    Moaradin's Avatar Contributor
    Reputation
    163
    Join Date
    Feb 2008
    Posts
    439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I like it. +Repx3

    +rep people who help you

  12. #12
    Link_S's Avatar Member
    Reputation
    125
    Join Date
    Dec 2008
    Posts
    293
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Claiver View Post
    Got a question if I may, what does the 1024 means?
    Just the 'max size' of the string to build.


    I like it, +Rep from me. It's named C++ and is a very powerful coding language, the name is not CPP.
    Why do I need a signature?

  13. #13
    frkcoaster6's Avatar Member
    Reputation
    7
    Join Date
    May 2008
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Link_S View Post

    I like it, +Rep from me. It's named C++ and is a very powerful coding language, the name is not CPP.
    Well you could call it CPP, because it just stands for cplusplus
    oh ya +rep

  14. #14
    Claiver's Avatar Member
    Reputation
    138
    Join Date
    Mar 2009
    Posts
    217
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ahh thanks for clearing that up.

    Sorry for this rude other question, does anyone have a link to a guide where I could learn how to implement this script into my server :|?
    Looked for a guide, but can't seem to find it. I did search for 'c++' since it's an inappropriate term, no results..

    Thanks .

  15. #15
    frkcoaster6's Avatar Member
    Reputation
    7
    Join Date
    May 2008
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here you go.
    AspireDev.org - Login

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 08-03-2012, 12:57 AM
  2. Guild Wars 2 launch date announced - August 28th!
    By phantom325 in forum Guild Wars 2
    Replies: 9
    Last Post: 07-31-2012, 04:29 AM
  3. Guild Wars CD-Key Changer?
    By MANT1S in forum Gaming Chat
    Replies: 2
    Last Post: 07-31-2006, 09:16 AM
  4. Guide on making a successful guild
    By Cush in forum World of Warcraft Guides
    Replies: 3
    Last Post: 06-12-2006, 03:28 AM
All times are GMT -5. The time now is 04:54 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search