Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 21:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] CoEmu (v2) NPCSpawn Direction fix.

Discussion on [Release] CoEmu (v2) NPCSpawn Direction fix. within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
[Release] CoEmu (v2) NPCSpawn Direction fix.

Note: As usual, I have not tested this on CoEmu, but It works on my server, however it's a little bit different, but this should do the same thing. And also, this is a very small edit, this might not be the correct way to fix it, but it works, so I'm not going to think about it any longer.

Okay this is all you have to do, in the GameServer, open the Folder "Packets" than open the file named "SpawnNPC.cs".

Edit the complete (static) byte with this
Code:
		public static byte[] SpawnNPC(int Type, int X, int Y, int SubType, int Dir, int Flag)
		{
			PacketBuilder Packet = new PacketBuilder(2030, 20);
			Packet.Long(Type);
			Packet.Short(X);
			Packet.Short(Y);
			Packet.Short(SubType + Dir);
			Packet.Short(Dir);
			Packet.Long(Flag);
			return Packet.getFinal();
		}
That's it, if this doesn't work, let me know!

~Bas
Basser is offline  
Reply


Similar Threads Similar Threads
[Release] Trading (CoEmu v2)
02/04/2012 - CO2 PServer Guides & Releases - 60 Replies
Yes yes I know, I haven't released anything for a long time. Well, thought I might as well release some basic stuff for CoEmu v2. So here's a Simple Trading code. Packet Processor: #region Trading case 1056: // Trading {
[HELP] PLEASE Coemu release 180
09/08/2010 - CO2 Private Server - 2 Replies
Hello everyone good morning everyone! Well folks I'm trying to use the Coemu but the recent release that came out good I downloaded the source code and compiled it, if I did not know but was sure: D lol but one detail appeared very npcs are with the dialogues as if I was not wrong. Can someone give me a Help please or copille me if I did something wrong! ss follows below! http://img822.imageshack.us/img822/9706/1942037.t h.jpg Uploaded with ImageShack.us
[Release] >>>> CoEmu.V3
11/09/2009 - CO2 PServer Guides & Releases - 20 Replies
i got a new CoEmu from a china site but i don't know how to setup it this is the link of the source 4shared.com - online file sharing and storage - download NewCoemu.rar pass: AhmedZero
[Release] Skillbooks (CoEmu V2)
06/03/2009 - CO2 PServer Guides & Releases - 10 Replies
# Deleted, i've decided to let people attempt to code the source themselves, thus becoming a better programmer.
[Release] Reg Page For CoEmu v2
05/29/2009 - CO2 PServer Guides & Releases - 2 Replies
i have done with the reg page is work fine and i test it and work so download and test it must work great



All times are GMT +1. The time now is 22:00.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.