Beispiel #1
0
        public SoulweaponBox()
        //: base(0x46A2)
        {
            Item i;

            switch (Utility.Random(12))
            {
            case 0: i = new SoulVikingSword(); break;

            case 1: i = new Vstaff(); break;

            case 2: i = new VRadiantScimitar(); break;

            case 3: i = new SoulShortBow(); break;

            case 4: i = new vHalberd(); break;

            case 5: i = new Vtessen(); break;

            default:
            case 6:
            case 7:
            case 8:
            case 9:
            case 10:
            case 11: i = new UnbindingDeed(); break;
            }
            this.Name = "灵魂武器匣";
            this.Hue  = GiftBoxHues.RandomGiftBoxHue;
            this.DropItem(i);
            //this.Movable = false;
        }
Beispiel #2
0
        protected override void OnTarget(Mobile from, object target)
        {
            if (!(target is SoulVikingSword) && !(target is Vstaff) && !(target is SoulShortBow) && !(target is VRadiantScimitar) && !(target is vHalberd) && !(target is Vtessen))
            {
                from.SendMessage("You cant do that."); return;
            }
            else if (target is SoulVikingSword)
            {
                SoulVikingSword sb = (SoulVikingSword)target;
                if (sb.bond == 0)
                {
                    from.SendMessage("That is not Soul Bound."); return;
                }
                else if (!sb.IsChildOf(from.Backpack))
                {
                    from.SendLocalizedMessage(1042001); return;
                }


                else if (sb.IsChildOf(from.Backpack))
                {
                    sb.Name = "¡¾¼µ¶Ê¡¿";
                    sb.bond = 0;
                    sb.AddNameProperty(sb.PropertyList);
                    {
                        sb.PropertyList.Add("<BASEFONT COLOR=#FF7F50>" + "[δ°ó¶¨]" + "<BASEFONT COLOR=#FFFFFF>");
                    }
                    udeed.Delete();
                    sb.InvalidateProperties();

                    from.SendMessage("That Soul Weapon is now Unbound!");
                    return;
                }
            }
            else if (target is SoulShortBow)
            {
                SoulShortBow sb = (SoulShortBow)target;
                if (sb.bond == 0)
                {
                    from.SendMessage("That is not Soul Bound."); return;
                }
                else if (!sb.IsChildOf(from.Backpack))
                {
                    from.SendLocalizedMessage(1042001); return;
                }


                else if (sb.IsChildOf(from.Backpack))
                {
                    sb.Name = "¡¾Ì°À·¡¿";
                    sb.bond = 0;
                    sb.AddNameProperty(sb.PropertyList);
                    {
                        sb.PropertyList.Add("<BASEFONT COLOR=#FF7F50>" + "[δ°ó¶¨]" + "<BASEFONT COLOR=#FFFFFF>");
                    }

                    udeed.Delete();
                    sb.InvalidateProperties();
                    from.SendMessage("That Soul Weapon is now Unbound!"); return;
                }
            }
            else if (target is VRadiantScimitar)
            {
                VRadiantScimitar sb = (VRadiantScimitar)target;
                if (sb.bond == 0)
                {
                    from.SendMessage("That is not Soul Bound."); return;
                }
                else if (!sb.IsChildOf(from.Backpack))
                {
                    from.SendLocalizedMessage(1042001); return;
                }


                else if (sb.IsChildOf(from.Backpack))
                {
                    sb.Name = "¡¾°ÁÂý¡¿";
                    sb.bond = 0;
                    sb.AddNameProperty(sb.PropertyList);
                    {
                        sb.PropertyList.Add("<BASEFONT COLOR=#FF7F50>" + "[δ°ó¶¨]" + "<BASEFONT COLOR=#FFFFFF>");
                    }

                    udeed.Delete();
                    sb.InvalidateProperties();
                    from.SendMessage("That Soul Weapon is now Unbound!"); return;
                }
            }
            else if (target is Vstaff)
            {
                Vstaff sb = (Vstaff)target;
                if (sb.bond == 0)
                {
                    from.SendMessage("That is not Soul Bound."); return;
                }
                else if (!sb.IsChildOf(from.Backpack))
                {
                    from.SendLocalizedMessage(1042001); return;
                }


                else if (sb.IsChildOf(from.Backpack))
                {
                    sb.Name = "¡¾ÓûÍû¡¿";
                    sb.bond = 0;
                    sb.AddNameProperty(sb.PropertyList);
                    {
                        sb.PropertyList.Add("<BASEFONT COLOR=#FF7F50>" + "[δ°ó¶¨]" + "<BASEFONT COLOR=#FFFFFF>");
                    }

                    udeed.Delete();
                    sb.InvalidateProperties();
                    from.SendMessage("That Soul Weapon is now Unbound!"); return;
                }
            }
            else if (target is vHalberd)
            {
                vHalberd sb = (vHalberd)target;
                if (sb.bond == 0)
                {
                    from.SendMessage("That is not Soul Bound."); return;
                }
                else if (!sb.IsChildOf(from.Backpack))
                {
                    from.SendLocalizedMessage(1042001); return;
                }


                else if (sb.IsChildOf(from.Backpack))
                {
                    sb.Name = "¡¾±©Å­¡¿";
                    sb.bond = 0;
                    sb.AddNameProperty(sb.PropertyList);
                    {
                        sb.PropertyList.Add("<BASEFONT COLOR=#FF7F50>" + "[δ°ó¶¨]" + "<BASEFONT COLOR=#FFFFFF>");
                    }

                    udeed.Delete();
                    sb.InvalidateProperties();
                    from.SendMessage("That Soul Weapon is now Unbound!"); return;
                }
            }
            else if (target is Vtessen)
            {
                Vtessen sb = (Vtessen)target;
                if (sb.bond == 0)
                {
                    from.SendMessage("That is not Soul Bound."); return;
                }
                else if (!sb.IsChildOf(from.Backpack))
                {
                    from.SendLocalizedMessage(1042001); return;
                }


                else if (sb.IsChildOf(from.Backpack))
                {
                    sb.Name = "¡¾°ÁÂý¡¿";
                    sb.bond = 0;
                    sb.AddNameProperty(sb.PropertyList);
                    {
                        sb.PropertyList.Add("<BASEFONT COLOR=#FF7F50>" + "[δ°ó¶¨]" + "<BASEFONT COLOR=#FFFFFF>");
                    }

                    udeed.Delete();
                    sb.InvalidateProperties();
                    from.SendMessage("That Soul Weapon is now Unbound!"); return;
                }
            }


            else
            {
                return;
            }
        }