Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 12:31

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

Advertisement



[Release]Enchant,Bless And Compose NPC

Discussion on [Release]Enchant,Bless And Compose NPC within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
Brun0_'s Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 31
Received Thanks: 95
[Release]Enchant,Bless And Compose NPC

Go In Client.cs And Search For:

if (CurrentNPC == 1010)

Under Add:

Code:
                        if (CurrentNPC == 278)
                        {
                            SendPacket(General.MyPackets.NPCSay("This machine here can compose, bless and enchant your items. Appearently it can only compose, because it is broken."));
                            SendPacket(General.MyPackets.NPCLink("Compose", 1));
                            SendPacket(General.MyPackets.NPCLink("Enchant", 2));
                            SendPacket(General.MyPackets.NPCLink("Bless", 10));
                            SendPacket(General.MyPackets.NPCLink("No Thanks", 255));
                            SendPacket(General.MyPackets.NPCSetFace(30));
                            SendPacket(General.MyPackets.NPCFinish());
                        }

Now Search Again For :


if (CurrentNPC == 1010)

And Under Add:

Code:
                        if (CurrentNPC == 278)//enchant bless and compose
                        {
                            if (Control == 1)
                            {
                                SendPacket(General.MyPackets.ETCPacket(MyChar, 1));
                            }
                            if (Control == 2)
                            {
                                SendPacket(General.MyPackets.NPCSay("Costs 100 Cps. After Enchanting Please Take Off The Item And Put It Back On. Which item do you want to Enchant?"));
                                SendPacket(General.MyPackets.NPCLink("Enchant helmet or earring.", 3));
                                SendPacket(General.MyPackets.NPCLink("Enchant necklace.", 4));
                                SendPacket(General.MyPackets.NPCLink("Enchant armor.", 5));
                                SendPacket(General.MyPackets.NPCLink("Enchant weapon.", 6));
                                SendPacket(General.MyPackets.NPCLink("Enchant ring, heavy ring.", 7));
                                SendPacket(General.MyPackets.NPCLink("Enchant boots.", 8));
                                SendPacket(General.MyPackets.NPCLink("Enchant 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 >= 100)
                                {
                                    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;

                                    MyChar.CPs -= 100;
                                    string[] Splitter = TheEquip.Split('-');
                                    uint ItemId = uint.Parse(Splitter[0]);
                                    uint OldEnchant = uint.Parse(Splitter[3]);
                                    uint NewEnchant = (uint)General.Rand.Next(1, 255);//fix

                                    if (OldEnchant <= NewEnchant)
                                    {

                                        MyChar.GetEquipStats(Pos, true);
                                        MyChar.Equips[Pos] = ItemId.ToString() + "-" + Splitter[1] + "-" + Splitter[2] + "-" + NewEnchant + "-" + Splitter[4] + "-" + Splitter[5];
                                        MyChar.GetEquipStats(Pos, false);

                                        MyChar.SendEquips(false);
                                        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 The New enchantment was smaller than your old one."));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCLink("Ok...", 255));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
                            }
                            if (Control == 10)
                            {
                                SendPacket(General.MyPackets.NPCSay("Costs 100 Cps. After Blessing Please Take Off The Item And Put It Back On. Which item do you want to Bless?"));
                                SendPacket(General.MyPackets.NPCLink("Bless helmet or earring.", 13));
                                SendPacket(General.MyPackets.NPCLink("Bless necklace.", 14));
                                SendPacket(General.MyPackets.NPCLink("Bless armor.", 15));
                                SendPacket(General.MyPackets.NPCLink("Bless weapon.", 16));
                                SendPacket(General.MyPackets.NPCLink("Bless ring, heavy ring.", 17));
                                SendPacket(General.MyPackets.NPCLink("Bless boots.", 18));
                                SendPacket(General.MyPackets.NPCLink("Bless 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 >= 100)
                                {
                                    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 == 17)
                                        Pos = 6;
                                    if (Control == 18)
                                        Pos = 8;
                                    if (Control == 19)
                                        Pos = 5;

                                    MyChar.CPs -= 100;
                                    string[] Splitter = TheEquip.Split('-');
                                    uint ItemId = uint.Parse(Splitter[0]);
                                    uint NewBless = (uint)General.Rand.Next(1, 7);
                                    uint OldBless = uint.Parse(Splitter[2]);

                                    if (NewBless > OldBless)
                                    {

                                        MyChar.GetEquipStats(Pos, true);
                                        MyChar.Equips[Pos] = ItemId.ToString() + "-" + Splitter[1] + "-" + NewBless + "-" + Splitter[3] + "-" + Splitter[4] + "-" + Splitter[5];
                                        MyChar.GetEquipStats(Pos, false);
                                        MyChar.SendEquips(false);

                                        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 The New Bless was smaller than your old one."));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCLink("Ok...", 255));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
                            }
                        }

i Help u ? Press Thanks =D
Brun0_ is offline  
Thanks
29 Users
Old 10/29/2008, 05:13   #2
 
elite*gold: 0
Join Date: Jan 2008
Posts: 145
Received Thanks: 91
nice release!
pauldexter is offline  
Thanks
1 User
Old 10/29/2008, 05:14   #3
 
lolex's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 46
Received Thanks: 0
OK OK, before you thank proved this code.

If role, you give thanks
lolex is offline  
Old 10/29/2008, 16:36   #4
 
$HaDoW's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 285
Received Thanks: 78
old....
btw he copyed that from some scource he made noting -_-
$HaDoW is offline  
Old 10/29/2008, 16:39   #5
 
elite*gold: 0
Join Date: Feb 2008
Posts: 217
Received Thanks: 26
pretty kewl.. i used it
demonscim is offline  
Old 10/29/2008, 16:58   #6
 
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
added to my all-in-1 thread
XxArcherMasterxX is offline  
Old 10/29/2008, 18:30   #7
 
elite*gold: 0
Join Date: Dec 2007
Posts: 618
Received Thanks: 213
too hard for u to use the "enchant" packet?
alexbigfoot is offline  
Old 04/20/2009, 15:36   #8
 
elite*gold: 0
Join Date: Apr 2007
Posts: 46
Received Thanks: 0
Bruno, tem como colocar bless com super tortoise e enchated com gemas? vlw

Bruno, is to put bless with "super tortoise" and enchated with gems? VLW

Isso fez dar erro em todo o meu client.cs!!!

This error has given throughout my client.cs!
auraboreal is offline  
Old 04/21/2009, 10:11   #9
 
CTNetCom's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 48
Received Thanks: 7
Its not working for me..Is it I have to add something else?Ima using PowerSource
CTNetCom is offline  
Old 11/08/2009, 20:38   #10
 
elite*gold: 0
Join Date: Sep 2009
Posts: 8
Received Thanks: 0
where is client.cs i cant find it .....
omom248 is offline  
Old 11/08/2009, 21:21   #11
 
.Matt's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 145
Received Thanks: 34
Quote:
Originally Posted by omom248 View Post
where is client.cs i cant find it .....
Then you probably should just delete the source and go play a binaries.
.Matt is offline  
Old 11/09/2009, 13:01   #12
 
elite*gold: 0
Join Date: Nov 2009
Posts: 149
Received Thanks: 22
Isn't this a little cheap when making belss and enchantment?
#*=DarkAngeL=*# is offline  
Old 11/09/2009, 22:26   #13
 
elite*gold: 0
Join Date: Aug 2008
Posts: 889
Received Thanks: 199
Nice release
zbest is offline  
Old 11/10/2009, 11:20   #14
 
~*NewDuuDe*~'s Avatar
 
elite*gold: 111
Join Date: Feb 2008
Posts: 2,161
Received Thanks: 646
WTF was the point of starting a discussion in a one year old thread?
~*NewDuuDe*~ is offline  
Reply


Similar Threads Similar Threads
[Release] Bless NPC (5165)
08/28/2010 - CO2 PServer Guides & Releases - 12 Replies
Hi hi! Just change the npc id and it will work fine : D #region Ethereal case ID HERE: { if (Control == 0) { GC.AddSend(Packets.NPCSay("I can set your itens bless, for some tortoise gens super."));
[Release]Composer,Enchant,Bless with +10 - +12 function
03/04/2010 - CO2 PServer Guides & Releases - 5 Replies
Hello everyone. I know no one uses loft anymore but i was bored so i picked up a loft source and figured how to use 2 npc into 1. The compose,enchant,bless npc and the +10 - +12 npc. I will release it even though i know no one will use it unless they have loft still or they have it and don't no how to do this. Ok here is the code. Find Npc id 278 and replace the whole thing with this code Next find again npc id 278 and replace the whole with this one just as you did the first time
[RELEASE]2nd reborn NPC With bless skill
11/14/2009 - CO2 PServer Guides & Releases - 35 Replies
#REMOVED
[Release]NPC that learns you bless skill
11/14/2009 - CO2 PServer Guides & Releases - 21 Replies
#REMOVED FOR FLAMING
[Release] Bless Skill (LuckyTime)
07/26/2009 - CO2 PServer Guides & Releases - 79 Replies
Go here: http://www.elitepvpers.com/forum/co2-pserver-discus sions-questions/203219-release-extremely-basic-but -working-bugless-c-source.html Its good, use it! Its your guys' lucky day, here is the BASE code for Bless and LuckyTime. Created 100% by myself, and yes parts were leaked on E*Pvp.



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


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.