[Release]+13-+15 Npc

12/19/2009 07:12 Arcо#1
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
12/19/2009 09:03 shadow8994#2
Nice realese man thanks
12/19/2009 10:08 Mehdi~#3
nice plz can you make me a code for upgrade to lv130-135-140 item??
12/19/2009 15:02 ramix#4
good job ;) but not added extra dmg, hp and mp :S
12/19/2009 19:38 Arcо#5
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.
12/19/2009 19:56 Electro51#6
the itemadd.ini bug in my source 5165 :s
12/19/2009 19:59 Arcо#7
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?
12/19/2009 20:04 Electro51#8
[Only registered and activated users can see links. Click Here To Register...]
In the start
12/20/2009 01:40 slavenacev#9
Thanksss Man!!
[Only registered and activated users can see links. Click Here To Register...]
12/20/2009 01:47 Wolf*#10
@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.
12/20/2009 02:06 Wolf*#11
Here you go Tiku, I made this for you.

[Only registered and activated users can see links. Click Here To Register...]
12/20/2009 03:33 Arcо#12
Quote:
Originally Posted by Wolf* View Post
Here you go Tiku, I made this for you.

[Only registered and activated users can see links. Click Here To Register...]

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.
12/21/2009 03:13 hulk0007#13
Quote:
Originally Posted by Electro51 View Post
[Only registered and activated users can see links. Click Here To Register...]
In the start
same 2 me any fix for this
and how i add the Voucher Need
12/21/2009 16:17 Mjnorman#14
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
01/23/2010 00:45 NoFatChicks#15
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, ; )