Register for your free account! | Forgot your password?

You last visited: Today at 00:20

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

Advertisement



[Release]NPC For Add Item +10 +11 +12

Discussion on [Release]NPC For Add Item +10 +11 +12 within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Closed Thread
 
Old   #1
 
Brun0_'s Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 31
Received Thanks: 95
[Release]NPC For Add Item +10 +11 +12

Go In Client.cs And Seach For:

if (CurrentNPC == 1010)

And Under Add

Code:
 if (CurrentNPC == 10009)
                        {
                            SendPacket(General.MyPackets.NPCSay("Hi, What Ur Wanna Add In Ur Item ?"));
                            SendPacket(General.MyPackets.NPCLink("+10", 1));
                            SendPacket(General.MyPackets.NPCLink("+11", 11));
                            SendPacket(General.MyPackets.NPCLink("+12", 21));
                            SendPacket(General.MyPackets.NPCLink("Nothing Thanks.", 255));
                            SendPacket(General.MyPackets.NPCSetFace(30));
                            SendPacket(General.MyPackets.NPCFinish());
                        }

Search Again For :

if (CurrentNPC == 1010)

And Under Add

Code:
if (CurrentNPC == 10009)
                        {
                            if (Control == 1)
                            {
                                SendPacket(General.MyPackets.NPCSay("Costs 100000 Cps. After Plusing Please Take Off The Item And Put It Back On. Which item do you want to +10?"));
                                SendPacket(General.MyPackets.NPCLink("+10 my helmet or earring.", 3));
                                SendPacket(General.MyPackets.NPCLink("+10 my necklace.", 4));
                                SendPacket(General.MyPackets.NPCLink("+10 my armor.", 5));
                                SendPacket(General.MyPackets.NPCLink("+10 my weapon.", 6));
                                SendPacket(General.MyPackets.NPCLink("+10 my ring, heavy ring.", 7));
                                SendPacket(General.MyPackets.NPCLink("+10 my boots.", 8));
                                SendPacket(General.MyPackets.NPCLink("+10 my shield.", 9));
                                SendPacket(General.MyPackets.NPCLink("Goodbye.", 255));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
                            }
                            if (Control >= 3 && Control <= 9)
                            {
                                if (MyChar.CPs >= 100000)
                                {
                                    string TheEquip = "";

                                    if (Control == 3)
                                        TheEquip = MyChar.Equips[1];
                                    if (Control == 4)
                                        TheEquip = MyChar.Equips[2];
                                    if (Control == 5)
                                        TheEquip = MyChar.Equips[3];
                                    if (Control == 6)
                                        TheEquip = MyChar.Equips[4];
                                    if (Control == 7)
                                        TheEquip = MyChar.Equips[6];
                                    if (Control == 8)
                                        TheEquip = MyChar.Equips[8];
                                    if (Control == 9)
                                        TheEquip = MyChar.Equips[5];

                                    byte Pos = 0;

                                    if (Control == 3)
                                        Pos = 1;
                                    if (Control == 4)
                                        Pos = 2;
                                    if (Control == 5)
                                        Pos = 3;
                                    if (Control == 6)
                                        Pos = 4;
                                    if (Control == 7)
                                        Pos = 6;
                                    if (Control == 8)
                                        Pos = 8;
                                    if (Control == 9)
                                        Pos = 5;


                                    string[] Splitter = TheEquip.Split('-');
                                    uint ItemId = uint.Parse(Splitter[0]);
                                    uint NewPlus = 10;
                                    uint OldPlus = uint.Parse(Splitter[1]);
                                    uint ReqPlus = 9;

                                    if (OldPlus == ReqPlus)
                                    {
                                        MyChar.CPs -= 100000;
                                        MyChar.GetEquipStats(Pos, true);
                                        MyChar.Equips[Pos] = ItemId.ToString() + "-" + NewPlus + "-" + Splitter[2] + "-" + Splitter[3] + "-" + Splitter[4] + "-" + Splitter[5];
                                        MyChar.GetEquipStats(Pos, false);

                                        MyChar.SendEquips(false);
                                        SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                                        SendPacket(General.MyPackets.AddItem((long)MyChar.Equips_UIDs[Pos], (int)ItemId, byte.Parse(Splitter[1]), byte.Parse(Splitter[2]), byte.Parse(Splitter[3]), byte.Parse(Splitter[4]), byte.Parse(Splitter[5]), Pos, 100, 100));
                                    }
                                    else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("I'm Sorry Your Item Is Not +9"));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCLink("Ok...", 255));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
                            }
                            if (Control == 11)
                            {
                                SendPacket(General.MyPackets.NPCSay("Costs 200000 Cps. After Plusing Please Take Off The Item And Put It Back On. Which item do you want to +11?"));
                                SendPacket(General.MyPackets.NPCLink("+11 my helmet or earring.", 13));
                                SendPacket(General.MyPackets.NPCLink("+11 my necklace.", 14));
                                SendPacket(General.MyPackets.NPCLink("+11 my armor.", 15));
                                SendPacket(General.MyPackets.NPCLink("+11 my weapon.", 16));
                                SendPacket(General.MyPackets.NPCLink("+11 my ring, heavy ring.", 17));
                                SendPacket(General.MyPackets.NPCLink("+11 my boots.", 18));
                                SendPacket(General.MyPackets.NPCLink("+11 my shield.", 19));
                                SendPacket(General.MyPackets.NPCLink("Goodbye.", 255));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
                            }
                            if (Control >= 13 && Control <= 19)
                            {
                                if (MyChar.CPs >= 200000)
                                {
                                    string TheEquip = "";

                                    if (Control == 13)
                                        TheEquip = MyChar.Equips[1];
                                    if (Control == 14)
                                        TheEquip = MyChar.Equips[2];
                                    if (Control == 15)
                                        TheEquip = MyChar.Equips[3];
                                    if (Control == 16)
                                        TheEquip = MyChar.Equips[4];
                                    if (Control == 17)
                                        TheEquip = MyChar.Equips[6];
                                    if (Control == 18)
                                        TheEquip = MyChar.Equips[8];
                                    if (Control == 19)
                                        TheEquip = MyChar.Equips[5];

                                    byte Pos = 0;

                                    if (Control == 13)
                                        Pos = 1;
                                    if (Control == 14)
                                        Pos = 2;
                                    if (Control == 15)
                                        Pos = 3;
                                    if (Control == 16)
                                        Pos = 4;
                                    if (Control == 7)
                                        Pos = 6;
                                    if (Control == 18)
                                        Pos = 8;
                                    if (Control == 19)
                                        Pos = 5;


                                    string[] Splitter = TheEquip.Split('-');
                                    uint ItemId = uint.Parse(Splitter[0]);
                                    uint NewPlus = 11;
                                    uint OldPlus = uint.Parse(Splitter[1]);
                                    uint ReqPlus = 10;

                                    if (OldPlus == ReqPlus)
                                    {
                                        MyChar.CPs -= 200000;
                                        MyChar.GetEquipStats(Pos, true);
                                        MyChar.Equips[Pos] = ItemId.ToString() + "-" + NewPlus + "-" + Splitter[2] + "-" + Splitter[3] + "-" + Splitter[4] + "-" + Splitter[5];
                                        MyChar.GetEquipStats(Pos, false);

                                        MyChar.SendEquips(false);
                                        SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                                        SendPacket(General.MyPackets.AddItem((long)MyChar.Equips_UIDs[Pos], (int)ItemId, byte.Parse(Splitter[1]), byte.Parse(Splitter[2]), byte.Parse(Splitter[3]), byte.Parse(Splitter[4]), byte.Parse(Splitter[5]), Pos, 100, 100));
                                    }
                                    else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("I'm Sorry Your Item Is Not +10"));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCLink("Ok...", 255));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
                            }
                            if (Control == 21)
                            {
                                SendPacket(General.MyPackets.NPCSay("Costs 300000 Cps. After Plusing Please Take Off The Item And Put It Back On. Which item do you want to +10?"));
                                SendPacket(General.MyPackets.NPCLink("+12 my helmet or earring.", 23));
                                SendPacket(General.MyPackets.NPCLink("+12 my necklace.", 24));
                                SendPacket(General.MyPackets.NPCLink("+12 my armor.", 25));
                                SendPacket(General.MyPackets.NPCLink("+12 my weapon.", 26));
                                SendPacket(General.MyPackets.NPCLink("+12 my ring, heavy ring.", 27));
                                SendPacket(General.MyPackets.NPCLink("+12 my boots.", 28));
                                SendPacket(General.MyPackets.NPCLink("+12 my shield.", 29));
                                SendPacket(General.MyPackets.NPCLink("Goodbye.", 255));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
                            }
                            if (Control >= 23 && Control <= 29)
                            {
                                if (MyChar.CPs >= 300000)
                                {
                                    string TheEquip = "";

                                    if (Control == 23)
                                        TheEquip = MyChar.Equips[1];
                                    if (Control == 24)
                                        TheEquip = MyChar.Equips[2];
                                    if (Control == 25)
                                        TheEquip = MyChar.Equips[3];
                                    if (Control == 26)
                                        TheEquip = MyChar.Equips[4];
                                    if (Control == 27)
                                        TheEquip = MyChar.Equips[6];
                                    if (Control == 28)
                                        TheEquip = MyChar.Equips[8];
                                    if (Control == 29)
                                        TheEquip = MyChar.Equips[5];

                                    byte Pos = 0;

                                    if (Control == 23)
                                        Pos = 1;
                                    if (Control == 24)
                                        Pos = 2;
                                    if (Control == 25)
                                        Pos = 3;
                                    if (Control == 26)
                                        Pos = 4;
                                    if (Control == 27)
                                        Pos = 6;
                                    if (Control == 28)
                                        Pos = 8;
                                    if (Control == 29)
                                        Pos = 5;


                                    string[] Splitter = TheEquip.Split('-');
                                    uint ItemId = uint.Parse(Splitter[0]);
                                    uint NewPlus = 12;
                                    uint OldPlus = uint.Parse(Splitter[1]);
                                    uint ReqPlus = 11;

                                    if (OldPlus == ReqPlus)
                                    {
                                        MyChar.CPs -= 300000;
                                        MyChar.GetEquipStats(Pos, true);
                                        MyChar.Equips[Pos] = ItemId.ToString() + "-" + NewPlus + "-" + Splitter[2] + "-" + Splitter[3] + "-" + Splitter[4] + "-" + Splitter[5];
                                        MyChar.GetEquipStats(Pos, false);

                                        MyChar.SendEquips(false);
                                        SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                                        SendPacket(General.MyPackets.AddItem((long)MyChar.Equips_UIDs[Pos], (int)ItemId, byte.Parse(Splitter[1]), byte.Parse(Splitter[2]), byte.Parse(Splitter[3]), byte.Parse(Splitter[4]), byte.Parse(Splitter[5]), Pos, 100, 100));
                                    }
                                    else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("I'm Sorry Your Item Is Not +11"));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCLink("Ok...", 255));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
                            }

                        }
PS: When Not to appear +10 +11 +12, Is Alone You To remove the Item and To place Again


i Help u ? Press Thanks =D
Brun0_ is offline  
Thanks
27 Users
Old 10/29/2008, 04:40   #2
 
boonhood3's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 70
Received Thanks: 3
Now i want Add to my SQL on npc what i must do
boonhood3 is offline  
Old 10/29/2008, 04:56   #3
 
Brun0_'s Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 31
Received Thanks: 95
Quote:
Originally Posted by boonhood3 View Post
Now i want Add to my SQL on npc what i must do
lolz
Brun0_ is offline  
Old 10/29/2008, 05:01   #4
 
boonhood3's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 70
Received Thanks: 3
Lolz What Sup man
boonhood3 is offline  
Old 10/29/2008, 05:03   #5
 
Brun0_'s Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 31
Received Thanks: 95
Quote:
Originally Posted by boonhood3 View Post
Lolz What Sup man
NPC Work?
Brun0_ is offline  
Old 10/29/2008, 05:08   #6
 
boonhood3's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 70
Received Thanks: 3
i Dont know Who NPC For this And Dont know where


Just Tell me How i can Add NPC on Taple on NPC For work
boonhood3 is offline  
Old 10/29/2008, 05:15   #7
 
Brun0_'s Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 31
Received Thanks: 95
Quote:
Originally Posted by boonhood3 View Post
i Dont know Who NPC For this And Dont know where


Just Tell me How i can Add NPC on Taple on NPC For work

Lol


It opens Its Mysql, It goes In Its Database, Click In npcs, From there You Goes To see: To visualize, Click There, and Later Click In Insert
And Add :




The video shows how to make a basic lab npc that charges a dragonball.

Brun0_ is offline  
Old 10/29/2008, 05:21   #8
 
boonhood3's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 70
Received Thanks: 3
TY Man ill Go to try
boonhood3 is offline  
Old 10/29/2008, 05:36   #9
 
Brun0_'s Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 31
Received Thanks: 95
Quote:
Originally Posted by boonhood3 View Post
TY Man ill Go to try
Okz =D
Brun0_ is offline  
Old 10/29/2008, 12:47   #10
 
elite*gold: 0
Join Date: Feb 2008
Posts: 240
Received Thanks: 10
WOOOOOOOOOOOOOOOOOOOOO if you cant ******* add an "NPC" then you might as ways quit cause thats just newbie
Bottingpunk is offline  
Old 10/29/2008, 13:25   #11
 
taguro's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 387
Received Thanks: 64
This thread was communicated in totally bad English. It amazes me that people can understand this.
taguro is offline  
Old 10/30/2008, 20:09   #12
 
xxFastBoy's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 145
Received Thanks: 8
Not work....
But ur Cps will be lose...
xxFastBoy is offline  
Old 10/30/2008, 21:18   #13
 
Brun0_'s Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 31
Received Thanks: 95
Quote:
Originally Posted by bela144 View Post
Not work....
But ur Cps will be lose...
lol.. re equip item -.-
Brun0_ is offline  
Old 12/23/2008, 20:14   #14
 
elite*gold: 0
Join Date: Aug 2006
Posts: 55
Received Thanks: 2
you know Brun0 i do that all the time and apparently the Npc doesn't talk to me and the message then keep saying tried talking to Npc 10009
liljason019 is offline  
Old 01/16/2009, 19:41   #15
 
elite*gold: 0
Join Date: Dec 2007
Posts: 87
Received Thanks: 7
Have metod for get +9 items ?
adelma is offline  
Closed Thread


Similar Threads Similar Threads
[Suche] Komplette item.eix/epk, icon.eix/epk, item proto und item list
12/25/2010 - Metin2 Private Server - 6 Replies
Hey =) Wie die Überschrift schon sagt, suche ich eine komplette item.eix/epk, icon.eix/epk, item proto und item list am liebsten noch von den Waffen von .darki und den ganzen neuen Rüstungen/Schilden/Helmen, da ich überhaupt nicht weiß wie man dass zB mit der item proto macht und wenn ich sie einfach nur ersetze, wie zB durch die "Waffen" item proto von .darki sind die ganzen neuen Rüstungen weg .... Ich hoffe irgendjemand könnte das machen, weil es bestimmt nicht nur für mich hilfreich ist...
[RELEASE]Mob-Spawn-Item
10/06/2010 - Metin2 PServer Guides & Strategies - 17 Replies
Hey Com, ich wollte hier mal eine Quest releasen, die ich schon sehr lange benutze! Es ist eine Quest für ein Item, das ein beliebiges Monster spawnen kann! Es ist praktisch für eure Team Mitglieder ohne GM Rechte(nur ein Beispiel) Es funktioniert folgendermaßen: Rechtsklick -> Fenster öffnet sich mit "Bestätigen" und "Abbrechen" -> "Bestätigen" -> Neues Fenster mit Input-Feld -> Monster ID eintragen -> OK -> Monster wird gespawnt...
[Release]Make +20,+30,+40,+50,+60,+70,+80,+90,+100,+150,+200,+25 5 and +254 item
01/17/2010 - EO PServer Guides & Releases - 18 Replies
This Second My release, this sql file to make +20,+30,+40,+50,+60,+70,+80,+90,+100,+150,+200 and +255 item INSERT INTO `cq_action` VALUES ('19000100', '19000101', '19000104', '0508', '0', '7 0 50'); INSERT INTO `cq_action` VALUES ('19000101', '19000110', '19000102', '1001', '0', 'profession == 10'); INSERT INTO `cq_action` VALUES ('19000102', '19000120', '19000103', '1001', '0', 'profession == 20'); INSERT INTO `cq_action` VALUES ('19000103', '19000130', '0000', '1001', '0',...
[RELEASE]V12 Item/Mob Listen
12/07/2008 - Flyff PServer Guides & Releases - 6 Replies
V12 Item und Monster Listen Hiermit release ich die V12 Monster/Item Listen für die V12DB von stylaflow Link zur DB http://www.elitepvpers.com/forum/flyff-pserver-dis cussions-questions/180223-v12-released-db-neu.html Link zur Item-Liste: Hier
[Release] new Item lists
10/03/2008 - Kal Online - 13 Replies
here 4 U Contains all items till: 23.09.2008 Contains all item names till: 23.09.2008 Edit ----------------------------------------------- Updated name list Updated intem list



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


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.