MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides  
Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > WoW Emulator Server > Emulator Server Discussion
Reload this Page [Release] Donor Announce Patch ( Donators Announce )
Emulator Server Discussion World of Warcraft Emulator Server general chat .
[NO Questions here]

Reply
 
LinkBack Thread Tools
[Release] Donor Announce Patch ( Donators Announce )
(#1)
Old
Ascended is Offline
Banned
Rep Power: 0
Reputation: 280
Ascended is a jewel in the roughAscended is a jewel in the roughAscended is a jewel in the rough
 
Posts: 544
Join Date: Aug 2007
Location: Florida SunShine
Legendary [Release] Donor Announce Patch ( Donators Announce ) - 03-13-2008

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

Quote:

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

Code:
 
[Only registered and activated users can see links. ] 
===========================================


Works with revision 4120+

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

Last edited by Ascended; 03-13-2008 at 10:24 PM..
Reply With Quote

Donate to remove ads.
(#2)
Old
~ViVo~ is Offline
Banned
Rep Power: 0
Reputation: 52
~ViVo~ will become famous soon enough
 
Posts: 566
Join Date: Feb 2008
Location: Key largo Florida.
03-13-2008

Nice, Hehe First post AGAIN..
+rep
Reply With Quote
(#3)
Old
TheSpidey's Avatar
TheSpidey is Offline
Emulator Server Specialist

Rep Power: 2
Reputation: 279
TheSpidey is a jewel in the roughTheSpidey is a jewel in the roughTheSpidey is a jewel in the rough
 
Posts: 1,918
Join Date: Jan 2008
03-13-2008

Good job mate
Reply With Quote
(#4)
Old
Gastricpenguin's Avatar
Gastricpenguin is Online
Why so serious...?
Legendary User

Rep Power: 7
Reputation: 787
Gastricpenguin is a splendid one to beholdGastricpenguin is a splendid one to beholdGastricpenguin is a splendid one to beholdGastricpenguin is a splendid one to beholdGastricpenguin is a splendid one to beholdGastricpenguin is a splendid one to beholdGastricpenguin is a splendid one to behold
 
Posts: 1,654
Join Date: Feb 2007
Location: 4Chan
03-13-2008

Putting this command on the 'd' string would allow all donors to have the debug commands... bad idea


And the emulators shall tremble.
[Only registered and activated users can see links. ]
You are responsible for any broken rule, regardless if you "didn't know" or not.
Reply With Quote
(#5)
Old
NineOneOne's Avatar
NineOneOne is Offline
Master Sergeant
Rep Power: 3
Reputation: 14
NineOneOne is on a distinguished road
 
Posts: 126
Join Date: Aug 2006
03-13-2008

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.
Reply With Quote
(#6)
Old
Ascended is Offline
Banned
Rep Power: 0
Reputation: 280
Ascended is a jewel in the roughAscended is a jewel in the roughAscended is a jewel in the rough
 
Posts: 544
Join Date: Aug 2007
Location: Florida SunShine
03-13-2008

Quote:
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
Reply With Quote
(#7)
Old
Ascended is Offline
Banned
Rep Power: 0
Reputation: 280
Ascended is a jewel in the roughAscended is a jewel in the roughAscended is a jewel in the rough
 
Posts: 544
Join Date: Aug 2007
Location: Florida SunShine
03-13-2008

Quote:
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.
Reply With Quote
(#8)
Old
NineOneOne's Avatar
NineOneOne is Offline
Master Sergeant
Rep Power: 3
Reputation: 14
NineOneOne is on a distinguished road
 
Posts: 126
Join Date: Aug 2006
03-13-2008

oh i see (filler)
Reply With Quote
(#9)
Old
CoolManBob's Avatar
CoolManBob is Offline
Master Sergeant
Rep Power: 3
Reputation: 33
CoolManBob is on a distinguished road
 
Posts: 135
Join Date: Jul 2006
03-13-2008

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
Reply With Quote
(#10)
Old
Ascended is Offline
Banned
Rep Power: 0
Reputation: 280
Ascended is a jewel in the roughAscended is a jewel in the roughAscended is a jewel in the rough
 
Posts: 544
Join Date: Aug 2007
Location: Florida SunShine
03-13-2008

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
Reply With Quote
(#11)
Old
Ascended is Offline
Banned
Rep Power: 0
Reputation: 280
Ascended is a jewel in the roughAscended is a jewel in the roughAscended is a jewel in the rough
 
Posts: 544
Join Date: Aug 2007
Location: Florida SunShine
03-13-2008

Quote:
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
Reply With Quote
(#12)
Old
CoolManBob's Avatar
CoolManBob is Offline
Master Sergeant
Rep Power: 3
Reputation: 33
CoolManBob is on a distinguished road
 
Posts: 135
Join Date: Jul 2006
03-13-2008

Quote:
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
Reply With Quote
(#13)
Old
Ascended is Offline
Banned
Rep Power: 0
Reputation: 280
Ascended is a jewel in the roughAscended is a jewel in the roughAscended is a jewel in the rough
 
Posts: 544
Join Date: Aug 2007
Location: Florida SunShine
03-14-2008

Quote:
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
Reply With Quote
(#14)
Old
natfoth is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 2
Reputation: 1
natfoth is an unknown quantity at this point
 
Posts: 31
Join Date: Mar 2007
03-14-2008

sweet thanks ive been looking for something like this
Reply With Quote
(#15)
Old
TheSpidey's Avatar
TheSpidey is Offline
Emulator Server Specialist

Rep Power: 2
Reputation: 279
TheSpidey is a jewel in the roughTheSpidey is a jewel in the roughTheSpidey is a jewel in the rough
 
Posts: 1,918
Join Date: Jan 2008
03-14-2008

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;
}
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361