Code:
public static void script_150002(GameClient client, byte option) // script_ before the id is necessary!
{
switch (option)
{
case 0:
{
NPCHandler.SendDialog(client, "Would you like to upgrade your items?");
NPCHandler.SendOption(client, "Yes please.", 1);
NPCHandler.SendOption(client, "No thanks.", 255);
NPCHandler.Finish(client);
break;
}
case 1:
{
NPCHandler.SendDialog(client, "Which equipment do you want to upgrade?");
NPCHandler.SendDialog(client, "<Head, Necklace, WeaponL, WeaponR, Armor, Boots, Ring, Garment, Bottle>");
NPCHandler.SendInput(client, 2);
NPCHandler.Finish(client);
break;
}
case 2:
{
NPCHandler.SendDialog(client, "Please choose how you want your item to be upgraded?");
NPCHandler.SendOption(client, "Sockets", 3);
NPCHandler.SendOption(client, "Plus", 4);
NPCHandler.SendOption(client, "Bless", 5);
NPCHandler.SendOption(client, "Enchant", 6);
NPCHandler.Finish(client);
break;
}
case 3:
{
}
case 4:
{
for (byte i = 1; i < 12; i++)
{
item.Plus = Plus + i++;
}
case 5:
{
NPCHandler.SendDialog(client, "Please choose an option from below, here you can upgrade your bless.");
NPCHandler.SendOption(client, "-1 Damage", 7);
NPCHandler.SendOption(client, "-3 Damage", 8);
NPCHandler.SendOption(client, "-5 Damage", 9);
NPCHandler.SendOption(client, "-7 Damage", 10);
NPCHandler.Finish(client);
break;
}
case 6:
{
if (Enchant > 250)
{
return;
}
item.Enchant = 50;
}
case 7:
{
item.Bless = 1;
}
case 8:
{
if (Bless == 1)
{
item.Bless = 3;
}
case 9:
{
if (Bless == 3)
{
item.Bless = 5;
}
case 10:
{
if (Bless == 5)
{
item.Bless = 7;
}
}
}
Upgrading Master
-He can upgrade Plus,Bless,Enchant and open sockets.
Plus: To add +1 for your item, Ex: If you have +4 Sword and want to upgrade to +5 for cps
Sockets: I don't know how to open a socket, 1st socket and 2nd socket.
Bless: Upgrade your bless from -1 to -3
Enchant: I want to add 50 HP everytime I add HP max HP is 250.
-Will add the CPS system later.. and was thinking of making it with points.. Like tounry points
The NPC isn't working needs fixing.
Anyone who can code wants to work with me on the source PM