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
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