Most visitors online was 17251 , on 24 May 2024
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!theonendonly i don't think its the code, it happened to me, only MY char skills didn't work so i had to remake one
you guys want the mobs to attack all players on screen add this
packet = Packet();
packet.addHeader(0x9C);
packet.addInt(mob->getID());
packet.addShort(getShort(pack+4));
packet.addByte(1);
packet.addInt(mob->getMP());
packet.sendTo(player, players, 0);
AFTER
packet.addBytesHex(pack+17, pla-17);
packet.sendTo(player, players, 0);
in mobspacket.cpp under void MobsPacket::moveMob
enjoy. btw the mobs dont use the same skills for everyone, aka zakum for instance but all players get hit with spells with NO LAG. tested it with 2 ppl.
void MobsPacket::moveMob(Player* player, Mob* mob ,vector <Player*> players, unsigned char* pack, int pla){
Packet packet = Packet();
packet.addHeader(0x9C);
packet.addInt(mob->getID());
packet.addShort(getShort(pack+4));
packet.addByte(1);
packet.addInt(mob->getMP());
packet.packetSend(player);
packet = Packet();
packet.addHeader(0x97);
packet.addInt(mob->getID());
packet.addByte(1);
packet.addInt(getInt(pack+7));
packet.addByte(0);
packet.addBytesHex(pack+17, pla-17);
packet.sendTo(player, players, 0);
packet = Packet();
packet.addHeader(0x9C);
packet.addInt(mob->getID());
packet.addShort(getShort(pack+4));
packet.addByte(1);
packet.addInt(mob->getMP());
packet.sendTo(player, players, 0);
}