What's new

-Tibia 7.60 [7.6] Informacja o wej?ciu i wyj?ciu PZ Zone + magic effect

Status
Not open for further replies.

Thorge D

Advanced User
Joined
Jul 24, 2014
Messages
300
Reaction score
29
1. Autor: Matio
2. Link do oryginalnego tematu:
3. Opis:

4. Kod:

game.cpp pod:
[CPP]else if(creature != creatureMoving && toTile->getTeleportItem()){
creature->sendCancel("Sorry, not possible.");
return false;
}[/CPP]
dodaj:
[CPP]#ifdef __PZINFO__
else if (player && !fromTile->isPz() && toTile->isPz())
{
player->sendMagicEffect(player->pos, NM_ME_MAGIC_ENERGIE);
player->sendCancel("Wkroczyles na strefe bezpieczenstwa.");
}
else if (player && fromTile->isPz() && !toTile->isPz())
{
player->sendMagicEffect(player->pos, NM_ME_MAGIC_ENERGIE);
player->sendCancel("Opusciles strefe bezpieczenstwa!");
}
#endif[/CPP]

W opcjach kompilatora dodaj:
[CPP]-D__PZINFO__[/CPP]

Testowane na yurots 0.9.4f
 
Status
Not open for further replies.
Top