Register for your free account! | Forgot your password?

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

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

Advertisement



for those willing to learn a bit

Discussion on for those willing to learn a bit within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2007
Posts: 226
Received Thanks: 55
for those willing to learn a bit

this is a little start for ppl willing to learn?
its the npc that levels itemlvls and quality more known as magicartisan.
why not releasing the whole npc
- some ppl here are mad becaus codes are released. and ppl don't learn from it so lets try this.

it is basic so anyone with some logic could have made this. anyway here it is

Code:
case 10062:
                    {

                        if (LinkBack == 0)
                        {
                            Text("hi, i can lvl any equipment", CSocket);
                            Link("try Level: armor", 1, CSocket);
                            Link("try Quality: armor", 2, CSocket);
                            Link("Just passing by.", 255, CSocket);
                            Face(30, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            int Location = 3;
                            if (CSocket.Client.Equipment.ContainsKey(Location))
                            {
                                Struct.ItemInfo Item = CSocket.Client.Equipment[Location];
                                Console.WriteLine(Item.ItemID + " " + Item.UID + " " + Calculation.NextEquipLevel(Item.ItemID) + " ");
                                Item.ItemID = Calculation.NextEquipLevel(Item.ItemID);
                                Database.Database.UpdateItem(Item);
                                CSocket.Send(ConquerPacket.ItemInfo(Item.UID, Item.ItemID, Item.Plus, Item.Progress, Item.Bless, Item.Enchant, Item.Soc1, Item.Soc2, Item.Dura, Item.MaxDura, Item.Position, Item.Color));
                            }
                            else
                            {
                                Text("That item is not equipped.", CSocket);
                                Link("Oups", 255, CSocket);
                                Face(30, CSocket);
                                End(CSocket);
                            }
                        }
                        else if (LinkBack == 2)
                        {
                            int Location = 3;
                            Struct.ItemInfo Item = CSocket.Client.Equipment[Location];
                            if (Calculation.Quality(Convert.ToString(Item.ItemID)) < 9)
                            {
                                Console.WriteLine(Item.ItemID + " " + Item.UID + " " + Calculation.Quality(Convert.ToString(Item.ItemID)) + " next ItemID = " + (Item.ItemID +1));
                                Item.ItemID++;
                            }
                            Database.Database.UpdateItem(Item);
                            CSocket.Send(ConquerPacket.ItemInfo(Item.UID, Item.ItemID, Item.Plus, Item.Progress, Item.Bless, Item.Enchant, Item.Soc1, Item.Soc2, Item.Dura, Item.MaxDura, Item.Position, Item.Color));
                        }
                        break;
                    }
here is also a little thing to block the item to lvl higher than your lvl
Code:
Struct.ItemInfo Item = CSocket.Client.Equipment[Location];
                                Struct.ItemData ItemDat = Nano.Items[Item.ItemID];
                                Struct.ItemData NextItemDat = Nano.Items[Calculation.NextEquipLevel(Item.ItemID)];
                                if ([COLOR="Red"]ItemDat.Level < CSocket.Client.Level[/COLOR] && [COLOR="Lime"]NextItemDat.Level <= CSocket.Client.Level[/COLOR])
                                {
                                    
                                }
ItemDat.Level < CSocket.Client.Level <-- this one will check the items lvl and your own.
NextItemDat.Level <= CSocket.Client.Level <-- this one will check the nextlvlitem lvl and your own.
these two will actualy block the item lvl if your lvl isn't high enough?
ex:
1) if you didn't add that you'll be able to lvl the items as much as you want.
2) if you add only the first check.
when you have lvl 15 armor. and your lvl is higher than 15 it will lvl it to 22.
thats why the second check will look for the next items lvl.
if your lvl is higher than these it will upgreat else it won't
yuko is offline  
Thanks
2 Users
Old 06/07/2009, 18:38   #2
 
elite*gold: 0
Join Date: Jun 2008
Posts: 97
Received Thanks: 16
but where to add this?
Struct.ItemInfo Item = CSocket.Client.Equipment[Location];
Struct.ItemData ItemDat = Nano.Items[Item.ItemID];
Struct.ItemData NextItemDat = Nano.Items[Calculation.NextEquipLevel(Item.ItemID)];
if (ItemDat.Level < CSocket.Client.Level && NextItemDat.Level <= CSocket.Client.Level)
{

}
nuhali is offline  
Old 06/07/2009, 18:45   #3
 
elite*gold: 0
Join Date: Dec 2007
Posts: 226
Received Thanks: 55
you could try to find out first
Code:
if (CSocket.Client.Equipment.ContainsKey(Location))
                            {
                                Struct.ItemInfo Item = CSocket.Client.Equipment[Location];
                                Struct.ItemData ItemDat = Nano.Items[Item.ItemID];
                                Struct.ItemData NextItemDat = Nano.Items[Calculation.NextEquipLevel(Item.ItemID)];
                                if (ItemDat.Level < CSocket.Client.Level && NextItemDat.Level <= CSocket.Client.Level)
                                {
                                    Console.WriteLine(Item.ItemID + " " + Item.UID + " " + Calculation.NextEquipLevel(Item.ItemID) + " ");
                                    Item.ItemID = Calculation.NextEquipLevel(Item.ItemID);
                                    Database.Database.UpdateItem(Item);
                                    CSocket.Send(ConquerPacket.ItemInfo(Item.UID, Item.ItemID, Item.Plus, Item.Progress, Item.Bless, Item.Enchant, Item.Soc1, Item.Soc2, Item.Dura, Item.MaxDura, Item.Position, Item.Color));
                                }
                            }
yuko is offline  
Old 06/07/2009, 18:47   #4
 
elite*gold: 0
Join Date: Jun 2008
Posts: 97
Received Thanks: 16
i cant find:P
nuhali is offline  
Old 06/07/2009, 18:58   #5
 
elite*gold: 0
Join Date: Dec 2007
Posts: 226
Received Thanks: 55
lol,
look at the first post
case 10062:
it belongs there
yuko is offline  
Old 06/07/2009, 19:02   #6
 
elite*gold: 0
Join Date: Jun 2008
Posts: 97
Received Thanks: 16
i got it:P

can u release some more new npc?
nuhali is offline  
Old 06/07/2009, 19:07   #7
 
elite*gold: 0
Join Date: Dec 2007
Posts: 226
Received Thanks: 55
this is not a release this is an exemple. you'll need to do the rest to make it work. as you could see its some basic stuff.
now what you need to do is checking the inventory for mets and dbs and make something that counts the needed stuff

but thats the easy part
yuko is offline  
Old 06/07/2009, 19:17   #8
 
elite*gold: 0
Join Date: Jun 2008
Posts: 97
Received Thanks: 16
i want to make a npc that clears your inv
look:

Code:
                    case 435: // Clear
                    {
                        if (LinkBack == 0)
                        {
                            if (CSocket.Client.Inventory.Count == 40)
                            {
                                Text("Bugged, i can clear u inv?", CSocket);
                                Link("Yes.", 1, CSocket);
                                Link("No, i dont need.", 255, CSocket);
                                Face(30, CSocket);
                                End(CSocket);
                            }
                            else
                                Text("Your inventory is full. You need to clear invectory?", CSocket);
                            Link("Yes, i need.", 1, CSocket);
                            Link("No, i still here.", 255, CSocket);
                            Face(30, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            if (CSocket.Client.Inventory.Count == 0)
                                Text("Your inventory is empty. All remove", CSocket);
                            Link("THANKS!!!", 255, CSocket);
                            Face(30, CSocket);
                            End(CSocket);
                        }
                        break;
                    }
but he dont work can u help me?
nuhali is offline  
Old 06/07/2009, 19:29   #9
 
elite*gold: 0
Join Date: Dec 2007
Posts: 226
Received Thanks: 55
yeah lol,
look good to that npc, do you see anywhere that he deletes items?
the only thing in here is text
yuko is offline  
Old 06/07/2009, 19:33   #10
 
elite*gold: 0
Join Date: Jun 2008
Posts: 97
Received Thanks: 16
hmm is this good?
if (CSocket.Client.Inventory.Count == 40)
{
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "[ERROR] Your inventory is full. You need to clear invectory?", Struct.ChatType.Top));
CSocket.Client.Inventory.Clear
return;
}
nuhali is offline  
Old 06/07/2009, 22:00   #11
 
elite*gold: 0
Join Date: Dec 2007
Posts: 226
Received Thanks: 55
i don't have much time. but here is one that will work as you want
Code:
case 435: // Clear
                    {
                        List<int> List = new List<int>();
                        if (LinkBack == 0)
                        {
                            if (CSocket.Client.Inventory.Count > 0)
                            {
                                Text("empty IV??", CSocket);
                                Link("yes", 1, CSocket);
                                Link("no", 255, CSocket);
                                Face(30, CSocket);
                                End(CSocket);
                            }
                            else
                            {
                                Text("Sorry i only can help you if you have items in you inventory.", CSocket);
                                Link("Ok, thanks", 255, CSocket);
                                Face(30, CSocket);
                                End(CSocket);
                            }
                        }
                        else if (LinkBack == 1)
                        {
                            List<int> CountList = new List<int>();
                            foreach (Struct.ItemInfo Item in CSocket.Client.Inventory.Values)
                            {
                                CountList.Add(Item.UID);
                            }
                            foreach (int UID in CountList)
                            {
                                CSocket.Client.Inventory.Remove(UID);
                                CSocket.Send(ConquerPacket.ItemUsage(UID, 255, Struct.ItemUsage.RemoveItem));
                                Database.Database.DeleteItem(UID);
                            }
                            Text("There you go New clean IV", CSocket);
                            Link("Great Thanks", 255, CSocket);
                            Face(30, CSocket);
                            End(CSocket);
                        }
                        break;
                    }
yuko is offline  
Thanks
1 User
Old 06/07/2009, 22:33   #12
 
elite*gold: 0
Join Date: Jun 2008
Posts: 97
Received Thanks: 16
Tnx Bro
nuhali is offline  
Reply


Similar Threads Similar Threads
Want to learn.
05/30/2010 - Rappelz - 1 Replies
Hi guys, i'm new on this forum and I'm looking for some help about how to program a bot, I'm a programmer (C#, VB and Java but mostly C#) but have no experience with games so if someone can tell me wich game files should I check to start I would apreciate it and maybe in the future I will be able to help you :) Thanks. Pd: sorry for my poor english.
Learn c#, look here!
05/05/2010 - CO2 Programming - 16 Replies
Okay, if you want to learn c#, then i got some good links for books, tutorials and more here. First i would recommend you to Infamousenoone's thread: http://www.elitepvpers.com/forum/co2-programming/1 48675-programming-idiots-tutorial-c.html Then here is the good links for free books for download, tutorials etc.They are pretty good and im sure they will help u alot. InformIT: Sams Teach Yourself C# in 24 Hours Contents - C# The Basics - Beta2 Visual Studio.Net with C#
Would like to learn.....
12/27/2008 - Perfect World - 1 Replies
I would like to learn how to wallhack in PW. I have used revo and KaZpa's. but i would like to learn how to do this so i cna share and not just leech -_-.:rolleyes: step by step tut would work alot. I have mainly used c++, and autoit.
I want to learn something about all these
03/26/2008 - General Gaming Discussion - 1 Replies
Hello guys, I both play games properly and I cheat in some games, but as I shall tell you, those were extremly easy hacks or ones I downloaded from the internet. The most succeseful hack I have done was some scripts for Crysis muty player a few months ago, I had the best cheating scrips ever that no one else can match. But it was easy and it was booring, since I know nothing about how coding and development of a software works. I am looking for someone that can ass me on my MSN and teach me...
im willing to learn...
11/06/2007 - Archlord - 2 Replies
well i am really interesting in packet hacking..i find this so delicate so great and i want to start with archlord..it is just that im a bit lost and i would like you guyz that know this forum to help me find out which posts i could read in order to get the idea of it..of course i want advices of how to start(u know what tutorials to read what tools to get :) ) and i have plenty of time to read and study :) thanks.. -MewMew:cool:



All times are GMT +2. The time now is 15:01.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.