Anasayfa
UO Sunucular
Forumlar
Profilim
UO-Developer.COM
Bilinmiyor 18-08-2009
using System; 
using System.Collections;
using Server;
using Server.Items;
using Server.Mobiles;
using Server.Gumps;

namespace Server.Scripts.Commands
{
public class pot
{
public static void Initialize()
{
Server.Commands.Register( "Pots", AccessLevel.Player, new CommandEventHandler( pot_OnCommand ) );
}
public static void pot_OnCommand( CommandEventArgs e )
{
int batwing = e.Mobile.Backpack.GetAmount( typeof( Bandage ) );
int blackpearl = e.Mobile.Backpack.GetAmount( typeof( BaseHealPotion ) );
int bloodmoss = e.Mobile.Backpack.GetAmount( typeof( BaseCurePotion ) );
int daemonblood = e.Mobile.Backpack.GetAmount( typeof( BaseStrengthPotion ) );
int garlic = e.Mobile.Backpack.GetAmount( typeof( BaseAgilityPotion ) );
int ginseng = e.Mobile.Backpack.GetAmount( typeof( BaseRefreshPotion ) );
int gravedust = e.Mobile.Backpack.GetAmount( typeof( BasePoisonPotion ) );
int mandrake = e.Mobile.Backpack.GetAmount( typeof( NightSightPotion ) );

e.Mobile.CloseGump( typeof ( PotGump ) );
e.Mobile.SendGump( new PotGump( batwing , blackpearl , bloodmoss , daemonblood , garlic , ginseng , gravedust , mandrake ) );
}
}
}

UO-Dev SPONSOR

Paylaş

XFacebook

Faydalı mı?

Bu içerik size yardımcı oldu mu?

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

Paylaş

XFacebook

Faydalı mı?

Bu içerik size yardımcı oldu mu?