Welcome!

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!

Mob Skills

Status
Not open for further replies.
Newbie Spellweaver
Joined
Apr 6, 2008
Messages
6
Reaction score
0
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.
 
Newbie Spellweaver
Joined
Apr 19, 2008
Messages
96
Reaction score
0
Re: [Release] Mob Skills

hmmm idk if i will try this but i might give it a hit

Edit: coming soon (lmfao xD)
 
Newbie Spellweaver
Joined
Apr 28, 2008
Messages
8
Reaction score
0
Re: [Release] Mob Skills

I'm sorry. It was my misunderstanding.
The error occurs when the character is in the same map.
.......
 
Newbie Spellweaver
Joined
Apr 22, 2008
Messages
39
Reaction score
0
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 ==========
 
Newbie Spellweaver
Joined
Apr 19, 2008
Messages
96
Reaction score
0
Re: [Release] Mob Skills

what it takes? the time for coding and someone on their server bragging they coded it themself? called leeching >.>
 
Master Summoner
Joined
Apr 2, 2008
Messages
538
Reaction score
0
Re: [Release] Mob Skills

drkgods dont think that works either, I tried it before.
 
Newbie Spellweaver
Joined
Apr 11, 2008
Messages
72
Reaction score
0
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
 
Master Summoner
Joined
Apr 2, 2008
Messages
538
Reaction score
0
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.
 
Newbie Spellweaver
Joined
Apr 28, 2008
Messages
8
Reaction score
0
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)
 
Newbie Spellweaver
Joined
Apr 22, 2008
Messages
39
Reaction score
0
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...
 
Newbie Spellweaver
Joined
Apr 19, 2008
Messages
96
Reaction score
0
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 Ducking VALUE GOD DAMMIT >.>
 
Junior Spellweaver
Joined
Apr 12, 2008
Messages
103
Reaction score
0
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 Ducking VALUE GOD DAMMIT >.>

These "noobs" are trying to fix the mob's magic attack.
 
Master Summoner
Joined
Apr 2, 2008
Messages
538
Reaction score
0
Re: [Release] Mob Skills

iFate you're very hypocritical.
 
Newbie Spellweaver
Joined
Apr 19, 2008
Messages
96
Reaction score
0
Re: [Release] Mob Skills

xD makes me laugh i said LERN2READ! iFate look up dumbass T__T poop 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
Top