[Release] Donor Announce Patch ( Donators Announce ) menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    ~SaiLyn~'s Avatar Contributor
    Reputation
    280
    Join Date
    Aug 2007
    Posts
    546
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] Donor Announce Patch ( Donators Announce )

    This probably makes your Members donate more often if they had their own announce command.

    ===============================

    This simply lets donators have the following command

    Code:
     
    .donor
    Which simply thoes the following

    Code:
     
    [Donor]PersonNameHere : YOURMESSAGEHERE
    Now you can simply change it to fit your style here and there.

    ====================================


    Patch


    Index: Chat.cpp
    ===================================================================
    --- Chat.cpp (revision 4120)
    +++ Chat.cpp (working copy)
    @@ -470,6 +470,7 @@
    { "worldport", 'v', &ChatHandler::HandleWorldPortCommand, "", NULL, 0, 0, 0},
    { "save", 's', &ChatHandler::HandleSaveCommand, "Save's your character", NULL, 0, 0, 0},
    { "saveall", 's', &ChatHandler::HandleSaveAllCommand, "Save's all playing characters", NULL, 0, 0, 0},
    + { "donor", 'qq', &ChatHandler::HandleDonorCommand, "Sends Msg To All",
    { "start", 'm', &ChatHandler::HandleStartCommand, "Teleport's you to a starting location", NULL, 0, 0, 0},
    { "additem", 'm', &ChatHandler::HandleAddInvItemCommand, "", NULL, 0, 0, 0},
    { "removeitem", 'm', &ChatHandler::HandleRemoveItemCommand, "Removes item %u count %u.", NULL, 0, 0, 0 },

    Index: Chat.h
    ===================================================================
    --- Chat.h (revision 4120)
    +++ Chat.h (working copy)
    @@ -197,6 +197,7 @@
    bool HandleSummonCommand(const char* args, WorldSession *m_session);
    bool HandleAppearCommand(const char* args, WorldSession *m_session);
    bool HandleAnnounceCommand(const char* args, WorldSession *m_session);
    + bool HandleDonorCommand(const char* args, WorldSession *m_session);
    bool HandleWAnnounceCommand(const char* args, WorldSession *m_session);
    bool HandleGMOnCommand(const char* args, WorldSession *m_session);
    bool HandleGMOffCommand(const char* args, WorldSession *m_session);


    Index: Level1.cpp
    ===================================================================
    --- Level1.cpp (revision 4120)
    +++ Level1.cpp (working copy)
    @@ -23,6 +23,21 @@

    #include "StdAfx.h"

    +bool ChatHandler::HandleDonorCommand(const char* args, WorldSession *m_session)
    +{
    + if(!*args)
    + return false;
    +
    + char pAnnounce[1024];
    + string input2;
    +
    + input2 = "|cffff6060";
    + if(m_session->CanUseCommand('qq')) input2+="[Donor]";
    + else if(m_session->CanUseCommand('qq')) input2+="[Donor]";
    + input2+="|r|cffff6060 ";
    + input2+=m_session->GetPlayer()->GetName();
    + input2+="|r|cffff6060 |r";
    + snprintf((char*)pAnnounce, 1024, "%s%s", input2.c_str(), args); // Adds BROADCAST:
    + sWorld.SendWorldText(pAnnounce); // send message
    + sGMLog.writefromsession(m_session, "used announce command, [%s]", args);
    +
    + //sWorld.SendForcedIRCMessage(pAnnounce);
    + return true;
    +}
    Or download the patch

    ===========================================


    Works with revision 4120+

    =====================================
    Last edited by ~SaiLyn~; 03-13-2008 at 08:24 PM.

    [Release] Donor Announce Patch ( Donators Announce )
  2. #2
    ~ViVo~'s Avatar Banned
    Reputation
    52
    Join Date
    Feb 2008
    Posts
    560
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice, Hehe First post AGAIN..
    +rep

  3. #3
    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)
    Good job mate

  4. #4
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Putting this command on the 'd' string would allow all donors to have the debug commands... bad idea
    Life Puzzler WoW - Website | Forums

  5. #5
    NineOneOne's Avatar Member
    Reputation
    14
    Join Date
    Aug 2006
    Posts
    126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol, cant you just change this part in level1.cpp

    Code:
    	if(m_session->CanUseCommand('z')) input2+="Admin";
    	else if(m_session->GetPermissionCount()) input2+="GM";
    to
    Code:
    	if(m_session->CanUseCommand('z')) input2+="Admin";
            else if(m_session->CanUseCommand('x')) input2+="Donor";
    	else if(m_session->GetPermissionCount()) input2+="GM";
    Just saying this might be a little easier than adding all that other stuff to other script files.

  6. #6
    ~SaiLyn~'s Avatar Contributor
    Reputation
    280
    Join Date
    Aug 2007
    Posts
    546
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Gastricpenguin View Post
    Putting this command on the 'd' string would allow all donors to have the debug commands... bad idea
    True , but I said they could change it to fit their style.

    I dont know every single access out there , so im not that sure which one to give it to donators

  7. #7
    ~SaiLyn~'s Avatar Contributor
    Reputation
    280
    Join Date
    Aug 2007
    Posts
    546
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by HeavyMetal420 View Post
    lol, cant you just change this part in level1.cpp

    Code:
        if(m_session->CanUseCommand('z')) input2+="Admin";
        else if(m_session->GetPermissionCount()) input2+="GM";
    to
    Code:
        if(m_session->CanUseCommand('z')) input2+="Admin";
            else if(m_session->CanUseCommand('x')) input2+="Donor";
        else if(m_session->GetPermissionCount()) input2+="GM";
    Just saying this might be a little easier than adding all that other stuff to other script files.
    Do it which ever way you want.

    But that way crashed me couple of times , plus you would need to change some z access. I tried this already before releasing this. So the way i released it came to be more perfect.

  8. #8
    NineOneOne's Avatar Member
    Reputation
    14
    Join Date
    Aug 2006
    Posts
    126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh i see (filler)

  9. #9
    CoolManBob's Avatar Active Member
    Reputation
    92
    Join Date
    Jul 2006
    Posts
    208
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    congrats you pretty much copy pasted the announce command and deleted a few things and added a single line to Chat.cpp and Chat.h

  10. #10
    ~SaiLyn~'s Avatar Contributor
    Reputation
    280
    Join Date
    Aug 2007
    Posts
    546
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Imma be a little noob friendly here, i addedd it to access " qq " donor command came out and no other command did , so i guess will work for others.

    First post updated

  11. #11
    ~SaiLyn~'s Avatar Contributor
    Reputation
    280
    Join Date
    Aug 2007
    Posts
    546
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by CoolManBob View Post
    congrats you pretty much copy pasted the announce command and deleted a few things and added a single line to Chat.cpp and Chat.h
    Well this is noob friendly.

    Or you prefer my other one I have ? more lines to it , a bit 80% different than a normal announce command.

    I will release it when I get it stable with the latest ascent

    But for now , this will do

  12. #12
    CoolManBob's Avatar Active Member
    Reputation
    92
    Join Date
    Jul 2006
    Posts
    208
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Ascended View Post
    Well this is noob friendly.

    Or you prefer my other one I have ? more lines to it , a bit 80% different than a normal announce command.

    I will release it when I get it stable with the latest ascent

    But for now , this will do
    no im good, if i wanted one i would write it myself

  13. #13
    ~SaiLyn~'s Avatar Contributor
    Reputation
    280
    Join Date
    Aug 2007
    Posts
    546
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by CoolManBob View Post
    no im good, if i wanted one i would write it myself
    If so , still wondering why still the 18 rep .... /sigh

  14. #14
    natfoth's Avatar Member
    Reputation
    7
    Join Date
    Mar 2007
    Posts
    80
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sweet thanks ive been looking for something like this

  15. #15
    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)
    input2 = "|cffff6060";
    if(m_session->CanUseCommand('qq')) input2+="[Donor]";
    else if(m_session->CanUseCommand('qq')) input2+="[Donor]";

    C&P much? That if is unneeded. if the player triggered this function he must have the donor permission :P
    Just do this:

    Code:
    bool ChatHandler::HandleDonorCommand(const char* args, WorldSession *m_session)
    {
    	 if(!*args)
    	 return false;
    
    	 char pAnnounce[1024];
    
    	 snprintf((char*)pAnnounce, 1024, "|cffff6060[Donor]|r|cffff6060 %s|r|cffff6060: |r%s", m_session->GetPlayer()->GetName(), args)
    	 sWorld.SendWorldText(pAnnounce);
    	 sGMLog.writefromsession(m_session, "used Donor announce, [%s]", args);
    
    	 return true;
    }

Page 1 of 2 12 LastLast

Similar Threads

  1. SW:TOR Release Date Announced
    By DrWho1988 in forum Star Wars: The Old Republic
    Replies: 9
    Last Post: 09-27-2011, 10:10 AM
  2. [Release][FrostTeam] Announcer Template - MUST HAVE!
    By Nymphx in forum WoW EMU General Releases
    Replies: 23
    Last Post: 01-19-2009, 03:42 PM
  3. [RELEASE] NPC Announcer
    By brian1775 in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 06-12-2008, 01:44 AM
  4. [Guide] Create new command ( Like Donor Announce )
    By ~SaiLyn~ in forum WoW EMU Guides & Tutorials
    Replies: 21
    Last Post: 06-06-2008, 08:10 PM
All times are GMT -5. The time now is 11:10 AM. 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