Register for your free account! | Forgot your password?

You last visited: Today at 15:43

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

Advertisement



[Release] Bless NPC (5165)

Discussion on [Release] Bless NPC (5165) within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
[Release] Bless NPC (5165)

Hi hi!

Just change the npc id and it will work fine : D

Code:
#region Ethereal
                            case ID HERE:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("I can set your itens bless, for some tortoise gens super."));
                                        GC.AddSend(Packets.NPCLink("I want upgrade it.", 1));
                                        GC.AddSend(Packets.NPCLink("Just passing by.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                        GC.Agreed = false;
                                    }
                                    else if (Control == 1)
                                    {
                                        GC.AddSend(Packets.NPCSay("Choose the equipment you want to set bless."));
                                        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.Bless != 7)
                                        {
                                            byte TortoiseNeed = 0;
                                            if (I.Bless == 0)
                                                TortoiseNeed = 5;
                                            else if (I.Bless == 1)
                                                TortoiseNeed = 1;
                                            else if (I.Bless == 3)
                                                TortoiseNeed = 3;
                                            else if (I.Bless == 5)
                                                TortoiseNeed = 5;

                                            if (!GC.Agreed)
                                            {
                                                GC.AddSend(Packets.NPCSay("You need " + TortoiseNeed + " Super Tortoises to upgrade. Do you want it?"));
                                                GC.AddSend(Packets.NPCSay("Your item current bless is " + I.Bless + "."));
                                                if (I.Bless !=0)
                                                      GC.AddSend(Packets.NPCSay("It will be " + (I.Bless + 2) + "."));
                                                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(700073, TortoiseNeed))
                                                {
                                                    GC.MyChar.EquipStats((byte)(Control), false);
                                                    for (byte i = 0; i < TortoiseNeed; i++)
                                                        GC.MyChar.RemoveItem(GC.MyChar.NextItem(700073));
                                                    if (I.Bless == 0)
                                                        I.Bless = 1;
                                                    else
                                                        I.Bless += 2;
                                                    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 Tortoise Gems."));
                                                    GC.AddSend(Packets.NPCLink("I see.", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                            }
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("You cannot upgrade an item's bless which is already at maximum."));
                                            GC.AddSend(Packets.NPCLink("I see", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            #endregion
12tails is offline  
Thanks
13 Users
Old 11/28/2009, 17:53   #2
 
shadow8994's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 124
Received Thanks: 16
nice
shadow8994 is offline  
Old 11/28/2009, 17:55   #3
 
sawickas's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 617
Received Thanks: 38
Quote:
Originally Posted by shadow8994 View Post
nice
Asilas Tu esi Sory For OfTopick
sawickas is offline  
Old 11/28/2009, 17:58   #4
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 506
Thanks for contributing this to the forum!
Basser is offline  
Thanks
2 Users
Old 11/28/2009, 18:09   #5
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
Quote:
Originally Posted by Smythe94 View Post
Thanks for contributing this to the forum!
: D
12tails is offline  
Old 11/28/2009, 19:47   #6
 
|BasicCoder|'s Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 84
Received Thanks: 41
Quote:
Originally Posted by 12tails View Post
Hi hi!

Just change the npc id and it will work fine : D
12tails i Changed the NPC id but it doesent work o.o
|BasicCoder| is offline  
Old 11/29/2009, 11:20   #7
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
what do you got?? lol....
12tails is offline  
Old 11/29/2009, 18:47   #8
 
elite*gold: 0
Join Date: Jul 2007
Posts: 30
Received Thanks: 0
the id is 35015
minakaram is offline  
Old 11/30/2009, 06:27   #9
 
sawickas's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 617
Received Thanks: 38
Full woark,thanks!
sawickas is offline  
Old 12/03/2009, 12:14   #10
 
elite*gold: 0
Join Date: Oct 2009
Posts: 17
Received Thanks: 7
i can't get bless @ Headgear any help i have change it to 7 or 9 link work but can't bless item
7upp is offline  
Old 01/11/2010, 16:58   #11
 
elite*gold: 0
Join Date: May 2006
Posts: 52
Received Thanks: 25
Quote:
Originally Posted by 7upp View Post
i can't get bless @ Headgear any help i have change it to 7 or 9 link work but can't bless item
In to the code mofify what i have chanded with red
#region Ethereal
case 35015:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("I can set your itens bless, for some tortoise gens super."));
GC.AddSend(Packets.NPCLink("I want upgrade it.", 10));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
GC.Agreed = false;
}
else if (Control == 10)
{
GC.AddSend(Packets.NPCSay("Choose the equipment you want to set bless."));
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.Bless != 7)
{
byte TortoiseNeed = 0;
if (I.Bless == 0)
TortoiseNeed = 5;
else if (I.Bless == 1)
TortoiseNeed = 1;
else if (I.Bless == 3)
TortoiseNeed = 3;
else if (I.Bless == 5)
TortoiseNeed = 5;

if (!GC.Agreed)
{
GC.AddSend(Packets.NPCSay("You need " + TortoiseNeed + " Super Tortoises to upgrade. Do you want it?"));
GC.AddSend(Packets.NPCSay("Your item current bless is " + I.Bless + "."));
if (I.Bless != 0)
GC.AddSend(Packets.NPCSay("It will be " + (I.Bless + 2) + "."));
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(700073, TortoiseNeed))
{
GC.MyChar.EquipStats((byte)(Control), false);
for (byte i = 0; i < TortoiseNeed; i++)
GC.MyChar.RemoveItem(GC.MyChar.NextItem(700073));
if (I.Bless == 0)
I.Bless = 1;
else
I.Bless += 2;
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 Tortoise Gems."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
}
else
{
GC.AddSend(Packets.NPCSay("You cannot upgrade an item's bless which is already at maximum."));
GC.AddSend(Packets.NPCLink("I see", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
intel_ro is offline  
Thanks
1 User
Old 03/30/2010, 14:54   #12
 
elite*gold: 0
Join Date: May 2008
Posts: 15
Received Thanks: 1
thank you
zoza1 is offline  
Old 08/28/2010, 17:06   #13
 
elite*gold: 0
Join Date: Jul 2010
Posts: 1
Received Thanks: 0
thank you
Rockarul is offline  
Reply


Similar Threads Similar Threads
[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]Enchant,Bless And Compose NPC
11/10/2009 - CO2 PServer Guides & Releases - 13 Replies
Go In Client.cs And Search For: if (CurrentNPC == 1010) Under Add: 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));
[RELEASE]2nd reborn NPC With bless skill
10/14/2009 - CO2 PServer Guides & Releases - 5 Replies
#REMOVED READ!!! NPC dialog: #REMOVED CAuSE OF BUGS It only worked in the source im using, so i will release it later :) NPC control:
[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 15:43.


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