Register for your free account! | Forgot your password?

You last visited: Today at 13:54

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

Advertisement



[Release]+13-+15 Npc

Discussion on [Release]+13-+15 Npc within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,789
Received Thanks: 5,310
[Release]+13-+15 Npc

Since I see alot of people using the "new" itemadd.ini that raidenx123 released, I made an npc for you guys to use. He works perfectly. He takes an item called Voucher. You can change that since its obviously not in your client/db.
Well here he is.

Code:
                                #region +13-15
                                case 7856:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("I can make your items past +12. Would yo like my help?"));
                                        GC.AddSend(Packets.NPCLink("Yeah", 250));
                                        GC.AddSend(Packets.NPCLink("Just passing by.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                        GC.Agreed = false;

                                    }
                                    else if (Control == 250)
                                    {
                                        GC.AddSend(Packets.NPCSay("Choose the equipment you want to plus."));
                                        GC.AddSend(Packets.NPCLink("Headgear", 1));
                                        GC.AddSend(Packets.NPCLink("Necklace/Bag", 2));
                                        GC.AddSend(Packets.NPCLink("Armor", 3));
                                        GC.AddSend(Packets.NPCLink("Weapon", 4));
                                        GC.AddSend(Packets.NPCLink("Shield", 5));
                                        GC.AddSend(Packets.NPCLink("Ring", 6));
                                        GC.AddSend(Packets.NPCLink("Boots", 8));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control >= 1 && Control <= 8)
                                    {
                                        Game.Item I = GC.MyChar.Equips.Get((byte)(Control));
                                        if (I.Plus != 15)
                                        {
                                            byte VoucherNeed = 0;
                                            if (I.Plus == 12)
                                                VoucherNeed = 2;
                                            else if (I.Plus == 13)
                                                VoucherNeed = 3;
                                            else if (I.Plus == 14)
                                                VoucherNeed = 4;

                                            if (!GC.Agreed)
                                            {
                                                GC.AddSend(Packets.NPCSay("You need " + VoucherNeed + " Vouchers to upgrade. Do you want it?"));
                                                GC.AddSend(Packets.NPCLink("Yes.", Control));
                                                GC.AddSend(Packets.NPCLink("Nevermind.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                                GC.Agreed = true;
                                            }
                                            else
                                            {
                                                GC.Agreed = false;
                                                if (GC.MyChar.InventoryContains(730100 , VoucherNeed))
                                                {
                                                    GC.MyChar.EquipStats((byte)(Control), false);
                                                    for (byte i = 0; i < VoucherNeed; i++)
                                                        GC.MyChar.RemoveItem(GC.MyChar.NextItem(730100 ));
                                                    if (I.Plus == 12)
                                                        I.Plus = 13;
                                                    else
                                                        I.Plus += 1;
                                                    GC.MyChar.Equips.Replace((byte)(Control), I, GC.MyChar);
                                                    GC.MyChar.EquipStats((byte)(Control), true);

                                                    GC.AddSend(Packets.NPCSay("Here you are. It's done."));
                                                    GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                                else
                                                {
                                                    GC.AddSend(Packets.NPCSay("You don't have enough Vouchers."));
                                                    GC.AddSend(Packets.NPCLink("I see.", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                            }
                                        }
                                    }

                                    break;
                                }
                                #endregion
Arcо is offline  
Thanks
13 Users
Old   #2
 
shadow8994's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 124
Received Thanks: 16
Nice realese man thanks
shadow8994 is offline  
Old   #3
 
Mehdi~'s Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 30
Received Thanks: 3
nice plz can you make me a code for upgrade to lv130-135-140 item??
Mehdi~ is offline  
Old   #4
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
good job but not added extra dmg, hp and mp :S
ramix is offline  
Old   #5
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,789
Received Thanks: 5,310
Quote:
Originally Posted by ramix View Post
good job but not added extra dmg, hp and mp :S

That's because you need the itemadd.ini that raidenx123 released.
Arcо is offline  
Thanks
2 Users
Old   #6
 
Electro51's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 46
Received Thanks: 5
the itemadd.ini bug in my source 5165 :s
Electro51 is offline  
Old   #7
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,789
Received Thanks: 5,310
Quote:
Originally Posted by Electro51 View Post
the itemadd.ini bug in my source 5165 :s

What do you mean it's a bug in your source?
Arcо is offline  
Thanks
1 User
Old   #8
 
Electro51's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 46
Received Thanks: 5

In the start
Electro51 is offline  
Thanks
1 User
Old   #9
 
elite*gold: 0
Join Date: Jan 2009
Posts: 17
Received Thanks: 0
Thanksss Man!!
slavenacev is offline  
Old   #10
 
elite*gold: 0
Join Date: Dec 2009
Posts: 6
Received Thanks: 3
@Hepatitus
That signature of the rebel gaming is horrible.
Learn your photoshop skills better.
I offered to make something for you that would be way better than that but you denied it.
Wolf* is offline  
Old   #11
 
elite*gold: 0
Join Date: Dec 2009
Posts: 6
Received Thanks: 3
Here you go Tiku, I made this for you.

Wolf* is offline  
Old   #12
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,789
Received Thanks: 5,310
Quote:
Originally Posted by Wolf* View Post
Here you go Tiku, I made this for you.


First of all: Don't double post.
Second of all: My server isn't "Rebel Conquer", that's a horrible name. Its RebelGaming
Third of all: Yours is worse than this one that ImmuneOne made me so you have no room to talk.

Oh yeah don't spam.
This isn't the thread for it.
Arcо is offline  
Thanks
2 Users
Old   #13
 
elite*gold: 0
Join Date: Dec 2009
Posts: 2
Received Thanks: 0
Quote:
Originally Posted by Electro51 View Post

In the start
same 2 me any fix for this
and how i add the Voucher Need
hulk0007 is offline  
Old   #14
 
Mjnorman's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 83
Received Thanks: 13
Quote:
Originally Posted by Hepatitis C View Post
Since I see alot of people using the "new" itemadd.ini that raidenx123 released, I made an npc for you guys to use. He works perfectly. He takes an item called Voucher. You can change that since its obviously not in your client/db.
Well here he is.

Code:
                                #region +13-15
                                case 7856:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("I can make your items past +12. Would yo like my help?"));
                                        GC.AddSend(Packets.NPCLink("Yeah", 250));
                                        GC.AddSend(Packets.NPCLink("Just passing by.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                        GC.Agreed = false;

                                    }
                                    else if (Control == 250)
                                    {
                                        GC.AddSend(Packets.NPCSay("Choose the equipment you want to plus."));
                                        GC.AddSend(Packets.NPCLink("Headgear", 1));
                                        GC.AddSend(Packets.NPCLink("Necklace/Bag", 2));
                                        GC.AddSend(Packets.NPCLink("Armor", 3));
                                        GC.AddSend(Packets.NPCLink("Weapon", 4));
                                        GC.AddSend(Packets.NPCLink("Shield", 5));
                                        GC.AddSend(Packets.NPCLink("Ring", 6));
                                        GC.AddSend(Packets.NPCLink("Boots", 8));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control >= 1 && Control <= 8)
                                    {
                                        Game.Item I = GC.MyChar.Equips.Get((byte)(Control));
                                        if (I.Plus != 15)
                                        {
                                            byte VoucherNeed = 0;
                                            if (I.Plus == 12)
                                                VoucherNeed = 2;
                                            else if (I.Plus == 13)
                                                VoucherNeed = 3;
                                            else if (I.Plus == 14)
                                                VoucherNeed = 4;

                                            if (!GC.Agreed)
                                            {
                                                GC.AddSend(Packets.NPCSay("You need " + VoucherNeed + " Vouchers to upgrade. Do you want it?"));
                                                GC.AddSend(Packets.NPCLink("Yes.", Control));
                                                GC.AddSend(Packets.NPCLink("Nevermind.", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                                GC.Agreed = true;
                                            }
                                            else
                                            {
                                                GC.Agreed = false;
                                                if (GC.MyChar.InventoryContains(730100 , VoucherNeed))
                                                {
                                                    GC.MyChar.EquipStats((byte)(Control), false);
                                                    for (byte i = 0; i < VoucherNeed; i++)
                                                        GC.MyChar.RemoveItem(GC.MyChar.NextItem(730100 ));
                                                    if (I.Plus == 12)
                                                        I.Plus = 13;
                                                    else
                                                        I.Plus += 1;
                                                    GC.MyChar.Equips.Replace((byte)(Control), I, GC.MyChar);
                                                    GC.MyChar.EquipStats((byte)(Control), true);

                                                    GC.AddSend(Packets.NPCSay("Here you are. It's done."));
                                                    GC.AddSend(Packets.NPCLink("Thanks.", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                                else
                                                {
                                                    GC.AddSend(Packets.NPCSay("You don't have enough Vouchers."));
                                                    GC.AddSend(Packets.NPCLink("I see.", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                            }
                                        }
                                    }

                                    break;
                                }
                                #endregion
Sweet bro ty for this one im gonna use it definatly
Mjnorman is offline  
Old   #15
 
NoFatChicks's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 62
Received Thanks: 0
Quote:
Originally Posted by Hepatitis C View Post
[FONT="Fixedsys"][COLOR="DarkOrchid"]I made an npc for you guys to use.[/code]
First of all, thanks bro, it really works perfectly.


Second: I was just wondering how to make this npc to Plus the Tower and Fan also. So i guess i have to add it first:
"GC.AddSend(Packets.NPCLink("HeavenFan", 9));
GC.AddSend(Packets.NPCLink("StarTower", 10));"

Then change it to:

"else if (Control >= 1 && Control <= 10)"


Seems easy.. Am i gessing right?
Alredy thanks, ; )
NoFatChicks is offline  
Reply




All times are GMT +2. The time now is 13:55.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.