What's new

Anty spam

Status
Not open for further replies.

Ceziks

User
Joined
Aug 24, 2008
Messages
26
Reaction score
0
Witam poszukuj? co? na spam pod tibie 7.6 mo?e co? takiego by?o ale niemog? znale??.Z g?ry THX
 

Luas

Advanced User
Joined
Jul 21, 2009
Messages
198
Reaction score
7
Age
29
Odp: Anty spam


Prosze bardzo!
To jest anty SPAM na Czary
Pozdro!
 

Arghiliis

User
Joined
Feb 2, 2009
Messages
25
Reaction score
4
Odp: Anty spam

opis:
Je?li wpiszesz ten sam czar po raz drugi to go nie wy?wietli + czary kolorem

protocol76.cpp
zamie?:
Code:
	if(game->creatureSaySpell(player, text))
		type = SPEAK_SAY;
na:
Code:
#ifdef _NG_BBK_SPAMSPELL__
	   bool Spells = false;
	   
   if(game->creatureSaySpell(player, text))
	   {
		 Spells = true;
		 }
	
	if (player && Spells)
	  {
		   if(text == player->msgB)
		   {
				return;
		   }
	  }
		
   if(game->creatureSaySpell(player, text))
	   {
		 Spells = true;
				   type = SPEAK_MONSTER1;
	   			 player->msgB = text;
		}
#else
	if(game->creatureSaySpell(player, text))
		type = SPEAK_SAY;
#endif //_NG_BBK_SPAMSPELL__
player.cpp
Code:
#ifdef _NG_BBK_SPAMSPELL__
msgB = "";
#endif //_NG_BBK_SPAMSPELL__
i zadeklaruj w player.h pod linijka public:
Code:
#ifdef _NG_BBK_SPAMSPELL__
std::string msgB;
#endif //_NG_BBK_SPAMSPELL__

na koniec dodaj do projektu
_NG_BBK_SPAMSPELL__
 

Wasyll

Active User
Joined
Dec 4, 2008
Messages
80
Reaction score
2
Odp: Anty spam

:curse::curse: Nie moge tego znale?? protocol76.cpp gdzie to jest??
Bo mam ots'a WordWara
 
Status
Not open for further replies.
Top