UO-Dev Arama


Yazar: Lord Streamline
Tarih: 23-08-2009 16:03


Paylaş : Paylaş

Kod:
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;
            }
         }
      }
   }
}



Yorumlar

Henüz yorum yapılmamıştır.

Oylamalar

Oylama :
Üyelerin oylama ortalaması (10 dışında) : Henüz Oylanmamış   
Oylar: 0

Benzer Sayfalar

SayfalarYorumlarGönderenTarih
Baslangıc Deed0Robell11-02-2012
Aile Deed0Weight17-04-2011
Str-Dex-Deed0Lucky26-02-2010
Runic Deed0deepanti31-08-2009
Minor Artifact Deed0ubeyid23-08-2009


Keywords:

ultima online, RunUO, ultima online download, sphere scripting, role play, uo grafik, second age ultima, uo loop, macroman, pvp server, server kurulumu, sphere, multool, ml mulls, 56b 55r 55i, htmlgumps, client 4x, client edit, sphere release, osi, rp server, sunucular, ghost mouse, inside uo, kingdom reborn, stygian abyss, uo nasıl oynanır, mondain's legacy, age of shadows, world build, grandmaster, ultima online pvp, player dosyaları, ultima online indir, frp game, RunUO 1.0.0, razor, uo rice, hue editör, skill tools, ultima online patch, axis, world build, verdata, verdata patcher, map editör, gump editör, mul patcher, aos mulls, scriptler, anim edit, anim publish, hues mul, hosting vps, event dialog, account sistemi, skill gain, static yapımı,