Register for your free account! | Forgot your password?

You last visited: Today at 03:14

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

Advertisement



[Release] BlessNPC (CoEmu v2)

Discussion on [Release] BlessNPC (CoEmu v2) 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: 773
Received Thanks: 441
[Release] BlessNPC (CoEmu v2)

hello...

this npc is the one who make itens -1, -3, -5, -7.... The bless appears after you equip the item again!!, the item goes to your bag and them will show the bless when you equip it!


NPC:
Code:
                case 435:
                    {
                        if (LinkBack == 0)
                        {
                            Text("Hello, i can make bless in your items, for CPs, -1 = 3900, -3 = 780, -5 = 2340, and -7 = 3900.", CSocket);
                            Link("Make items -1 to -7", 20, CSocket);
                            Link("Make HeavenFan", 10, CSocket);
                            Link("Make StarTwoer", 11, CSocket);
                            Link("Nevermind", 255, CSocket);
                            Face(55, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 20)
                        {
                            Text("Choose what item!", CSocket);
                            Link("HeadGear", 1, CSocket);
                            Link("Necklace/Bag", 2, CSocket);
                            Link("Armor/Coat/Robe", 3, CSocket);
                            Link("Weapons", 4, CSocket);
                            Link("Shield/Left-Weapon", 5, CSocket);
                            Link("Ring/Bracelete", 6, CSocket);
                            Link("Boots", 8, CSocket);
                            Link("Nevermind", 255, CSocket);
                            Face(55, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack > 0 && LinkBack < 12)
                        {
                            if (CSocket.Client.Equipment.ContainsKey(LinkBack))
                            {
                                int ItemId = CSocket.Client.Equipment[LinkBack].ItemID; byte Plus = (byte)CSocket.Client.Equipment[LinkBack].Plus;
                                foreach (Struct.ItemInfo EquipItem in CSocket.Client.Equipment.Values)
                                {
                                    if (EquipItem.Bless < 1)
                                    {
                                        CPs(-3900, CSocket);
                                        EquipItem.Bless = 1;
                                        ItemUnequip(EquipItem.Position, EquipItem.UID, CSocket);
                                        ItemEquip(EquipItem.Position, EquipItem.UID, CSocket);
                                        CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CPs, Struct.StatusTypes.InvCPoints));
                                        CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You have make an item -1!", Struct.ChatType.Top));
                                        break;
                                    }
                                    else if (EquipItem.Bless == 1)
                                    {
                                        CPs(-780, CSocket);
                                        EquipItem.Bless = 3;
                                        ItemUnequip(EquipItem.Position, EquipItem.UID, CSocket);
                                        ItemEquip(EquipItem.Position, EquipItem.UID, CSocket);
                                        CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CPs, Struct.StatusTypes.InvCPoints));
                                        CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You have make an item -3!", Struct.ChatType.Top));
                                        break;
                                    }
                                    else if (EquipItem.Bless == 3)
                                    {
                                        CPs(-2340, CSocket);
                                        EquipItem.Bless = 5;
                                        ItemUnequip(EquipItem.Position, EquipItem.UID, CSocket);
                                        ItemEquip(EquipItem.Position, EquipItem.UID, CSocket);
                                        CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CPs, Struct.StatusTypes.InvCPoints));
                                        CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You have make an item -5!", Struct.ChatType.Top));
                                        break;
                                    }
                                    else if (EquipItem.Bless == 5)
                                    {
                                        CPs(-3900, CSocket);
                                        EquipItem.Bless = 7;
                                        ItemUnequip(EquipItem.Position, EquipItem.UID, CSocket);
                                        ItemEquip(EquipItem.Position, EquipItem.UID, CSocket);
                                        CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CPs, Struct.StatusTypes.InvCPoints));
                                        CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You have make an item -7!", Struct.ChatType.Top));
                                        break;
                                    }
                                    else if (EquipItem.Bless == 7)
                                    {
                                        Text("Your item already have the max bless!", CSocket);
                                        Link("Yay!", 255, CSocket);
                                        Face(55, CSocket);
                                        End(CSocket);
                                    }
                                    else
                                    {
                                        Text("Your item must have the required bless!", CSocket);
                                        Link("Sorry", 255, CSocket);
                                        Face(55, CSocket);
                                        End(CSocket);
                                    }
                                }
                            }
                        }
                        break;
                    }
sorry for exe bug.... already fixed!
12tails is offline  
Thanks
4 Users
Old 08/22/2009, 00:41   #2
 
coreymills's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
nice keep it up 12tails
coreymills is offline  
Old 08/22/2009, 00:56   #3
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
Quote:
if (EquipItem.Bless > 0)
CPs(-780 * EquipItem.Bless, CSocket);
else
CPs(-3900, CSocket);

if (EquipItem.Bless != 0 && EquipItem.Bless < 7)
EquipItem.Bless += 2;
else if (EquipItem.Bless == 0)
EquipItem.Bless = 1;


ItemUnequip(EquipItem.Position, EquipItem.UID, CSocket);

ItemEquip(EquipItem.Position, EquipItem.UID, CSocket);

CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CPs, Struct.StatusTypes.InvCPoints));

CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "Your item is now -" + EquipItem.Bless + " !",Struct.ChatType.Top));
Dunno if it'll work.
_Emme_ is offline  
Old 08/22/2009, 01:00   #4
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 773
Received Thanks: 441
work... i already tested .... ^^ the only thing u need to make is re-equip and done !

ty for the :

Code:
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "Your item is now -" + EquipItem.Bless + " !",Struct.ChatType.Top));
12tails is offline  
Old 08/22/2009, 03:55   #5
 
elite*gold: 0
Join Date: Nov 2006
Posts: 65
Received Thanks: 2
when i click on my npc "Ethereal," i get exe error and get disconnected.



FIXED........working now
killerbee is offline  
Old 08/22/2009, 08:07   #6
 
elite*gold: 0
Join Date: Aug 2009
Posts: 104
Received Thanks: 7
me 2
1supertao is offline  
Old 08/22/2009, 08:36   #7
 
elite*gold: 0
Join Date: Oct 2006
Posts: 75
Received Thanks: 17
same here, unable to accept data from client
the problem is that there are to many dialogue option for just 1 window so u need to make 2 windows for the npc dialogue and acctualy add a cps condition so u wont get cps error hehe, so i guess ill release it here for u guys

Code:
                case npc id://  bless npc
                    {
                        if (LinkBack == 0)
                        {
                            Text("Hello, i can make bless in your items, for CPs, -1 = 3900, -3 = 780, -5 = 2340, and -7 = 3900.", CSocket);
                            Link("HeadGear", 1, CSocket);
                            Link("Necklace/Bag", 2, CSocket);
                            Link("Armor/Coat/Robe", 3, CSocket);
                            Link("Weapons", 4, CSocket);
                            Link("Shield/Left-Weapon", 5, CSocket);
                            Link("Ring/Bracelete", 6, CSocket);
                            Link("Nevermind", 255, CSocket);
                            Link("More", 12, CSocket);
                            Face(55, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 12)
                        {
                            Link("Boots", 7, CSocket);
                            Link("HeavenFan", 8, CSocket);
                            Link("StarTwoer", 9, CSocket);
                            Face(55, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack >= 1 && LinkBack < 9)
                        {
                            if (CSocket.Client.Equipment.ContainsKey(LinkBack))
                            {
                                int ItemId = CSocket.Client.Equipment[LinkBack].ItemID; byte Plus = (byte)CSocket.Client.Equipment[LinkBack].Plus;
                                foreach (Struct.ItemInfo EquipItem in CSocket.Client.Equipment.Values)
                                {
                                    if (EquipItem.Bless == 0)
                                    {
                                        if (CSocket.Client.CPs >= 3900)
                                        {
                                            CPs(-3900, CSocket);
                                            EquipItem.Bless = 1;
                                            ItemUnequip(EquipItem.Position, EquipItem.UID, CSocket);
                                            ItemEquip(EquipItem.Position, EquipItem.UID, CSocket);
                                            CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CPs, Struct.StatusTypes.InvCPoints));
                                            CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You have make an item -1! Please Re-Equip it!", Struct.ChatType.Top));
                                        }
                                        else
                                        {
                                            Text("How dare you, You do not have the CPs!", CSocket);
                                            Link("Sorry!", 255, CSocket);
                                            Face(55, CSocket);
                                            End(CSocket);
                                        }
                                        break;
                                    }
                                    else if (EquipItem.Bless == 1)
                                    {
                                        if (CSocket.Client.CPs >= 780)
                                        {
                                            CPs(-780, CSocket);
                                            EquipItem.Bless = 3;
                                            ItemUnequip(EquipItem.Position, EquipItem.UID, CSocket);
                                            ItemEquip(EquipItem.Position, EquipItem.UID, CSocket);
                                            CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CPs, Struct.StatusTypes.InvCPoints));
                                            CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You have make an item -3! Please Re-Equip it!", Struct.ChatType.Top));
                                        }
                                        else
                                        {
                                            Text("How dare you, You do not have the CPs!", CSocket);
                                            Link("Sorry!", 255, CSocket);
                                            Face(55, CSocket);
                                            End(CSocket);
                                        }
                                        break;
                                    }
                                    else if (EquipItem.Bless == 3)
                                    {
                                        if (CSocket.Client.CPs >= 2340)
                                        {
                                            CPs(-2340, CSocket);
                                            EquipItem.Bless = 5;
                                            ItemUnequip(EquipItem.Position, EquipItem.UID, CSocket);
                                            ItemEquip(EquipItem.Position, EquipItem.UID, CSocket);
                                            CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CPs, Struct.StatusTypes.InvCPoints));
                                            CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You have make an item -5! Please Re-Equip it!", Struct.ChatType.Top));
                                        }
                                        else
                                        {
                                            Text("How dare you, You do not have the CPs!", CSocket);
                                            Link("Sorry!", 255, CSocket);
                                            Face(55, CSocket);
                                            End(CSocket);
                                        }
                                        break;
                                    }
                                    else if (EquipItem.Bless == 5)
                                    {
                                        if (CSocket.Client.CPs >= 3900)
                                        {
                                            CPs(-3900, CSocket);
                                            EquipItem.Bless = 7;
                                            ItemUnequip(EquipItem.Position, EquipItem.UID, CSocket);
                                            ItemEquip(EquipItem.Position, EquipItem.UID, CSocket);
                                            CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CPs, Struct.StatusTypes.InvCPoints));
                                            CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You have make an item -7! Please Re-Equip it!", Struct.ChatType.Top));
                                        }
                                        else
                                        {
                                            Text("How dare you, You do not have the CPs!", CSocket);
                                            Link("Sorry!", 255, CSocket);
                                            Face(55, CSocket);
                                            End(CSocket);
                                        }
                                        break;
                                    }
                                    else if (EquipItem.Bless == 7)
                                    {
                                        Text("Your item already have the max bless!", CSocket);
                                        Link("Yay!", 255, CSocket);
                                        Face(55, CSocket);
                                        End(CSocket);
                                    }
                                    else
                                    {
                                        Text("Your item must have the required bless!", CSocket);
                                        Link("Sorry", 255, CSocket);
                                        Face(55, CSocket);
                                        End(CSocket);
                                    }
                                }
                            }
                        }
                        break;
                    }
this code is already tested enjoy it !!!
gad-legion is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
[Release]4 new items for CoEmu V2
02/06/2012 - CO2 PServer Guides & Releases - 45 Replies
I ported over the FairySuits (+1 that TQ didn't bother to release) from the TQCO (out of boredom) and made them into GMRobe like items. Stats are: Female only +30k-30k Attack +30k M-Attack +30k Defence +30k HP +30k Mana
[HELP] PLEASE Coemu release 180
09/08/2010 - CO2 Private Server - 2 Replies
Hello everyone good morning everyone! Well folks I'm trying to use the Coemu but the recent release that came out good I downloaded the source code and compiled it, if I did not know but was sure: D lol but one detail appeared very npcs are with the dialogues as if I was not wrong. Can someone give me a Help please or copille me if I did something wrong! ss follows below! http://img822.imageshack.us/img822/9706/1942037.t h.jpg Uploaded with ImageShack.us
[Release]CoEmu V2 C++ Source
01/02/2010 - CO2 PServer Guides & Releases - 13 Replies
Hello Guys i Writen This Source From Along Time Now Time To Share It DownLoad Link : CoEmu V2 C++ Source Writen By MeGaMaX.rar If You Want It In another lang Just add Me [email protected]
[Release] >>>> CoEmu.V3
11/09/2009 - CO2 PServer Guides & Releases - 20 Replies
i got a new CoEmu from a china site but i don't know how to setup it this is the link of the source 4shared.com - online file sharing and storage - download NewCoemu.rar pass: AhmedZero
[Release] Skillbooks (CoEmu V2)
06/03/2009 - CO2 PServer Guides & Releases - 10 Replies
# Deleted, i've decided to let people attempt to code the source themselves, thus becoming a better programmer.



All times are GMT +2. The time now is 03:14.


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