Register for your free account! | Forgot your password?

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

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

Advertisement



[HELP] BlacksmithLee (CoEmu v2)

Discussion on [HELP] BlacksmithLee (CoEmu v2) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
[HELP] BlacksmithLee (CoEmu v2)

hello its me again asking for help kkkkkkkkkkkkkk...

well here are my codes... its basic from LOTF but i'm getting error..

this i put on character.cs:

Code:
        public uint[] Equips_UIDs = new uint[10];
        public string[] Equips = new string[10];
and Npc:

Code:
                case 1010:
                    {
                        if (LinkBack == 0)
                        {
                            Text("Hello, i can make the first and the seccond socket to an item for CPs!! chose what do you wan't!", CSocket);
                            Link("1ST-Socket", 1, CSocket);
                            Link("2ND-Socket", 2, CSocket);
                            Link("Just passing by", 255, CSocket);
                            Face(30, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            Text("Choose what do you want the first socket to be created in.",CSocket);
                            Link("Headgear", 3,CSocket);
                            Link("Necklace/ bag", 4,CSocket);
                            Link("Armor/ gown", 5,CSocket);
                            Link("Ring/ bracelet", 6,CSocket);
                            Link("Boots", 7,CSocket);
                            Link("Just passing by.", 255,CSocket);
                            Face(30,CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 2)
                        {
                            Text("Choose what do you want the second socket to be created in.", CSocket);
                            Link("Headgear", 3, CSocket);
                            Link("Necklace/ bag", 4, CSocket);
                            Link("Armor/ gown", 5, CSocket);
                            Link("Ring/ bracelet", 6, CSocket);
                            Link("Boots", 7, CSocket);
                            Link("Just passing by.", 255, CSocket);
                            Face(30, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 3 || LinkBack == 4 || LinkBack == 5 || LinkBack == 6 || LinkBack == 7)
                        {
                            int into = 0;

                            if (LinkBack == 3 && CSocket.Client.Equips[1] != null && CSocket.Client.Equips[1] != "0")
                                into = 1;
                            else if (LinkBack == 4 && CSocket.Client.Equips[2] != null && CSocket.Client.Equips[2] != "0")
                                into = 2;
                            else if (LinkBack == 5 && CSocket.Client.Equips[3] != null && CSocket.Client.Equips[3] != "0")
                                into = 3;
                            else if (LinkBack == 6 && CSocket.Client.Equips[6] != null && CSocket.Client.Equips[6] != "0")
                                into = 6;
                            else if (LinkBack == 7 && CSocket.Client.Equips[8] != null && CSocket.Client.Equips[8] != "0")
                                into = 8;
                            else
                                return;

                            if (CSocket.Client.CPs > 2580)
                            {
                                int soc1 = 0;
                                string[] item = CSocket.Client.Equips[into].Split('-');
                                if (item[4] != "0")
                                    return;

                                CPs(-2580, CSocket);
                                soc1 = 1;

                                item[4] = "255";

                                CSocket.Client.Equips[into] = item[0] + "-" + item[1] + "-" + item[2] + "-" + item[3] + "-" + item[4] + "-" + item[5];
                                CSocket.Send(ConquerPacket.AddItem((long)CSocket.Client.Equips_UIDs[into], int.Parse(item[0]), byte.Parse(item[1]), byte.Parse(item[2]), byte.Parse(item[3]), byte.Parse(item[4]), byte.Parse(item[5]), (byte)into, 100, 100));
                            }
                            else
                            {
                                Text("You don't have 2580 CPs!", CSocket);
                                Link("I see.", 255,CSocket);
                                Face(30,CSocket);
                                End(CSocket);
                            }
                        }

                        else if (LinkBack == 8 || LinkBack == 9 || LinkBack == 10 || LinkBack == 11 || LinkBack == 12)
                        {
                            int into = 0;

                            if (LinkBack == 8 && CSocket.Client.Equips[1] != null && CSocket.Client.Equips[1] != "0")
                                into = 1;
                            else if (LinkBack == 9 && CSocket.Client.Equips[2] != null && CSocket.Client.Equips[2] != "0")
                                into = 2;
                            else if (LinkBack == 10 && CSocket.Client.Equips[3] != null && CSocket.Client.Equips[3] != "0")
                                into = 3;
                            else if (LinkBack == 11 && CSocket.Client.Equips[6] != null && CSocket.Client.Equips[6] != "0")
                                into = 6;
                            else if (LinkBack == 12 && CSocket.Client.Equips[8] != null && CSocket.Client.Equips[8] != "0")
                                into = 8;
                            else
                                return;

                            if (CSocket.Client.CPs > 13230)
                            {
                                int soc2 = 0;
                                string[] item = CSocket.Client.Equips[into].Split('-');
                                if (item[5] != "0" || item[4] == "0")
                                    return;

                                CPs(-13230, CSocket);
                                soc2 = 2;

                                item[5] = "255";

                                CSocket.Client.Equips[into] = item[0] + "-" + item[1] + "-" + item[2] + "-" + item[3] + "-" + item[4] + "-" + item[5];
                                CSocket.Send(ConquerPacket.AddItem((long)CSocket.Client.Equips_UIDs[into], int.Parse(item[0]), byte.Parse(item[1]), byte.Parse(item[2]), byte.Parse(item[3]), byte.Parse(item[4]), byte.Parse(item[5]), (byte)into, 100, 100));
                            }
                            else
                            {
                                Text("You don't have the 13230 CPs!", CSocket);
                                Link("I see.", 255, CSocket);
                                Face(30, CSocket);
                            }
                        }
                        break;
                    }
if someone wanna help i will be here for some more time.... tkx and sorry for ask ^^

Edit:

forgot the image..
Attached Images
File Type: jpg imagem.JPG (126.7 KB, 10 views)
12tails is offline  
Old 08/10/2009, 17:53   #2
 
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
the ConquerPacket doesn't have an AddItem packet and u ddnt define it at ur NpcTalk

but there are some things at your code needs to be modified

1 :-Equips are already there CSocket.Client.Equipment ,so u don't need to state them again

2:-your first socket and second socket links are the same (LinkBack 1 and 2) they both have the links 3-7 i think u meant to make them 3-7 for first socket and 8-12 for the second

3-u can replace "CSocket.Client.Equipment[2] != null && CSocket.Client.Equips[2] != "0"" with "CSocket.Client.Equipment.ContainsKey(2)"

4-Soc1=1 and Soc2=2 will put a Phoenix Gem to the item sockets they suppose to be Soc1=255 ,Soc2=255
samehvan is offline  
Old 08/11/2009, 02:32   #3
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
hmmm... thankx....

but i don't have time to do it now.... i will do it latter need to work.. cya!
12tails is offline  
Reply


Similar Threads Similar Threads
[Release] BlacksmithLee (CoEmu v2)
08/27/2009 - CO2 PServer Guides & Releases - 7 Replies
See the next post!
[Help]CoEmu v2
08/10/2009 - CO2 Private Server - 3 Replies
I need help with CoEmu v2. I did everything that andy said in his guide but when I run CoEmu v2 GameServer it loads a bunch of stuff and then it says "Access denied for user 'coemuorg'@'localhost' <using password: YES">. Maybe I did something wrong, or I missed something? I did this yesterday so I don't remember exactly everything I changed or I would write it here. :confused: http://i725.photobucket.com/albums/ww257/moneygan g1111/Error2.jpg
No Blacksmithlee in my sorce
07/21/2009 - CO2 Private Server - 7 Replies
Hi Plez Help Me Blacksmithlee is not in my source 5065 can any one give me its file plez
BlacksmithLee
07/21/2009 - CO2 Private Server - 3 Replies
Some people needed help to add BlacksmithLee to their database so here it is... All you need to do for BlackSmithLee is run this "BlacksmithLee.sql" and he will be there! its not completely translated but it works. Please push thanks =D
[HELP] CoEmu v2 GW
05/31/2009 - CO2 Private Server - 5 Replies
Hey, how i can open GW in CoEmu v2 source by andy? Thanks for help.



All times are GMT +1. The time now is 20:57.


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