Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 11:53

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

Advertisement



Almost done the npc to create guild and wh pass. Need 1 more help.

Discussion on Almost done the npc to create guild and wh pass. Need 1 more help. within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
painkiller199202's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 65
Received Thanks: 5
Almost done the npc to create guild and wh pass. Need 1 more help.

Hi all, im almost done the npc to create guild, so iŽll be happy if someone can help me how to make this back to the original position.

Thanks for that who can help me

IŽll release it soon


Edit: lol iŽve done, just forgot the End(CSocket);

And now how i can make it really set a password? Any help? thanks
Attached Images
File Type: jpg 20286531.jpg (400.7 KB, 69 views)
File Type: jpg 21314636.jpg (484.9 KB, 42 views)
painkiller199202 is offline  
Old 06/18/2009, 20:46   #2
 
CIRASH's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
what do you need???
CIRASH is offline  
Old 06/18/2009, 22:16   #3
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
Quote:
what do you need???
look in his pics the black box and the OK button


EDIT looks like he fixed it

Quote:
And now how i can make it really set a password? Any help? thanks

Thank *** you're releasing it IDK how to do that like the box and stuff
n0mansland is offline  
Old 06/18/2009, 22:29   #4
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Input box?

Code:
                            Text("This is a test.", CSocket);
                            Input(2, CSocket);
                            Link("Nevermind.", 255, CSocket);
                            Face(53, CSocket);
                            End(CSocket);
Zeroxelli is offline  
Thanks
2 Users
Old 06/18/2009, 22:32   #5
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
Well that helps lol anyway lets get back to his post now.
n0mansland is offline  
Old 06/18/2009, 22:37   #6
 
painkiller199202's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 65
Received Thanks: 5
Quote:
Originally Posted by Zeroxelli View Post
Input box?

Code:
                            Text("This is a test.", CSocket);
                            Input(2, CSocket);
                            Link("Nevermind.", 255, CSocket);
                            Face(53, CSocket);
                            End(CSocket);
Yea this is what i did, i just need to make that work and set a password and create a guild ;D
painkiller199202 is offline  
Old 06/18/2009, 22:51   #7
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
If I recall correctly, you would have to read the data of the packet sent and not just the ID. You should get input via that (As, it sends it back and handles the LinkBack)
Zeroxelli is offline  
Old 06/18/2009, 23:58   #8
 
CIRASH's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
I dont think he understands that zero xD
CIRASH is offline  
Old 06/19/2009, 00:15   #9
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
in Packetprocessor.cs find
Code:
					case 2031: //Initial NPC talk
						{
							int ID = ReadLong(Data, 4);
							Handler.NpcTalk(CSocket, ID, 0);
							break;
						}
					case 2032: //Reply NPC Talk
						{	
							int ID = CSocket.Client.LastNPC;
							int LinkBack = Data[10];
							if(LinkBack != 255)
								Handler.NpcTalk(CSocket, ID, LinkBack);
							break;
						}
and change it to
Code:
					case 2031: //Initial NPC talk
						{
							int ID = ReadLong(Data, 4);
							Handler.NpcTalk(CSocket, ID, 0, "");
							break;
						}
					case 2032: //Reply NPC Talk
						{	
							int ID = CSocket.Client.LastNPC;
                            string Input = string.Empty;
                            for (int i = 1; i <= Data[13]; i++)
                                Input += Convert.ToChar(Data[13 + i]);
							int LinkBack = Data[10];
							if(LinkBack != 255)
								Handler.NpcTalk(CSocket, ID, LinkBack, Input.Replace('~', ' '));
							break;
						}
And in NpcTalk.cs find
Code:
public static void NpcTalk(ClientSocket CSocket, int ID, int LinkBack)
and change it to
Code:
public static void NpcTalk(ClientSocket CSocket, int ID, int LinkBack, string InStr)
Again in Packetprocessor.cs find
Code:
case 10003: // Guild guy
or make it if you haven't already. Replace it and its contents with:
Code:
                case 10003: // Guild guy
                    {
                        if (LinkBack == 0)
                        {
                            Text("This is a test.", CSocket);
                            Input(1, CSocket);
                            Link("Nevermind.", 255, CSocket);
                            Face(53, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            Text("You gave me: " + InStr, CSocket);
                            Link("Thanks.", 255, CSocket);
                            Face(53, CSocket);
                            End(CSocket);
                        }
                        break;
                    }
That should get you started.
Zeroxelli is offline  
Thanks
1 User
Old 06/19/2009, 00:36   #10
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
Why use teh ugliez for loop when methods such as the following, already exist (the sbyte* way is the fastest at runtime btw):

Code:
					
					case 2031: //Initial NPC talk
						{
							int ID = ReadLong(Data, 4);
							Handler.NpcTalk(CSocket, ID, 0, "");
							break;
						}
					case 2032: //Reply NPC Talk
						{	
							int ID = CSocket.Client.LastNPC;
							string Input = System.Text.Encodnig.ASCII.GetString(Data, 14, Data[13]);
							int LinkBack = Data[10];
							if(LinkBack != 255)
								Handler.NpcTalk(CSocket, ID, LinkBack, Input.Replace('~', ' '));
							break;
						}
Code:
					
					case 2031: //Initial NPC talk
						{
							int ID = ReadLong(Data, 4);
							Handler.NpcTalk(CSocket, ID, 0, "");
							break;
						}
					case 2032: //Reply NPC Talk
						{	
							int ID = CSocket.Client.LastNPC;
							string Input;
							fixed (byte* pData = Data)
								Input = new string((sbyte*)(pData+14), 0, Data[13]);
							int LinkBack = Data[10];
							if(LinkBack != 255)
								Handler.NpcTalk(CSocket, ID, LinkBack, Input.Replace('~', ' '));
							break;
						}
Just throwing it out there.
InfamousNoone is offline  
Old 06/19/2009, 00:51   #11
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Because, Microsoft says it themselves.
Quote:
The fixed statement is only permitted in an unsafe context.


Of course, it's faster and easier. But, it takes more for someone who doesn't understand it to have to mark functions using this as unsafe. It just causes more confusion for those who don't understand it. (And yes; personally, I do use it. Just saying, for newbies it's troublesome.)
Zeroxelli is offline  
Old 06/19/2009, 00:57   #12
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
Quote:
Originally Posted by Zeroxelli View Post
Because, Microsoft says it themselves.

Of course, it's faster and easier. But, it takes more for someone who doesn't understand it to have to mark functions using this as unsafe. It just causes more confusion for those who don't understand it. (And yes; personally, I do use it. Just saying, for newbies it's troublesome.)
There's nothing unsafe about it what so ever in the context I posted. Microsoft simply deems it unsafe because it uses a pointer. No, you don't need to mark the function unsafe, you can create an "unsafe block"
Code:
unsafe {
  // ...
}
But sure you newbie argument holds up fine though, but when have they ever wanted to understand code given to them?
InfamousNoone is offline  
Thanks
1 User
Old 06/19/2009, 01:03   #13
 
Zeroxelli's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
Ah, right. unsafe block sounds useful =P

And, there are few who do want to understand. People bug me on MSN all the time about wanting to learn, problem is they don't have the capacity to take their time and learn things right.
Zeroxelli is offline  
Old 06/19/2009, 05:30   #14
 
arab4life's Avatar
 
elite*gold: 0
Join Date: Jan 2006
Posts: 430
Received Thanks: 286
and we got a winner
arab4life is offline  
Old 06/19/2009, 06:08   #15
 
CIRASH's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
I ACTUALLY am learning from posts like this
CIRASH is offline  
Reply


Similar Threads Similar Threads
Bug Create Guild
03/24/2010 - Metin2 PServer Guides & Strategies - 1 Replies
how to create guild bug fix?:handsdown:
scearch china version of wt2.zuiaipk for create guild
11/02/2009 - Metin2 Private Server - 0 Replies
Hi all i am playing to wt2.zuiaipk with mates and i want create guild but i can't.Some people say me to download china version but i don't find it.Anyone ca give me a link please? thx all mathieu :)
create guild
10/26/2009 - Metin2 Private Server - 2 Replies
Hi all, i play on the metin private server: wt2.zuiaipk but i can't create guild.Anyone have the solution for create it? PS: sorry for my english i am french :D Thx :)
[Search] People who want create a guild Cabal Wudij
07/02/2008 - Cabal Online - 9 Replies
HI, i search ppl who want make a own english/german speaking guild if you are intresting PM ME.
Guild Create
03/04/2008 - Silkroad Online - 2 Replies
Hi! I want to make a Guild on PSRO, but, when I choise the name, it says:"Invalid name"or something like that!What I must to do?I realy want to make a guild



All times are GMT +1. The time now is 11:54.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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