yeh, i pondered that, but notices can cause spam.
Printable View
yeh, i pondered that, but notices can cause spam.
i add this so , it only will work ... when someone reach lvl 200
void LevelsPacket::levelUP(Player* player, vector <Player*> players){
Packet packet = Packet();
packet.addHeader(0x23);
packet.addShort(0);
packet.addShort(0x7C10);
packet.addShort(1);
packet.addByte(player->getLevel());
packet.addShort(player->getHP());
packet.addShort(player->getMHP());
packet.addShort(player->getMP());
packet.addShort(player->getMMP());
packet.addShort(player->getAp());
packet.addInt(player->getExp());
packet.packetSend(player); // TODO
packet = Packet();
packet.addHeader(0x85);
packet.addInt(player->getPlayerid());
packet.addByte(0);
packet.sendTo(player, players, 0);
if (player->getLevel() == 200){
char sendstring[500] = {'\0'};
strcpy_s(sendstring, player->getName());
strcat_s(sendstring, " has reached level ");
char buffer[500] = {'\0'};
itoaa(player->getLevel(),buffer,10);
strcat_s(sendstring, buffer);
strcat_s(sendstring, "!");
Server::changeScrollingHeader(sendstring);
}
}
credits to owner of post
have fun
How can i make this appear only when someone hits level 200?
Use my version, not the other one, otherwise youll get spam. With mine you wont get spam,
Wtf 0_0
Posted via Mobile Device