Anasayfa
UO Sunucular
Forumlar
Profilim
UO-Developer.COM
Lord Streamline 23-08-2009
using System; 
using Server;
using Server.Network;
using Server.Prompts;
using Server.Items;
using Server.Guilds;
using Server.Gumps;
using Server.Mobiles;
using Server.Targeting;

namespace Server.Misc
{
public class EthyDeed : Item // Create the item class which is derived from the base item class
{
[Constructable]
public EthyDeed() : base( 0x14F0 )
{
Weight = 1.0;
Hue = 2118;
Name = "Ethereal Reward Deed";
}

public EthyDeed( Serial serial ) : base( serial )
{
}

public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );

writer.Write( (int) 0 ); // version
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );

int version = reader.ReadInt();
}

public override bool DisplayLootType{ get{ return false; } }

public override void OnDoubleClick( Mobile from ) // Override double click of the deed to call our target
{
if ( !IsChildOf( from.Backpack ) ) // Make sure its in their pack
{
from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
}
else
{
         from.SendGump( new EthyGump( from ) );
this.Delete();
}
}
}
   public class EthyGump : Gump
   {
    private const int LabelColor = 0x7FFF;
private const int SelectedColor = 0x421F;
private const int DisabledColor = 0x4210;

private const int LabelColor32 = 0xFFFFFF;
private const int SelectedColor32 = 0x8080FF;
private const int DisabledColor32 = 0x808080;

private const int LabelHue = 0x480;
private const int YellowHue = 1161;
private const int RedHue = 0x20;
public EthyGump( Mobile owner ) : base( 300,100 )
{
this.Closable=false;
this.Disposable=false;
this.Dragable=true;
this.Resizable=false;
this.AddPage(0);
this.AddBackground(15, 15, 190, 265, 3000);///Middle lable background
//this.AddBackground(15, 200, 190, 80, 3000);///bottom lable background
//this.AddBackground(15, 15, 190, 20, 3000);///Top Lable BackGround
this.AddLabel(30, 15, 32, @"Ethereal Listesi");
this.AddButton(25, 50, 1209, 1210, 8, GumpButtonType.Reply, 0);
this.AddButton(25, 70, 1209, 1210, 1, GumpButtonType.Reply, 0);
this.AddButton(25, 90, 1209, 1210, 2, GumpButtonType.Reply, 0);
this.AddButton(25, 110, 1209, 1210, 3, GumpButtonType.Reply, 0);
this.AddButton(25, 130, 1209, 1210, 4, GumpButtonType.Reply, 0);
this.AddButton(25, 150, 1209, 1210, 6, GumpButtonType.Reply, 0);
this.AddButton(25, 170, 1209, 1210, 7, GumpButtonType.Reply, 0);
this.AddButton(180, 15, 1209, 1210, 0, GumpButtonType.Reply, 0);//close
this.AddLabel(140, 15, 587, @"Iptal");
//this.AddButton(25, 180, 1209, 1210, 5, GumpButtonType.Reply, 0);
this.AddLabel(50, 50, 115, @"Ostard");
this.AddLabel(50, 70, 115, @"Ridgeback");
this.AddLabel(50, 90, 115, @"Unicorn");
this.AddLabel(50, 110, 115, @"Llama");
this.AddLabel(50, 130, 115, @"Kirin");
this.AddLabel(50, 150, 115, @"Horse");
this.AddLabel(50, 170, 115, @"Beetle");
this.AddLabel(30, 205, 32, @"Scripted By Sephiroth");
this.AddLabel(30, 230, 32, @"");
this.AddLabel(30, 250, 32, @"");


}

public override void OnResponse( NetState state, RelayInfo info ) 
      {
         Mobile from = state.Mobile;
         //EthyDeed ed = ed.Delete();
         switch ( info.ButtonID )
         {
            case 0:
            {
   from.AddToBackpack(new EthyDeed());
               from.SendMessage( "Ethereal Listesi'ni Iptal Ettiniz Birdaha Kullanmak Için Çantanızdaki Ethereal Deed'e Tıklayınız..." );
   from.PlaySound( 521 );
               break;
            }
            case 8:
            {
   from.AddToBackpack(new EtherealOstard());
               from.SendMessage( "A Ethereal Ostard Seçtiğiniz Binek Çantanıza Düşmüştür!" );
   from.PlaySound( 521 );
               break;
            }

            case 1: 
            {
   from.AddToBackpack(new EtherealRidgeback());
               from.SendMessage( "A Ethereal Ridgeback Seçtiğiniz Binek Çantanıza Düşmüştür!" );
   from.PlaySound( 521 );

   break;
            }
            case 2:
            {
   from.AddToBackpack(new EtherealUnicorn());
               from.SendMessage( "A Ethereal Unicorn Seçtiğiniz Binek Çantanıza Düşmüştür!" );
   from.PlaySound( 521 );

   break;
            }

            case 3:
            {
   from.AddToBackpack(new EtherealLlama());
               from.SendMessage( "A Ethereal Llama Seçtiğiniz Binek Çantanıza Düşmüştür!" );
   from.PlaySound( 521 );

   break;
            }
            case 4:
            {
   from.AddToBackpack(new EtherealKirin());
               from.SendMessage( "A Ethereal Kirin Seçtiğiniz Binek Çantanıza Düşmüştür!" );
   from.PlaySound( 521 );

   break;
            }
            case 5:
            {
//   from.AddToBackpack(new EtherealSkeletalMount());
               from.SendMessage( "A Ethereal Skeletal Mount Seçtiğiniz Binek Çantanıza Düşmüştür!" );
   from.PlaySound( 521 );

   break;
            }
            case 6:
            {
   from.AddToBackpack(new EtherealHorse());
               from.SendMessage( "A Ethereal Horse Mount Seçtiğiniz Binek Çantanıza Düşmüştür!" );
   from.PlaySound( 521 );

   break;
            }
            case 7:
            {
   from.AddToBackpack(new EtherealBeetle());
               from.SendMessage( "A Ethereal Beetle Mount Seçtiğiniz Binek Çantanıza Düşmüştür!" );
   from.PlaySound( 521 );

   break;
            }
         }
      }
   }
}

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?