Anasayfa
UO Sunucular
Forumlar
Profilim
Lord Streamline 19-08-2009
/*
* Created by SharpDevelop.
* User: Steve
* Date: 09.07.2004
* Time: 20:07
* Site: www.gamesfor.net
*/
using System;
using System.Collections;
using Server;
using Server.Items;
using Server.Mobiles;

namespace Server.Scripts.Commands
{

public class UnEquip
  {
   public static void Initialize()
   {
     Server.Commands.Register( "Soyun", AccessLevel.Player, new CommandEventHandler( UnEquip_OnCommand ) );
     //Server.Commands.Register( "Unequip", AccessLevel.Player, new CommandEventHandler( UnEquip_OnCommand ) );
   }

   [Usage( "UnEquip" )]
   public static void UnEquip_OnCommand( CommandEventArgs e )
   {
     
        Container mobilePack = e.Mobile.Backpack;
        ArrayList equipitems = new ArrayList(e.Mobile.Items);
        foreach (Item equiped in equipitems)
        {
        if ((equiped.Layer != Layer.Bank) && (equiped.Layer != Layer.Backpack) && (equiped.Layer != Layer.Hair) && (equiped.Layer != Layer.FacialHair) && (equiped.Layer != Layer.Mount))
        {
        mobilePack.DropItem( equiped );
        }
        }

       
    }
  }
}

UO-Dev SPONSOR

UO-Dev SPONSOR

Henüz yorum yapılmamış. Yorum yazabilmek için giriş yapmanız gerekir.

Üyelerin oylama ortalaması (10 dışında) :

Henüz Oylanmamış

Oylar: 0