Register for your free account! | Forgot your password?

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

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

Advertisement



Releasing all my private server codes

Discussion on Releasing all my private server codes within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old 08/15/2008, 16:46   #16
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
Sure. Start off with going to Client.cs,around line 1208,and paste this in there:


Quote:
if (CurrentNPC == 886)
{
SendPacket(General.MyPackets.NPCSay("Hey there," + MyChar.Name + "! I can let you enter the labirinth if you"));
SendPacket(General.MyPackets.NPCSay("can offer me 2000 of your virtue points. Intresed?"));
SendPacket(General.MyPackets.NPCLink("Yeah,please send me there!", 1));
SendPacket(General.MyPackets.NPCLink("I want to claim price for my 17 SunDiamonds", 2));
SendPacket(General.MyPackets.NPCLink("I want to claim price for my 17 MoonDiamonds", 3));
SendPacket(General.MyPackets.NPCLink("I want to claim price for my 17 StarDiamonds", 4));
SendPacket(General.MyPackets.NPCLink("No thanks,not yet.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (CurrentNPC == 887)
{
SendPacket(General.MyPackets.NPCSay("Oh,are you ready to go to stage two? To pass there,I want an SkyToken"));
SendPacket(General.MyPackets.NPCLink("I got SkyToken,now get me to stage two", 1));
SendPacket(General.MyPackets.NPCLink("No thanks,not yet.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (CurrentNPC == 888)
{
SendPacket(General.MyPackets.NPCSay("Ready for stage three? I want an EarthToken to let you enter."));
SendPacket(General.MyPackets.NPCLink("I got the token,let me in!", 1));
SendPacket(General.MyPackets.NPCLink("No thanks,not yet.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (CurrentNPC == 889)
{
SendPacket(General.MyPackets.NPCSay("Ready for stage four? The monsters here are strong,but I think you can handle them. Give me an ???? token and I let you in"));
SendPacket(General.MyPackets.NPCLink("Heres the token,now tele me there!", 1));
SendPacket(General.MyPackets.NPCLink("No thanks,not yet.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}

Now go around line 3100,still in Client.cs. Paste this there:



Quote:
if (CurrentNPC == 886)
{
if (Control == 1)
{
if (MyChar.VP >= 2000)
MyChar.Teleport(1700, 607, 625);
MyChar.VP -= 2000;
}

}
if (Control == 2)
{
if (MyChar.InventoryContains(721533, 17))
MyChar.AddItem("1088001-0-0-0-0-0", 2, (uint)General.Rand.Next(99999999));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
MyChar.RemoveItem(MyChar.ItemNext(721533));
SendPacket(General.MyPackets.NPCLink("Thank you for the two meteors", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 3)
{
if (MyChar.InventoryContains(721534, 17))
MyChar.AddItem("1088001-0-0-0-0-0", 4, (uint)General.Rand.Next(99999999));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
MyChar.RemoveItem(MyChar.ItemNext(721534));
SendPacket(General.MyPackets.NPCLink("Thank you for your four meteors", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 4)
{
if (MyChar.InventoryContains(721535, 17))
MyChar.AddItem("700012-0-0-0-0-0", 0, (uint)General.Rand.Next(99999999));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
MyChar.RemoveItem(MyChar.ItemNext(721535));
SendPacket(General.MyPackets.NPCLink("Thank you for the refined DragonGem", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (CurrentNPC == 887)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("I will get you to stage two if you have an SkyToken,do you?"));
SendPacket(General.MyPackets.NPCLink("Yes,I have the SkyToken.", 2));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
{
if (Control == 2)
{
if (MyChar.InventoryContains(721537, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(721537));
MyChar.Teleport(1351, 16, 126);
}
else
{
SendPacket(General.MyPackets.NPCSay("You dont have the token,please dont disturb me!!"));
SendPacket(General.MyPackets.NPCLink("My bad,sorry.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());

}
}
}
}
}
if (CurrentNPC == 888)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("I will get you to stage three if you have an EarthToken,do you?"));
SendPacket(General.MyPackets.NPCLink("Yes,I have the EarthToken.", 2));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
{
if (Control == 2)
{
if (MyChar.InventoryContains(721538, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(721538));
MyChar.Teleport(1352, 40, 211);
}
else
{
SendPacket(General.MyPackets.NPCSay("You dont have the token,please dont disturb me!!"));
SendPacket(General.MyPackets.NPCLink("My bad,sorry.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());

}
}
}
}
}
if (CurrentNPC == 889)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("I will get you to stage four if you have an SoulToken,do you?"));
SendPacket(General.MyPackets.NPCLink("Yes,I have the SoulToken.", 2));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
{
if (Control == 2)
{
if (MyChar.InventoryContains(721539, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(721539));
MyChar.Teleport(1353, 142, 146);
}
else
{
SendPacket(General.MyPackets.NPCSay("You dont have the token,please dont disturb me!!"));
SendPacket(General.MyPackets.NPCLink("My bad,sorry.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());

}
}
}
}
}

Now,go into your database and add the npcs as they should be at,and also add so only the monster in lab drops the tokens & diamonds,i think i mentioned how to do that in another post. grats,you have now lab as it is in conquer =P

post any errors here,since i coded it directly at this post and didnt code it in C#,never tested this code or whatever,so yeh it CAN come up an bug or two,lol.

Emme

+thanks for god sake =D
_Emme_ is offline  
Thanks
7 Users
Old 08/15/2008, 16:55   #17
 
adz06676's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 450
Received Thanks: 68
lies not a chance u did all that in the thread. biggest piece of bullshit i've heard all week lol
adz06676 is offline  
Old 08/15/2008, 17:51   #18
 
elite*gold: 0
Join Date: Feb 2008
Posts: 240
Received Thanks: 10
WOW emme freaking nice man! Ty for the dis thing btw when i was doing it i got like an error adding the UndeadSpearman so when i changed it like this
if (Name == "UndeadSpearman")
{ {
string Item = "723085-0-0-0-0-0";
DroppedItem item = DroppedItems.DropItem(Item, (uint)(PosX - General.Rand.Next(4) + General.Rand.Next(4)), (uint)(PosY - General.Rand.Next(4) + General.Rand.Next(4)), (uint)Map, MoneyDrops);
World.ItemDrops(item);
if (Other.ChanceSuccess(10) || BossMob && Other.ChanceSuccess(30)) ;
}
}

Worked perfect for me ty man ima add my thanks right now
Hey emme would u happen the know the npc types
Bottingpunk is offline  
Old 08/15/2008, 20:44   #19
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
@adz

I did all that in this thread,but ofcourse I had refferences in a notepad,with codes like add stuffs,remove,npctalk,all that ****,im using that one when im adding something new,so i dont have to search all the time to get different codes,so now i just used that one,and like bottingpunk said it worked.
_Emme_ is offline  
Thanks
1 User
Old 08/15/2008, 21:54   #20
 
elite*gold: 0
Join Date: Feb 2008
Posts: 240
Received Thanks: 10
@emme hey man okay i have an npc that double reborn's you and i want to change it how would i change it? any idea
Bottingpunk is offline  
Old 08/15/2008, 23:19   #21
 
nTL3fTy's Avatar
 
elite*gold: 0
Join Date: Jun 2005
Posts: 692
Received Thanks: 353
Quote:
Originally Posted by Kratos59 View Post
Ok i'm french sorry if my english is bad ^^

When, i have rebirth, in my server ... and it's works but one problem don't work and the problem is the StatPoints.

The Statpoint when i push the points, it's ok but if i go offline and online after, my statpoint has lost and don't save ...
That is because in the released LOTF source, the character's unallocated stat points are not loaded.
  1. Find the function GetCharInfo(Character Charr, string UserName) in DataBase.cs.
  2. Where you see all of the Character variables being set from data returned from the mySQL query, add this:
    Code:
    Charr.StatP = ushort.Parse((string)DR["StatPoints"]);

No. It's not tested.
nTL3fTy is offline  
Old 08/16/2008, 00:07   #22
 
elite*gold: 0
Join Date: Feb 2008
Posts: 240
Received Thanks: 10
Code:
if (CurrentNPC == 666)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("Second rebirth has a serveral requirments,lets check if you got those."));
SendPacket(General.MyPackets.NPCSay("* Level 120+"));
SendPacket(General.MyPackets.NPCSay("* Already first reborned"));
SendPacket(General.MyPackets.NPCLink("Yes sir,I have the requirments", 2));
SendPacket(General.MyPackets.NPCLink("No,sorry,let me come back another time.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 2)
{
if (MyChar.Level > 120 && MyChar.RBCount < 2)
MyChar.Teleport(1700, 607, 625);
}

}
if (CurrentNPC == 667)
{
if (Control == 1)
{
if (MyChar.InventoryContains(722723, 3) && MyChar.InventoryContains(722724, 3) && MyChar.InventoryContains(722725, 3))
{
MyChar.RemoveItem(MyChar.ItemNext(722723));
MyChar.RemoveItem(MyChar.ItemNext(722724));
MyChar.RemoveItem(MyChar.ItemNext(722725));
MyChar.RemoveItem(MyChar.ItemNext(722723));
MyChar.RemoveItem(MyChar.ItemNext(722724));
MyChar.RemoveItem(MyChar.ItemNext(722725));
MyChar.RemoveItem(MyChar.ItemNext(722723));
MyChar.RemoveItem(MyChar.ItemNext(722724));
MyChar.RemoveItem(MyChar.ItemNext(722725));

MyChar.AddItem("722730-0-0-0-0-0", 0, (uint)General.Rand.Next(99999999));
}
else
{
SendPacket(General.MyPackets.NPCSay("You dont have the required items,please get them!"));
SendPacket(General.MyPackets.NPCLink("My bad,sorry.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());

}
}
}


if (CurrentNPC == 668)
{
if (Control == 1)
{
if (MyChar.InventoryContains(722730, 5))
{
SendPacket(General.MyPackets.NPCSay("Ready for stage two? This one is the fun part."));
SendPacket(General.MyPackets.NPCSay("You need to destroy an mountain of 30.000 meters,and per every kill"));
SendPacket(General.MyPackets.NPCSay(" it will sink by 30 meters,and DO NOT drop the SquamaBead during stage two. Are you ready?"));
SendPacket(General.MyPackets.NPCLink("Lets go!", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
MyChar.RemoveItem(MyChar.ItemNext(722730));
MyChar.RemoveItem(MyChar.ItemNext(722730));
MyChar.RemoveItem(MyChar.ItemNext(722730));
MyChar.RemoveItem(MyChar.ItemNext(722730));
MyChar.RemoveItem(MyChar.ItemNext(722730));
MyChar.AddItem("722727-0-0-0-0-0", 0, (uint)General.Rand.Next(99999999));




}
else
{
SendPacket(General.MyPackets.NPCSay("You dont have five PureVigors"));
SendPacket(General.MyPackets.NPCLink("Ok,sorry", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}
}
if (CurrentNPC == 669)
{
if (Control == 1)
{
if (MyChar.[COLOR="Black"]Mountain[/COLOR] >= 30000)
{
SendPacket(General.MyPackets.NPCSay("Now you are going to fight Satan. Kill them in this order :"));
SendPacket(General.MyPackets.NPCSay("First FurySatan, then BeastSatan, then Satan. Goodluck! "));
SendPacket(General.MyPackets.NPCSay("Remember: You should get the PureVigor"));
SendPacket(General.MyPackets.NPCLink("Ok,thanks,im ready!", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
MyChar.Teleport(1767, 50, 50);
MyChar.QuestMob = "Satan";
MyChar.QuestKO = 0;

}

}
}



Ok the word i have high lighted Mountain i got an error saying can't find the deffintion or somthing to it ? what to do
Bottingpunk is offline  
Old 08/16/2008, 00:13   #23
 
elite*gold: 0
Join Date: Jun 2008
Posts: 62
Received Thanks: 2
Nice... but I'm deciding not to give + thanks cuz you flamed my server... and your a hypocrite because you said my server would fail if it was lotf but your using lotf for your guide...

so /fail to you too.
ciphas009 is offline  
Old 08/16/2008, 00:22   #24
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
@nTl
Thats already added in the source,it works for me,cant get why it wont work for him

@Bottingpunk
Doublereborn?

@ciphas
Hm,please use your brain! Why are you thinking im releasing all this ****? Because im not using loft source anymore. Lol <.<
You use my codes and dont +thanks, lmao,funny. And if you cant code,and take my codes,you will fail,thats the fact,sorry .
_Emme_ is offline  
Thanks
1 User
Old 08/16/2008, 00:24   #25
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
@Bottingpunk

Oh gosh,im soo noobie. Watch the other part of my guide,forgot to add one part. Btw I never finished the quest,so you shouldnt use it either till the guide is done ==P
_Emme_ is offline  
Thanks
1 User
Old 08/16/2008, 01:17   #26
 
elite*gold: 0
Join Date: Feb 2008
Posts: 240
Received Thanks: 10
@emme no your not newbie lol. Where is the other part of your guide?
Bottingpunk is offline  
Old 08/16/2008, 02:27   #27
 
elite*gold: 0
Join Date: Jun 2008
Posts: 62
Received Thanks: 2
Quote:
Originally Posted by emildayan1 View Post
@nTl
Thats already added in the source,it works for me,cant get why it wont work for him

@Bottingpunk
Doublereborn?

@ciphas
Hm,please use your brain! Why are you thinking im releasing all this ****? Because im not using loft source anymore. Lol <.<
You use my codes and dont +thanks, lmao,funny. And if you cant code,and take my codes,you will fail,thats the fact,sorry .
Excuse me? um I can code... I can code in C#/C++ so blow it out your ***... and FYI I never said I was using your *** **** ****** code.

That I have done already >.>
ciphas009 is offline  
Old 08/16/2008, 07:49   #28
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
@Bottingpunk
I will add it later when I got time,dont atm :P

@Ciphas009
Ye ye
_Emme_ is offline  
Thanks
1 User
Old 08/16/2008, 20:54   #29
 
elite*gold: 0
Join Date: Feb 2008
Posts: 240
Received Thanks: 10
aiiet well when you get time could you add KO bored cause that one guys kinshi or ever dosn't work
Bottingpunk is offline  
Old 08/17/2008, 05:50   #30
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 913
It doesn't work for you cause your a little noob using a nooby source.
kinshi88 is offline  
Thanks
1 User
Closed Thread


Similar Threads Similar Threads
12sky Private Server Releasing Soon
02/20/2013 - 12Sky2 - 51 Replies
Ok guy's well i'm gonna start working on 12sky Private Server cus im sick of playing 12sky2 and comparing it to 12sky and how much i like 12sky better and playing other games.If anyone could help me out or can i get like a team.I would appreciate some help if possiable to speed up the making of the private server. PM Me if your interested in helping me out.
Leaving ConquerDev + Releasing my Codes here.
11/03/2008 - CO2 Private Server - 22 Replies
I leaving ConquerProgramming and releasing the most of my Work to show other ppl that i can Code. Other Releases will post soon. Flat-File Database: DataBase - Authenticate public static byte Authenticate(string Username, string Password) { if (File.Exists(System.Windows.Forms.Application.Star tupPath + @"\accounts\\" + Username + ".xml"))



All times are GMT +1. The time now is 19:12.


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.