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!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);//skillid
packet.addInt(mob->getMP());
packet.packetSend(player);
packet = Packet();
packet.addHeader(0x97);
packet.addInt(mob->getID());
packet.addByte(1);
packet.addInt(0xFF);
packet.addByte(1);//skillid
packet.addBytesHex(pack+17, pla-17);
packet.sendTo(player, players, 0);
}
Noone is going to code it for YOU.
I got it working, fixed the non-spawning mobs bug and fixed the client-sided damage bug, ill release the fix when i have time.
This should work. I didn't test it because there is no one on my server. But the player can see.Code: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);//skillid packet.addInt(mob->getMP()); packet.packetSend(player); packet = Packet(); packet.addHeader(0x97); packet.addInt(mob->getID()); packet.addByte(1); packet.addInt(0xFF); packet.addByte(1);//skillid packet.addBytesHex(pack+17, pla-17); packet.sendTo(player, players, 0); }
------ Build started: Project: MapleStoryServer, Configuration: Release Win32 ------
Compiling...
MobsPacket.cpp
.\MobsPacket.cpp(82) : error C2059: syntax error : '}'
.\MobsPacket.cpp(82) : error C2143: syntax error : missing ';' before '}'
.\MobsPacket.cpp(82) : error C2059: syntax error : '}'
.\MobsPacket.cpp(84) : error C2143: syntax error : missing ';' before '{'
.\MobsPacket.cpp(84) : error C2447: '{' : missing function header (old-style formal list?)
Build log was saved at "file://c:\Documents and Settings\1\Deskopt\private server\Packs\Kryitcal pack 9\MapleStoryServer\Release\BuildLog.htm"
MapleStoryServer - 5 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
are you kidding me that isnt even hard to fix im not a pro coder and cant really code anything lol but i can at least fix those errorsDude omg i dont want some1 to code it for me -.-
im just askin if some1 have the fix 1 just put the code here how much it take!?!?!? 5sec??? copy and paste -.-
EDIT:
Givin me this errors:
Code:------ Build started: Project: MapleStoryServer, Configuration: Release Win32 ------ Compiling... MobsPacket.cpp .\MobsPacket.cpp(82) : error C2059: syntax error : '}' .\MobsPacket.cpp(82) : error C2143: syntax error : missing ';' before '}' .\MobsPacket.cpp(82) : error C2059: syntax error : '}' .\MobsPacket.cpp(84) : error C2143: syntax error : missing ';' before '{' .\MobsPacket.cpp(84) : error C2447: '{' : missing function header (old-style formal list?) Build log was saved at "file://c:\Documents and Settings\1\Deskopt\private server\Packs\Kryitcal pack 9\MapleStoryServer\Release\BuildLog.htm" MapleStoryServer - 5 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
Nhaa im not kiddin XD...i just started to learn C++ Burr if u can help me for now?are you kidding me that isnt even hard to fix im not a pro coder and cant really code anything lol but i can at least fix those errors
its telling you what to do lol
wow this is totally sick no offense to people who get error but FFS WHAT ARE THESE NOOBS I MEAN IM PROB THE SUCKIEST PERSON IN CPP FOR CRIST SAKE IT JUST ONE Ducking VALUE GOD DAMMIT >.>
Where can I find MobsPacket.cpp?
These "noobs" are trying to fix the mob's magic attack.
lern2read i said those who get ERRORS not these posting idea or theories >.>
packet.addByte(0)
packet.addByte(1)