public override void OnResponse( NetState sender, RelayInfo info )
			{
				if ( m_Deed.Deleted )
					return;

				BaseWeapon weapon = null;

				switch ( info.ButtonID )
				{
					case 0: return;
					case 1: weapon = new AreaAxe() ; break;
					case 2: weapon = new AreaBattleAxe() ; break;
					case 3: weapon = new AreaDoubleAxe() ; break;
					case 4: weapon = new AreaExecutionersAxe() ; break;
					case 5: weapon = new AreaHatchet() ; break;
					case 6: weapon = new AreaLargeBattleAxe() ; break;
					case 7: weapon = new AreaPickaxe() ; break;
					case 8: weapon = new AreaTwoHandedAxe() ; break;
					case 9: weapon = new AreaWarAxe() ; break;
					case 10: weapon = new AreaBow() ; break;
					case 11: weapon = new AreaCompositeBow() ; break;
					case 12: weapon = new AreaCrossbow() ; break;
					case 13: weapon = new AreaHeavyCrossbow() ; break;
					case 14: weapon = new AreaRepeatingCrossbow() ; break;
					case 15: weapon = new AreaButcherKnife() ; break;
					case 16: weapon = new AreaCleaver() ; break;
					case 17: weapon = new AreaDagger() ; break;
					case 18: weapon = new AreaSkinningKnife() ; break;
					case 19: weapon = new AreaClub() ; break;
					case 20: weapon = new AreaHammerPick() ; break;
					case 21: weapon = new AreaMace() ; break;
					case 22: weapon = new AreaMaul() ; break;
					case 23: weapon = new AreaScepter() ; break;
					case 24: weapon = new AreaWarHammer() ; break;
					case 25: weapon = new AreaWarMace() ; break;
					case 26: weapon = new AreaBardiche() ; break;
					case 27: weapon = new AreaHalberd() ; break;
					case 28: weapon = new AreaScythe() ; break;
					case 29: weapon = new AreaBladedStaff() ; break;
					case 30: weapon = new AreaDoubleBladedStaff() ; break;
					case 31: weapon = new AreaPike() ; break;
					case 32: weapon = new AreaPitchfork() ; break;
					case 33: weapon = new AreaShortSpear() ; break;
					case 34: weapon = new AreaSpear() ; break;
					case 35: weapon = new AreaWarFork() ; break;
					case 36: weapon = new AreaBlackStaff() ; break;
					case 37: weapon = new AreaGnarledStaff() ; break;
					case 38: weapon = new AreaQuarterStaff() ; break;
					case 39: weapon = new AreaShepherdsCrook() ; break;
					case 40: weapon = new AreaBoneHarvester() ; break;
					case 41: weapon = new AreaBroadSword() ; break;
					case 42: weapon = new AreaCrescentBlade() ; break;
					case 43: weapon = new AreaCutlass() ; break;
					case 44: weapon = new AreaKatana() ; break;
					case 45: weapon = new AreaKryss() ; break;
					case 46: weapon = new AreaLance() ; break;
					case 47: weapon = new AreaLongSword() ; break;
					case 48: weapon = new AreaScimitar() ; break;
					case 49: weapon = new AreaVikingSword() ; break;
				}

				if ( weapon != null )
				{
					weapon.Name = weapon.Name + " of Toxic Dust & Wind";
					weapon.AosElementDamages.Energy = 20;
					weapon.AosElementDamages.Physical = 20;
					weapon.AosElementDamages.Poison = 20;
					weapon.WeaponAttributes.HitPoisonArea = 50;
					weapon.WeaponAttributes.HitPhysicalArea = 50;
					weapon.WeaponAttributes.HitEnergyArea = 50;
					weapon.Quality = m_Deed.Quality;
					weapon.Resource = m_Deed.Resource;
					if ( m_Deed.Crafter != null ) weapon.Crafter = m_Deed.Crafter;
					m_From.Backpack.DropItem( weapon );
					m_From.SendMessage( "You summon the Area Weapon!" );
					m_Deed.Delete();
				}
			}
Esempio n. 2
0
            public override void OnResponse(NetState sender, RelayInfo info)
            {
                if (m_Deed.Deleted)
                {
                    return;
                }

                BaseWeapon weapon = null;

                switch (info.ButtonID)
                {
                case 0: return;

                case 1: weapon = new AreaAxe(); break;

                case 2: weapon = new AreaBattleAxe(); break;

                case 3: weapon = new AreaDoubleAxe(); break;

                case 4: weapon = new AreaExecutionersAxe(); break;

                case 5: weapon = new AreaHatchet(); break;

                case 6: weapon = new AreaLargeBattleAxe(); break;

                case 7: weapon = new AreaPickaxe(); break;

                case 8: weapon = new AreaTwoHandedAxe(); break;

                case 9: weapon = new AreaWarAxe(); break;

                case 10: weapon = new AreaBow(); break;

                case 11: weapon = new AreaCompositeBow(); break;

                case 12: weapon = new AreaCrossbow(); break;

                case 13: weapon = new AreaHeavyCrossbow(); break;

                case 14: weapon = new AreaRepeatingCrossbow(); break;

                case 15: weapon = new AreaButcherKnife(); break;

                case 16: weapon = new AreaCleaver(); break;

                case 17: weapon = new AreaDagger(); break;

                case 18: weapon = new AreaSkinningKnife(); break;

                case 19: weapon = new AreaClub(); break;

                case 20: weapon = new AreaHammerPick(); break;

                case 21: weapon = new AreaMace(); break;

                case 22: weapon = new AreaMaul(); break;

                case 23: weapon = new AreaScepter(); break;

                case 24: weapon = new AreaWarHammer(); break;

                case 25: weapon = new AreaWarMace(); break;

                case 26: weapon = new AreaBardiche(); break;

                case 27: weapon = new AreaHalberd(); break;

                case 28: weapon = new AreaScythe(); break;

                case 29: weapon = new AreaBladedStaff(); break;

                case 30: weapon = new AreaDoubleBladedStaff(); break;

                case 31: weapon = new AreaPike(); break;

                case 32: weapon = new AreaPitchfork(); break;

                case 33: weapon = new AreaShortSpear(); break;

                case 34: weapon = new AreaSpear(); break;

                case 35: weapon = new AreaWarFork(); break;

                case 36: weapon = new AreaBlackStaff(); break;

                case 37: weapon = new AreaGnarledStaff(); break;

                case 38: weapon = new AreaQuarterStaff(); break;

                case 39: weapon = new AreaShepherdsCrook(); break;

                case 40: weapon = new AreaBoneHarvester(); break;

                case 41: weapon = new AreaBroadSword(); break;

                case 42: weapon = new AreaCrescentBlade(); break;

                case 43: weapon = new AreaCutlass(); break;

                case 44: weapon = new AreaKatana(); break;

                case 45: weapon = new AreaKryss(); break;

                case 46: weapon = new AreaLance(); break;

                case 47: weapon = new AreaLongSword(); break;

                case 48: weapon = new AreaScimitar(); break;

                case 49: weapon = new AreaVikingSword(); break;
                }

                if (weapon != null)
                {
                    weapon.Name = weapon.Name + " of Toxic Tundra";
                    weapon.AosElementDamages.Cold           = 20;
                    weapon.AosElementDamages.Physical       = 20;
                    weapon.AosElementDamages.Poison         = 20;
                    weapon.WeaponAttributes.HitPoisonArea   = 50;
                    weapon.WeaponAttributes.HitPhysicalArea = 50;
                    weapon.WeaponAttributes.HitColdArea     = 50;
                    weapon.Quality  = m_Deed.Quality;
                    weapon.Resource = m_Deed.Resource;
                    if (m_Deed.Crafter != null)
                    {
                        weapon.Crafter = m_Deed.Crafter;
                    }
                    m_From.Backpack.DropItem(weapon);
                    m_From.SendMessage("You summon the Area Weapon!");
                    m_Deed.Delete();
                }
            }