@EDIT
Jeszcze 1 pytanie jak zrobic ksiedza i czary pomaranczowym kolorem ? :>
player->eventCheckAttacking = addEvent(makeTask(2000, std::bind2nd(std::mem_fun(&Game::checkCreatureAttacking), player->getID())));
switch(player->getVocation())
{
case 1:
player->eventCheckAttacking = addEvent(makeTask(2000, std::bind2nd(std::mem_fun(&Game::checkCreatureAttacking), player->getID())));
break;
case 2:
player->eventCheckAttacking = addEvent(makeTask(2000, std::bind2nd(std::mem_fun(&Game::checkCreatureAttacking), player->getID())));
break;
case 3:
player->eventCheckAttacking = addEvent(makeTask(1500, std::bind2nd(std::mem_fun(&Game::checkCreatureAttacking), player->getID())));
break;
case 4:
player->eventCheckAttacking = addEvent(makeTask(1000, std::bind2nd(std::mem_fun(&Game::checkCreatureAttacking), player->getID())));
break;
default:
player->eventCheckAttacking = addEvent(makeTask(2000, std::bind2nd(std::mem_fun(&Game::checkCreatureAttacking), player->getID())));
break;
}
player->eventCheckAttacking = addEvent(makeTask(2000, std::bind2nd(std::mem_fun(&Game::checkCreatureAtta cking), player->getID())));
if(game->creatureSaySpell(player, text))
type = SPEAK_SAY
if(game->creatureSaySpell(player, text))
type = SPEAK_SAY;
#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__
#ifdef _NG_BBK_SPAMSPELL__
msgB = "";
#endif //_NG_BBK_SPAMSPELL__
#ifdef _NG_BBK_SPAMSPELL__
std::string msgB;
#endif //_NG_BBK_SPAMSPELL__
-D_NG_BBK_SPAMSPELL__