Register for your free account! | Forgot your password?

You last visited: Today at 07:47

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

Advertisement



Item socker

Discussion on Item socker within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2009
Posts: 23
Received Thanks: 1
Item socker

Hey guys,

I have a problem this is my item socket code:

Quote:
#region Item Socket
case 550:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("It's a chaotic world... rich steal from poor... bla bla bla. I am the great item socketer."));
GC.AddSend(Packets.NPCSay("It will cost you 18 DragonBalls to create the first socket."));
GC.AddSend(Packets.NPCSay("The second one will cost you 7 Tough Drills."));
GC.AddSend(Packets.NPCLink("I want to create a first socket.", 1));
GC.AddSend(Packets.NPCLink("I want to create a second socket.", 2));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (Control == 1 || Control == 2)
{
if (Control == 1)
GC.AddSend(Packets.NPCSay("Prepare 18 DragonBalls for the socket and choose the equipment you want the socket to be created in."));
else
GC.AddSend(Packets.NPCSay("Prepare 7 Tough Drills the socket and choose the equipment you want the socket to be created in."));

GC.AddSend(Packets.NPCLink("Headgear", (byte)(Control * 100 + 1)));
GC.AddSend(Packets.NPCLink("Necklace/Bag", (byte)(Control * 100 + 2)));
GC.AddSend(Packets.NPCLink("Armor", (byte)(Control * 100 + 3)));
GC.AddSend(Packets.NPCLink("Shield", (byte)(Control * 100 + 5)));
GC.AddSend(Packets.NPCLink("Ring", (byte)(Control * 100 + 6)));
GC.AddSend(Packets.NPCLink("Boots", (byte)(Control * 100 + 8)));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control > 100 && Control <= 103 || Control == 105 || Control == 106 || Control == 108)
{
byte Pos = (byte)(Control - 100);
Game.Item Eq = GC.MyChar.Equips.Get(Pos);
if (Eq.Soc1 == NewestCOServer.Game.Item.Gem.NoSocket)
{
if (GC.MyChar.Silvers >= 250000 && GC.MyChar.InventoryContains(1088000, 12))
{
GC.MyChar.EquipStats(Pos, false);
for (byte i = 0; i < 18; i++)
GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
GC.MyChar.Silvers -= 250000;
Eq.Soc1 = NewestCOServer.Game.Item.Gem.EmptySocket;
GC.MyChar.Equips.Replace(Pos, Eq, GC.MyChar);
GC.MyChar.EquipStats(Pos, true);

GC.AddSend(Packets.NPCSay("Congratulations! You now have the first socket in your equipment."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have the materials."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("The item already has the first socket."));
GC.AddSend(Packets.NPCLink("Oh, right.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control > 200 && Control <= 203 || Control == 205 || Control == 206 || Control == 208)
{
byte Pos = (byte)(Control - 200);
Game.Item Eq = GC.MyChar.Equips.Get(Pos);
if (Eq.Soc1 != NewestCOServer.Game.Item.Gem.NoSocket)
{
if (Eq.Soc2 == NewestCOServer.Game.Item.Gem.NoSocket)
{
if (GC.MyChar.Silvers >= 1000000 && GC.MyChar.InventoryContains(1200005, 5))
{
GC.MyChar.EquipStats(Pos, false);
for (byte i = 0; i < 7; i++)
GC.MyChar.RemoveItem(GC.MyChar.NextItem(1200005));
GC.MyChar.Silvers -= 1000000;
Eq.Soc2 = NewestCOServer.Game.Item.Gem.EmptySocket;
GC.MyChar.Equips.Replace(Pos, Eq, GC.MyChar);
GC.MyChar.EquipStats(Pos, true);

GC.AddSend(Packets.NPCSay("Congratulations! You now have the second socket in your equipment."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("You don't have the materials."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("The item already has the second socket."));
GC.AddSend(Packets.NPCLink("Oh, right.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else
{
GC.AddSend(Packets.NPCSay("You first need the first socket done. Then i can make the second one."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
but how do I make it so it doesn't need money to upgrade?

I already tried other npc's but it still stays this one how can I change it?

thank you
ali-xx is offline  
Old 01/22/2011, 19:18   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
if (GC.MyChar.Silvers >= 1000000 && GC.MyChar.InventoryContains(1200005, 5))

Remove any section referring to Silvers...

Easy fix.
pro4never is offline  
Thanks
1 User
Old 01/22/2011, 20:19   #3
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Since when did making sockets cost silvers as well as dragonballs/toughdrills?
.Beatz is offline  
Reply

Tags
5165, monk, server, socket, tutorial


Similar Threads Similar Threads
[Suche] Komplette item.eix/epk, icon.eix/epk, item proto und item list
12/25/2010 - Metin2 Private Server - 6 Replies
Hey =) Wie die Überschrift schon sagt, suche ich eine komplette item.eix/epk, icon.eix/epk, item proto und item list am liebsten noch von den Waffen von .darki und den ganzen neuen Rüstungen/Schilden/Helmen, da ich überhaupt nicht weiß wie man dass zB mit der item proto macht und wenn ich sie einfach nur ersetze, wie zB durch die "Waffen" item proto von .darki sind die ganzen neuen Rüstungen weg .... Ich hoffe irgendjemand könnte das machen, weil es bestimmt nicht nur für mich hilfreich ist...
How socker?
11/21/2006 - Conquer Online 2 - 1 Replies
Hello would everyone, I like to know how to make for socker the objects please? :cry:



All times are GMT +2. The time now is 07:47.


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.