Kod:
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 ) );
}
}
}
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 ) );
}
}
}
Yorumlar
Henüz yorum yapılmamıştır.
|
OylamalarOylama :![]()
Üyelerin oylama ortalaması (10 dışında) : Henüz Oylanmamış
Oylar: 0 |
Benzer Sayfalar
| Sayfalar | Yorumlar | Gönderen | Tarih |







