Exemple #1
0
        public static void GiveAntique(Museums antique, Mobile vendor, Mobile player)
        {
            string say  = "Thank you!";
            int    cost = Museums.AntiqueTotalValue(antique.ThisValue, player, true);

            switch (Utility.RandomMinMax(0, 9))
            {
            case 0: say = "I have been looking for something like this. Here is " + cost.ToString() + " gold for you.";             break;

            case 1: say = "I have heard of this item before. Here is " + cost.ToString() + " gold for you.";                break;

            case 2: say = "I never thought I would see one of these. Here is " + cost.ToString() + " gold for you.";                break;

            case 3: say = "I have never seen one of these. Here is " + cost.ToString() + " gold for you.";          break;

            case 4: say = "What a rare item. Here is " + cost.ToString() + " gold for you.";                break;

            case 5: say = "This is quite rare. Here is " + cost.ToString() + " gold for you.";              break;

            case 6: say = "This will go nicely in my museum. Here is " + cost.ToString() + " gold for you.";                break;

            case 7: say = "I have only heard tales about such items. Here is " + cost.ToString() + " gold for you.";                break;

            case 8: say = "How did you come across this? Here is " + cost.ToString() + " gold for you.";            break;

            case 9: say = "Where did you find this? Here is " + cost.ToString() + " gold for you.";         break;
            }

            player.SendSound(0x2E6);
            player.SendMessage("You receive " + cost + " gold.");
            player.AddToBackpack(new Gold(cost));
            antique.Delete();
            vendor.PrivateOverheadMessage(MessageType.Regular, 1153, false, say, player.NetState);
        }
Exemple #2
0
 public override void OnDoubleClick(Mobile from)
 {
     if (IsChildOf(from.Backpack))
     {
         int cost = Museums.AntiqueTotalValue(ThisValue, from, false);
         from.SendMessage("This antique is worth " + cost + " gold to an art collector.");
     }
     else
     {
         if (ItemID == 0x52FC)
         {
             ItemID = 0x0481; Light = LightType.Circle300; from.SendSound(0x4A);
         }
         else if (ItemID == 0x0481)
         {
             ItemID = 0x52FC; Light = LightType.Empty; from.SendSound(0x4A);
         }
         else if (ItemID == 0x5354)
         {
             ItemID = 0x5351; Light = LightType.Circle300; from.SendSound(0x47);
         }
         else if (ItemID == 0x5351)
         {
             ItemID = 0x5354; Light = LightType.Empty; from.SendSound(0x3be);
         }
         else if (ItemID == 0x5355)
         {
             ItemID = 0x5356; Light = LightType.Circle150; from.SendSound(0x47);
         }
         else if (ItemID == 0x5356)
         {
             ItemID = 0x5355; Light = LightType.Empty; from.SendSound(0x3be);
         }
         else if (ItemID == 0x535C)
         {
             ItemID = 0x535D; Light = LightType.Circle150; from.SendSound(0x47);
         }
         else if (ItemID == 0x535D)
         {
             ItemID = 0x535C; Light = LightType.Empty; from.SendSound(0x3be);
         }
         else if (ItemID == 0x5363)
         {
             ItemID = 0x5364; Light = LightType.Circle150; from.SendSound(0x47);
         }
         else if (ItemID == 0x5364)
         {
             ItemID = 0x5363; Light = LightType.Empty; from.SendSound(0x3be);
         }
         else if (ItemID == 0x5367)
         {
             ItemID = 0x5368; Light = LightType.Circle150; from.SendSound(0x47);
         }
         else if (ItemID == 0x5368)
         {
             ItemID = 0x5367; Light = LightType.Empty; from.SendSound(0x3be);
         }
         else if (ItemID == 0x5320)
         {
             ItemID = 0x5321; Light = LightType.Circle300; from.SendSound(0x208);
         }
         else if (ItemID == 0x5321)
         {
             ItemID = 0x5320; Light = LightType.Empty; from.SendSound(0x3be);
         }
         else if (ItemID == 0x539F)
         {
             ItemID = 0x53A0; Light = LightType.Circle300; from.SendSound(0x208);
         }
         else if (ItemID == 0x53A0)
         {
             ItemID = 0x539F; Light = LightType.Empty; from.SendSound(0x3be);
         }
     }
 }