[(Awesome)RELEASE] CoEmuv2.Nano(5095) Source Code

06/16/2009 01:27 n0mansland#796
Anyone wanna mess w/ a jail NPC code (Text based on real CO)

Code:
                case 42:// Warden (Out of jail)
                    {
                        if (LinkBack == 0)
                        {
                            Text("Lucky for you, the player who killed you is willing to drop the murder charges if", CSocket);
                            Text(" you pay him according to what you did. Lucky for you, the player who killed you", CSocket);
                            Text(" is willing to drop the murder charges if you pay him 500,000 silvers.", CSocket);
                            Link("Ok! Let me get out from here!", 1, CSocket);
                            Link("Any chance of a discount?", 2, CSocket);
                            Link("I would rather rot in hell!", 255, CSocket);
                            End(CSocket);
                        }

                        else if (LinkBack == 1)
                        {
                            if (CSocket.Client.PkPoints <= 99)
                            {
                                Teleport(1002, 518, 356, 0, CSocket);
                            }
                        }
                            else if (LinkBack == 2)
                            {
                                Text("The red name, whose PK Points are 30-99 can leave here without any price.", CSocket);
                                Text(" The black name, whose PK Points are 100 or above, should pay 500,000 as recognizance", CSocket);
                                Text(" to leave here.", CSocket);
                                Link("Ok, I will pay.", 7, CSocket);
                                Link("I would rather stay here.", 255, CSocket);
                                End(CSocket);
                            }
                        else if (LinkBack == 7)
                        {
                            if (CSocket.Client.PkPoints > 99)
                                if (CSocket.Client.Money >= 500000)
                                {
                                    Teleport(1002, 518, 356, 0, CSocket);
                                    Money(-500000, CSocket);
                                }
                        }
                                break;
                            }
I got it to work but i wanna make it so if you do link 1 if you have 100 pkp or above it will say I cannot let you out. You are black name. and if you do link 7 if your below 100 pkp or dont have enough money it will say w/e

I did it myself you just gotta do

}
else
{
blablabla

but it messed up link 2.. which is that discount crap so if anyone fix it thanks
06/16/2009 04:13 yuko#797
to make the server run in hamachi you need only to activate the server IP the database ip stays at 127.
for the logins you need 2 parts. one based on 127 and one on the hamachi ip.
the 127 is for the client on the host. the other is for the ppl wo want to connect trough hamachi.
just remember if you put in your client the same ip that the host has you won't be able to run the client thats why you need 127.

i hope you understand anyway i've helped several ppl with the same problem
06/16/2009 14:37 YukiXian#798
My KO board: [Only registered and activated users can see links. Click Here To Register...]
06/16/2009 15:24 Kiyono#799
So how do you find new 0x3F2 sub packets?
06/16/2009 16:01 risonho#800
I did everything just to get naked at the time of server connection failed.
how do you come help me plz :facepalm:
06/16/2009 16:14 Kiyono#801
So I was looking at the status types and I noticed that the cyclone status is different than the one in Status.cs
Code:
case "cyclone":
							{
								if(CSocket.Client.isGM || CSocket.Client.isPM)
								{
									CSocket.Client.Cyclone = true;
									CSocket.Send(ConquerPacket.Status(CSocket, 2, [b]8388608[/b], Struct.StatusTypes.StatusEffect));
								}
								break;
							}
Code:
if(CSocket.Client.Cyclone)
							Status += 0x800000;
So how can they be different.
06/16/2009 16:18 risonho#802
wait
06/16/2009 16:38 nTL3fTy#803
Quote:
Originally Posted by Kiyono View Post
So I was looking at the status types and I noticed that the cyclone status is different than the one in Status.cs
Code:
case "cyclone":
							{
								if(CSocket.Client.isGM || CSocket.Client.isPM)
								{
									CSocket.Client.Cyclone = true;
									CSocket.Send(ConquerPacket.Status(CSocket, 2, [b]8388608[/b], Struct.StatusTypes.StatusEffect));
								}
								break;
							}
Code:
if(CSocket.Client.Cyclone)
							Status += 0x800000;
So how can they be different.
Number styles. The first one is decimal, second one is hexadecimal. Thus, they are the same thing.

8388608 = 0x800000

You can easily use MS Calc (the little calculator your Windows comes with) to convert between the two, but the calculator needs to be in scientific mode.
06/16/2009 16:54 Kiyono#804
So does it matter if you use 8388608 or 800000?

//edit I thought that the cyclone skill would be something simple as:
Code:
case 1110:
{
    CSocket.Client.Cyclone = true;
    break;
}
but apparently it isn't...
06/16/2009 17:59 nTL3fTy#805
Quote:
Originally Posted by Kiyono View Post
So does it matter if you use 8388608 or 800000?

//edit I thought that the cyclone skill would be something simple as:
Code:
case 1110:
{
    CSocket.Client.Cyclone = true;
    break;
}
but apparently it isn't...
Hexadecimal numbers are always written with a prefix of 0x in C#.

As for activating cyclone, simply setting a server-side bool won't tell the client that it should enter cyclone. You need to send the 0x3f9 packet to update the player's statusflags to include the cyclone flag (8388608/0x800000).
06/16/2009 18:19 Kiyono#806
oh ok and about my other question I still don't know how you guys find the 0x3F2 sub packets =/
06/16/2009 19:15 kinshi88#807
Quote:
Originally Posted by Kiyono View Post
oh ok and about my other question I still don't know how you guys find the 0x3F2 sub packets =/
With a self made proxy that logs and decrypts packets.
And in the sent packet it would say the packet id, and one of the values sent would be the subtype.
06/16/2009 19:37 Kiyono#808
Guess I'll stop messing around with anything that's related to finding the correct packets till I learn some more...
06/16/2009 21:22 Konquer1#809
what is it ?

[Only registered and activated users can see links. Click Here To Register...]


[Only registered and activated users can see links. Click Here To Register...]
06/17/2009 03:37 TheGameCo#810
please Some one help me My prob is :
When i open CoEmu V2 GameServer or login server give error it say:
coEmu V2 GameServer has encountered a problem and needs to close we are sorry for the inconvenience [don't send ] when i press it close Please some one tell me how to fix that