كود:
#region Scoter0
case 1313:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("The Frozen Grotto is a dangerous and ancient place.Many heroes have died there while seaching for it's hidden treasures.Tow layers of the Frozen Grotto have been excavted,so far.If you have made up your mineand want to test yourself,I can teleport your to the first 2 floors.Ifyou want to go to the 5th floor speak thr Guardian on Frozen Grotto F4 (387,460).Witch level do ypu want to go?Frozen Grotto1.[100 CPS],Frozen Grotto2.[200 CPS]");
dialog.Option("Frozen Grotto1.", 1);
dialog.Option("Frozen Grotto2.", 2);
dialog.Option("Let me think...", 255);
dialog.Send();
break;
}
case 1:
{
if (client.Entity.ConquerPoints >= 100)
{
client.Entity.ConquerPoints -= 100;
client.Entity.Teleport(1762, 61, 257);
}
else
{
dialog.Text("You don't have enought CPS.");
dialog.Option("Ahh, sorry.", 255);
dialog.Send();
}
break;
}
case 2:
{
if (client.Entity.ConquerPoints >= 200)
{
client.Entity.ConquerPoints -= 200;
client.Entity.Teleport(7007, 61, 257);
}
else
{
dialog.Text("You don't have enought CPS.");
dialog.Option("Ahh, sorry.", 255);
dialog.Send();
}
break;
}
}
break;
}
#endregion
#region Scoter45
case 1312:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hi " + client.Entity.Name + "!, Iam FrozenGrotto guard,So ican teleport you to FrozenGrotto 5 for GrottoKey, you can get it from DarkElf in FrozenGrotto 3,So good luck.");
dialog.Option("I own the key.", 1);
dialog.Option("Ok,I will go to Attend the key.", 255);
dialog.Send();
break;
}
case 1:
{
if (client.Inventory.Contains(721347, 1))
{
client.Inventory.Remove(721347, 1);
client.Entity.Teleport(2055, 537, 568);
}
else
{
dialog.Text("You don't have a Key.");
dialog.Option("Ahh sorry.", 255);
}
break;
}
}
break;
}
#endregion