Mob Skills

Status
Not open for further replies.
Re: [Release] Mob Skills

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);
}
This should work. I didn't test it because there is no one on my server. But the player can see.
 
Re: [Release] Mob Skills

I'm sorry. It was my misunderstanding.
The error occurs when the character is in the same map.
.......
 
Re: [Release] Mob Skills

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.

Dude 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:
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);
}
This should work. I didn't test it because there is no one on my server. But the player can see.

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 ==========
 
Re: [Release] Mob Skills

what it takes? the time for coding and someone on their server bragging they coded it themself? called leeching >.>
 
Re: [Release] Mob Skills

Dude 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 ==========
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
 
Re: [Release] Mob Skills

you dont need to replace that part anyways, you just replace the addbyte(0)s with (1)s and it still doesnt let mob attack show for everyone.
 
Re: [Release] Mob Skills

Please help!!!

The character that exists in the same map falls.

After the code of mob skills is put.

The error code is as follows.



error code :-2147287038(UnKnown error 0x80030002)
 
Re: [Release] Mob Skills

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
Nhaa im not kiddin XD...i just started to learn C++ Burr if u can help me for now?

Do i need to put ] some where idk...
 
Re: [Release] Mob Skills

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 FUCKING VALUE GOD DAMMIT >.>
 
Re: [Release] Mob Skills

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 FUCKING VALUE GOD DAMMIT >.>

These "noobs" are trying to fix the mob's magic attack.
 
Re: [Release] Mob Skills

xD makes me laugh i said LERN2READ! iFate look up dumbass T__T **** load of people asking for help because when they compiled their work they go error ONLY by changing the

PHP:
packet.addByte(0)

to

PHP:
packet.addByte(1)

so try informing yourself before judging ......
 
Status
Not open for further replies.
Back