Register for your free account! | Forgot your password?

Go Back   elitepvpers > Conquer Online 2 > CO2 PServer - Discussions / Questions
You last visited: Today at 13:53

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


[resquest] help with npc for up itens

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 92
Received Thanks: 21
Question [resquest] help with npc for up itens

I'm having errors when I up brascelet and backsword, when are 15. someone help me fix this problem?
thx alot



reborn666 is offline  
Old 10/23/2008, 23:00   #2
 
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
show me the npc codes


XxArcherMasterxX is offline  
Old 10/23/2008, 23:03   #3
 
elite*gold: 0
Join Date: Feb 2008
Posts: 668
Received Thanks: 160
Like XxArcherMasterxX said,
YukiXian is offline  
Old 10/24/2008, 00:09   #4
 
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
Quote:
Originally Posted by YukiXian View Post
Like XxArcherMasterxX said,
we cant do anything without the npc script


XxArcherMasterxX is offline  
Old 10/27/2008, 15:07   #5
 
elite*gold: 0
Join Date: Sep 2008
Posts: 92
Received Thanks: 21
Quote:
Originally Posted by XxArcherMasterxX View Post
show me the npc codes
here is
Quote:
if (CurrentNPC == 700)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("Ah, excellent. Upgrading the quality increases the effectiveness of an item. Which item do you want to upgrade?"));
SendPacket(General.MyPackets.NPCLink("Upgrade helmet or earring.", 3));
SendPacket(General.MyPackets.NPCLink("Upgrade necklace quality.", 4));
SendPacket(General.MyPackets.NPCLink("Upgrade armor quality.", 5));
SendPacket(General.MyPackets.NPCLink("Upgrade weapon quality.", 6));
SendPacket(General.MyPackets.NPCLink("Upgrade ring, heavy ring quality.", 7));
SendPacket(General.MyPackets.NPCLink("Upgrade boots quality.", 8));
SendPacket(General.MyPackets.NPCLink("Upgrade shield quality.", 9));
SendPacket(General.MyPackets.NPCLink("Goodbye.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
UppAgree = false;
}
if (Control == 2)
{
SendPacket(General.MyPackets.NPCSay("I see. Upgrading an item's level makes it more powerful, but also harder to use, increasing the item level prerequisite."));
SendPacket(General.MyPackets.NPCLink("Helmet, Earring", 10));
SendPacket(General.MyPackets.NPCLink("Upgrade necklace level.", 11));
SendPacket(General.MyPackets.NPCLink("Upgrade armor level.", 12));
SendPacket(General.MyPackets.NPCLink("Upgrade weapon level.", 13));
SendPacket(General.MyPackets.NPCLink("Upgrade ring, heavy ring level.", 14));
SendPacket(General.MyPackets.NPCLink("Upgrade boots level.", 15));
SendPacket(General.MyPackets.NPCLink("Upgrade shield level.", 16));
SendPacket(General.MyPackets.NPCLink("Goodbye.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
UppAgree = false;
}
if (Control <= 9 && Control >= 3)
{
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;


string[] Splitter = TheEquip.Split('-');
uint ItemId = uint.Parse(Splitter[0]);

if (!Other.Upgradable(ItemId) || Other.ItemQuality(ItemId) == 9)
return;

byte RequiredDBs = 0;
RequiredDBs = (byte)(Other.ItemInfo(ItemId)[3] / 20);
if (RequiredDBs == 0)
RequiredDBs = 1;

if (Other.ItemQuality(ItemId) == 6)
RequiredDBs += 2;
if (Other.ItemQuality(ItemId) == 7)
RequiredDBs += 3;
if (Other.ItemQuality(ItemId) == 8)
RequiredDBs += 4;

if (!UppAgree)
{
SendPacket(General.MyPackets.NPCSay("It will take " + RequiredDBs + " dragon balls to upgrade it. Do you still want to upgrade?"));
SendPacket(General.MyPackets.NPCLink("Yes", (byte)Control));
SendPacket(General.MyPackets.NPCLink("No, i changed my mind.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
if (MyChar.InventoryContains(1088000, RequiredDBs))
{
for (int i = 0; i < RequiredDBs; i++)
{
MyChar.RemoveItem(MyChar.ItemNext(1088000));
}

if (Other.ItemQuality(ItemId) < 6)
ItemId = Other.ItemQualityChange(ItemId, 6);
else
ItemId++;

MyChar.GetEquipStats(Pos, true);
MyChar.Equips[Pos] = ItemId.ToString() + "-" + Splitter[1] + "-" + Splitter[2] + "-" + Splitter[3] + "-" + Splitter[4] + "-" + Splitter[5];
MyChar.GetEquipStats(Pos, 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("You don't have enough dragon balls."));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
}

UppAgree = true;
}
if (Control <= 16 && Control >= 10)
{
string TheEquip = "";

if (Control == 10)
TheEquip = MyChar.Equips[1];
if (Control == 11)
TheEquip = MyChar.Equips[2];
if (Control == 12)
TheEquip = MyChar.Equips[3];
if (Control == 13)
TheEquip = MyChar.Equips[4];
if (Control == 14)
TheEquip = MyChar.Equips[6];
if (Control == 15)
TheEquip = MyChar.Equips[8];
if (Control == 16)
TheEquip = MyChar.Equips[5];

byte Pos = 0;

if (Control == 10)
Pos = 1;
if (Control == 11)
Pos = 2;
if (Control == 12)
Pos = 3;
if (Control == 13)
Pos = 4;
if (Control == 14)
Pos = 6;
if (Control == 15)
Pos = 8;
if (Control == 16)
Pos = 5;

string[] Splitter = TheEquip.Split('-');
uint ItemId = uint.Parse(Splitter[0]);

if (!Other.Upgradable(ItemId))
return;

byte RequiredMets = 0;
if (Other.ItemInfo(ItemId)[3] < 120)
{
RequiredMets = (byte)(Other.ItemInfo(ItemId)[3] / 10);
if (RequiredMets == 0)
RequiredMets = 1;
}
if (RequiredMets != 0)
{
if (Other.ItemQuality(ItemId) < 7)
RequiredMets = 2;
if (Other.ItemQuality(ItemId) == 7)
RequiredMets = (byte)(2 + RequiredMets / 5);
if (Other.ItemQuality(ItemId) == 8)
RequiredMets = (byte)(RequiredMets * 2.6);
if (Other.ItemQuality(ItemId) == 9)
RequiredMets = (byte)(RequiredMets * 3.1);
}

if (RequiredMets != 0)
{
if (!UppAgree)
{
SendPacket(General.MyPackets.NPCSay("It will take " + RequiredMets + " meteors to upgrade it. Do you still want to upgrade?"));
SendPacket(General.MyPackets.NPCLink("Yes", (byte)Control));
SendPacket(General.MyPackets.NPCLink("No, i changed my mind.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
if (MyChar.InventoryContains(1088001, RequiredMets) && MyChar.Level >= Other.ItemInfo(Other.EquipNextLevel(ItemId))[3])
{
ItemId = Other.EquipNextLevel(ItemId);

for (int i = 0; i < RequiredMets; i++)
{
MyChar.RemoveItem(MyChar.ItemNext(1088001));
}

MyChar.GetEquipStats(Pos, true);
MyChar.Equips[Pos] = ItemId.ToString() + "-" + Splitter[1] + "-" + Splitter[2] + "-" + Splitter[3] + "-" + Splitter[4] + "-" + Splitter[5];
MyChar.GetEquipStats(Pos, 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));

SendPacket(General.MyPackets.NPCSay("Your item has been upgraded. Look and behold my marvelous upgrading skill! Isn't it amazing?"));
SendPacket(General.MyPackets.NPCLink("Thanks a lot!", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
else
{
SendPacket(General.MyPackets.NPCSay("You don't have enough meteors or you are not able to equip the item after upgrade."));
SendPacket(General.MyPackets.NPCLink("I see.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}

UppAgree = false;
}
}
else
{
SendPacket(General.MyPackets.NPCSay("I cannot upgrade your item anymore. It is on too high level."));
SendPacket(General.MyPackets.NPCLink("Damn.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
UppAgree = true;
}
}


reborn666 is offline  
Reply



« [Idea Thread] Private Server Ideas | [Question]Shopping Mall »

Similar Threads
[RESQUEST]AIO code please Aeria
12/01/2009 - 12Sky2 - 3 Replies
bump!?
[RESQUEST]
11/26/2009 - Soldier Front Hacks, Bots, Cheats & Exploits - 4 Replies
magkakaroon b kau ng bagong wallhack
RESQUEST!
05/05/2009 - Runescape - 1 Replies
I need to know what you want to see next! Tell me anything! PLEASE!
Cabal AutoTalker (Resquest)
02/24/2009 - Cabal Main - Discussions / Questions - 4 Replies
Hi, i'm looking for an AutoTalker i have tryed the cabakl autotyper and it dont work nothing happen when i press start if some one as one or can give me a link to one will work i will be happy. Thank you!



All times are GMT +1. The time now is 13:53.


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

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.