Hey everyone, im useing the warlords base and i see they use wux over (Stones) to + weapons could someone post an npc in there style c# for this system please i had one for an old source if this helps?
i tryed to convert it and there was so many errors.
Would be kindly appreciated if someone could do this for me
Really need this im not sure how to convert
Code:
#region +1-12
case 77665544:
{
if (option == 0)
{
GC.SendPacket(Packets.NPCSay("I can plus your gears for Cps Till +12!"));
GC.SendPacket(Packets.NPCLink("Yeah", 250));
GC.SendPacket(Packets.NPCLink("Just passing by.", 255));
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
GC.Agreed = false;
}
else if (option == 250)
{
GC.SendPacket(Packets.NPCSay("Choose the equipment you want to plus."));
GC.SendPacket(Packets.NPCLink("Headgear", 1));
GC.SendPacket(Packets.NPCLink("Necklace/Bag", 2));
GC.SendPacket(Packets.NPCLink("Armor", 3));
GC.SendPacket(Packets.NPCLink("Weapon", 4));
GC.SendPacket(Packets.NPCLink("Shield", 5));
GC.SendPacket(Packets.NPCLink("Ring", 6));
GC.SendPacket(Packets.NPCLink("Boots", 8));
GC.SendPacket(Packets.NPCLink("More.", 19));
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
else if (option == 19)
{
GC.SendPacket(Packets.NPCSay("Choose the equipment you want to plus."));
GC.SendPacket(Packets.NPCLink("Fan", 10));
GC.SendPacket(Packets.NPCLink("Tower", 11));
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
else if (option > 0 && option < 12)
{
Game.Item I = GC.MyChar.Equips.Get((byte)(option));
if (I.Plus != 12)
{
uint CpsCost = 999999999;
if (I.Plus == 0)
CpsCost = 500;
else if (I.Plus == 1)
CpsCost = 1000;
else if (I.Plus == 2)
CpsCost = 2000;
else if (I.Plus == 3)
CpsCost = 30000;
else if (I.Plus == 4)
CpsCost = 40000;
else if (I.Plus == 5)
CpsCost = 50000;
else if (I.Plus == 6)
CpsCost = 150000;
else if (I.Plus == 7)
CpsCost = 200000;
else if (I.Plus == 8)
CpsCost = 250000;
else if (I.Plus == 9)
CpsCost = 2000000;
else if (I.Plus == 10)
CpsCost = 5000000;
else if (I.Plus == 11)
CpsCost = 10000000;
if (!GC.Agreed)
{
GC.SendPacket(Packets.NPCSay("You need " + CpsCost + " Cps to upgrade. Do you want it?"));
GC.SendPacket(Packets.NPCLink("Yes.", option));
GC.SendPacket(Packets.NPCLink("Nevermind.", 255));
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
GC.Agreed = true;
}
else
{
GC.Agreed = false;
if (GC.MyChar.CPs >= CpsCost)
{
GC.MyChar.CPs -= CpsCost;
GC.MyChar.EquipStats((byte)(option), false);
if (I.Plus != 12)
I.Plus += 1;
GC.MyChar.Equips.Replace((byte)(option), I, GC.MyChar);
GC.MyChar.EquipStats((byte)(option), true);
GC.SendPacket(Packets.NPCSay("Here you are. It's done."));
GC.SendPacket(Packets.NPCLink("Thanks.", 255));
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
else
{
GC.SendPacket(Packets.NPCSay("You don't have enough Cps."));
GC.SendPacket(Packets.NPCLink("I see.", 255));
GC.SendPacket(Packets.NPCSetFace(N.Avatar));
GC.SendPacket(Packets.NPCFinish());
}
}
}
}
break;
}
#endregion
Would be kindly appreciated if someone could do this for me
Really need this im not sure how to convert