Kod:
using System;
using Server;
using Server.Misc;
using Server.Items;
using Server.Network;
using Server.Gumps;
namespace Server.Items
{
public class GezmeKitabi : Item
{
[Constructable]
public GezmeKitabi() : base( 4030 )
{
Weight = 1.0;
Hue = 1161;
Name = "Gezinme Kitabi";
LootType = LootType.Blessed;
}
public override void OnDoubleClick( Mobile m )
{
if ( m.AccessLevel > AccessLevel.Player )
{
m.SendGump( new GezmeGump() );
}
else
{
m.SendMessage( 1194,"Bunu Kullanacak Yetkiniz Yok.Gereken Yetki Derecesi = Counselor!" );
}
}
public GezmeKitabi( 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();
}
}
}
namespace Server.Gumps
{
public class GezmeGump : Gump
{
public GezmeGump() :base( 100, 50 )
{
this.Closable = true;
this.Disposable = true;
this.Dragable = true;
this.Resizable = true;
this.AddPage(0);
this.AddBackground(15, 52, 460, 288, 3500); // Background 1
this.AddButton(30, 110, 9762, 9763, 1, GumpButtonType.Reply, 0); // Button 1
this.AddButton(30, 140, 9762, 9763, 2, GumpButtonType.Reply, 0); // Button 2
this.AddButton(30, 170, 9762, 9763, 3, GumpButtonType.Reply, 0); // Button 3
this.AddButton(30, 200, 9762, 9763, 4, GumpButtonType.Reply, 0); // Button 4
this.AddButton(30, 230, 9762, 9763, 5, GumpButtonType.Reply, 0); // Button 5
this.AddButton(30, 260, 9762, 9763, 6, GumpButtonType.Reply, 0); // Button 6
this.AddButton(180, 110, 9762, 9763, 7, GumpButtonType.Reply, 0); // Button 7
this.AddButton(180, 140, 9762, 9763, 8, GumpButtonType.Reply, 0); // Button 8
this.AddButton(180, 170, 9762, 9763, 9, GumpButtonType.Reply, 0); // Button 9
this.AddButton(180, 200, 9762, 9763, 10, GumpButtonType.Reply, 0); // Button 10
this.AddButton(180, 230, 9762, 9763, 11, GumpButtonType.Reply, 0); // Button 11
this.AddButton(180, 260, 9762, 9763, 12, GumpButtonType.Reply, 0); // Button 12
this.AddButton(320, 110, 9762, 9763, 13, GumpButtonType.Reply, 0); // Button 13
this.AddButton(320, 140, 9762, 9763, 14, GumpButtonType.Reply, 0); // Button 14
this.AddButton(320, 170, 9762, 9763, 15, GumpButtonType.Reply, 0); // Button 15
this.AddButton(320, 200, 9762, 9763, 16, GumpButtonType.Reply, 0); // Button 16
this.AddButton(320, 230, 9762, 9763, 17, GumpButtonType.Reply, 0); // Button 17
this.AddButton(320, 260, 9762, 9763, 18, GumpButtonType.Reply, 0); // Button 18
this.AddButton(213, 301, 242, 241, 19, GumpButtonType.Reply, 0); // Button 19
this.AddLabel(135, 70, 1259, @"GITMEK ISTEDIGIN YERI SEC / FataLErroR"); // Label 1
this.AddLabel(55, 110, 37, @"Supply RooM"); // Label 2
this.AddLabel(55, 140, 37, @"Zar Turnuvasi Alani"); // Label 3
this.AddLabel(55, 170, 37, @"Yapim AsamasinDa//"); // Label 4
this.AddLabel(55, 200, 37, @"PvP Arena"); // Label 5
this.AddLabel(55, 230, 37, @"1vs1 DueL"); // Label 6
this.AddLabel(55, 260, 37, @"1vs1/2 DueL"); // Label 7
this.AddLabel(205, 110, 37, @"2vs2 DueL"); // Label 8
this.AddLabel(205, 140, 37, @"a"); // Label 9
this.AddLabel(205, 170, 37, @"Vortex Kosu"); // Label 10
this.AddLabel(205, 200, 37, @"Engelli Kosu"); // Label 11
this.AddLabel(205, 230, 37, @"Bole Bi Yer Yok"); // Label 12
this.AddLabel(205, 260, 37, @"Engelli Kosu"); // Label 13
this.AddLabel(345, 110, 37, @"Bole Bi YeR Yok"); // Label 14
this.AddLabel(345, 140, 37, @"At Yarisi"); // Label 15
this.AddLabel(345, 170, 79, @"Malasa Geç"); // Label 16
this.AddLabel(345, 200, 79, @"Trammele Geç"); // Label 17
this.AddLabel(345, 230, 79, @"Feluccaya Geç"); // Label 18
this.AddLabel(345, 261, 79, @"Ilshenara Geç"); // Label 19
}
public override void OnResponse( NetState state, RelayInfo info )
{
int button = info.ButtonID;
Mobile from = state.Mobile;
switch( button )
{
// Button 1
case 0:
{
from.SendMessage( 1153,"Kolay Gelsin sayin {0}", from.Name );
}
break;
// Button 2
case 1:
{
from.MoveToWorld( new Point3D( 5450, 1197, 0 ), Map.Trammel );
from.SendMessage( "Turkiye Pvp Supply'e Gittiniz Sayin {0}", from.Name );
}
break;
// Button 3
case 2:
{
from.MoveToWorld( new Point3D( 5482, 1200, 0 ), Map.Trammel );
from.SendMessage( "Zar Turnuvasi Alanina Gittiniz Sayin {0}", from.Name );
}
break;
// Button 4
case 3:
{
from.SendMessage( "Sayin {0}, Su Anda Boyle Bir Alan Yoktur...", from.Name );
}
break;
// Button 5
case 4:
{
from.MoveToWorld( new Point3D( 5434, 1164, 0 ), Map.Felucca );
from.SendMessage( "PvP Arena'a Gittiniz Sayin {0}", from.Name );
}
break;
// Button 6
case 5:
{
from.MoveToWorld( new Point3D( 5418, 1104, 0 ), Map.Felucca );
from.SendMessage( "DUEL ARENA 1VS1/1 Hosgeldiniz Sayin{0}", from.Name );
}
break;
// Button 7
case 6:
{
from.MoveToWorld( new Point3D( 5419, 1088, 0 ), Map.Felucca );
from.SendMessage( "DUEL ARENA 1VS1/2 Sayin {0}", from.Name );
}
break;
// Button 8
case 7:
{
from.MoveToWorld( new Point3D( 5450, 1091, 0 ), Map.Felucca );
from.SendMessage( "Engelli Kosuya Hos Geldiniz, Sayin {0}", from.Name );
}
break;
// Button 9
case 8:
{
from.SendMessage( "Sayin {0}, Boyle Bir Alan Su Anda Yoktur...", from.Name );
}
break;
// Button 10
case 9:
{
from.MoveToWorld( new Point3D( 5467, 1159, 0 ), Map.Felucca );
from.SendMessage( "Votex Kosu Alanýn'a Gittiniz Sayin {0}", from.Name );
}
break;
// Button 11
case 10:
{
from.MoveToWorld( new Point3D( 5488, 1230, 0 ), Map.Trammel );
from.SendMessage( "Engelli Kosu Alanina Gittiniz Sayin {0}", from.Name );
}
break;
// Button 12
case 11:
{
from.MoveToWorld( new Point3D( 2503, 552, 0 ), Map.Felucca );
from.SendMessage( "Minoc Bankaya Gittiniz Sayin {0}", from.Name );
}
break;
// Button 13
case 12:
{
from.SendMessage( "Sayin {0}, Boyle Bir Alan Su Anda Yoktur...", from.Name );
}
break;
// Button 14
case 13:
{
from.SendMessage( "Sayin {0}, Boyle Bir Alan Su Anda Yoktur...", from.Name );
}
break;
// Button 15
case 14:
{
from.MoveToWorld( new Point3D( 5580, 1607, 0 ), Map.Trammel );
from.SendMessage( "At Yarisi Alanina Gittiniz Sayin {0}", from.Name );
}
break;
// Button 16
case 15:
{
from.MoveToWorld( new Point3D( from.X, from.Y, from.Z ), Map.Malas );
from.SendMessage( "Malasa Gittiniz Sayin {0}", from.Name );
}
break;
// Button 17
case 16:
{
from.MoveToWorld( new Point3D( from.X, from.Y, from.Z ), Map.Trammel );
from.SendMessage( "Trammele Gittiniz Sayin {0}", from.Name );
}
break;
// Button 18
case 17:
{
from.MoveToWorld( new Point3D( from.X, from.Y, from.Z ), Map.Felucca );
from.SendMessage( "Feluccaya Gittiniz Sayin {0}", from.Name );
}
break;
// Button 19
case 18:
{
from.MoveToWorld( new Point3D( from.X, from.Y, from.Z ), Map.Ilshenar );
from.SendMessage( "Ilshenara Gittiniz Sayin {0}", from.Name );
}
break;
//Button Cikis
case 19:
{
from.CloseGump( typeof( GezmeGump ) );
from.SendMessage( 1153, "Kolay Gelsin Sayin {0}", from.Name );
}
break;
}
}
}
}
using Server;
using Server.Misc;
using Server.Items;
using Server.Network;
using Server.Gumps;
namespace Server.Items
{
public class GezmeKitabi : Item
{
[Constructable]
public GezmeKitabi() : base( 4030 )
{
Weight = 1.0;
Hue = 1161;
Name = "Gezinme Kitabi";
LootType = LootType.Blessed;
}
public override void OnDoubleClick( Mobile m )
{
if ( m.AccessLevel > AccessLevel.Player )
{
m.SendGump( new GezmeGump() );
}
else
{
m.SendMessage( 1194,"Bunu Kullanacak Yetkiniz Yok.Gereken Yetki Derecesi = Counselor!" );
}
}
public GezmeKitabi( 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();
}
}
}
namespace Server.Gumps
{
public class GezmeGump : Gump
{
public GezmeGump() :base( 100, 50 )
{
this.Closable = true;
this.Disposable = true;
this.Dragable = true;
this.Resizable = true;
this.AddPage(0);
this.AddBackground(15, 52, 460, 288, 3500); // Background 1
this.AddButton(30, 110, 9762, 9763, 1, GumpButtonType.Reply, 0); // Button 1
this.AddButton(30, 140, 9762, 9763, 2, GumpButtonType.Reply, 0); // Button 2
this.AddButton(30, 170, 9762, 9763, 3, GumpButtonType.Reply, 0); // Button 3
this.AddButton(30, 200, 9762, 9763, 4, GumpButtonType.Reply, 0); // Button 4
this.AddButton(30, 230, 9762, 9763, 5, GumpButtonType.Reply, 0); // Button 5
this.AddButton(30, 260, 9762, 9763, 6, GumpButtonType.Reply, 0); // Button 6
this.AddButton(180, 110, 9762, 9763, 7, GumpButtonType.Reply, 0); // Button 7
this.AddButton(180, 140, 9762, 9763, 8, GumpButtonType.Reply, 0); // Button 8
this.AddButton(180, 170, 9762, 9763, 9, GumpButtonType.Reply, 0); // Button 9
this.AddButton(180, 200, 9762, 9763, 10, GumpButtonType.Reply, 0); // Button 10
this.AddButton(180, 230, 9762, 9763, 11, GumpButtonType.Reply, 0); // Button 11
this.AddButton(180, 260, 9762, 9763, 12, GumpButtonType.Reply, 0); // Button 12
this.AddButton(320, 110, 9762, 9763, 13, GumpButtonType.Reply, 0); // Button 13
this.AddButton(320, 140, 9762, 9763, 14, GumpButtonType.Reply, 0); // Button 14
this.AddButton(320, 170, 9762, 9763, 15, GumpButtonType.Reply, 0); // Button 15
this.AddButton(320, 200, 9762, 9763, 16, GumpButtonType.Reply, 0); // Button 16
this.AddButton(320, 230, 9762, 9763, 17, GumpButtonType.Reply, 0); // Button 17
this.AddButton(320, 260, 9762, 9763, 18, GumpButtonType.Reply, 0); // Button 18
this.AddButton(213, 301, 242, 241, 19, GumpButtonType.Reply, 0); // Button 19
this.AddLabel(135, 70, 1259, @"GITMEK ISTEDIGIN YERI SEC / FataLErroR"); // Label 1
this.AddLabel(55, 110, 37, @"Supply RooM"); // Label 2
this.AddLabel(55, 140, 37, @"Zar Turnuvasi Alani"); // Label 3
this.AddLabel(55, 170, 37, @"Yapim AsamasinDa//"); // Label 4
this.AddLabel(55, 200, 37, @"PvP Arena"); // Label 5
this.AddLabel(55, 230, 37, @"1vs1 DueL"); // Label 6
this.AddLabel(55, 260, 37, @"1vs1/2 DueL"); // Label 7
this.AddLabel(205, 110, 37, @"2vs2 DueL"); // Label 8
this.AddLabel(205, 140, 37, @"a"); // Label 9
this.AddLabel(205, 170, 37, @"Vortex Kosu"); // Label 10
this.AddLabel(205, 200, 37, @"Engelli Kosu"); // Label 11
this.AddLabel(205, 230, 37, @"Bole Bi Yer Yok"); // Label 12
this.AddLabel(205, 260, 37, @"Engelli Kosu"); // Label 13
this.AddLabel(345, 110, 37, @"Bole Bi YeR Yok"); // Label 14
this.AddLabel(345, 140, 37, @"At Yarisi"); // Label 15
this.AddLabel(345, 170, 79, @"Malasa Geç"); // Label 16
this.AddLabel(345, 200, 79, @"Trammele Geç"); // Label 17
this.AddLabel(345, 230, 79, @"Feluccaya Geç"); // Label 18
this.AddLabel(345, 261, 79, @"Ilshenara Geç"); // Label 19
}
public override void OnResponse( NetState state, RelayInfo info )
{
int button = info.ButtonID;
Mobile from = state.Mobile;
switch( button )
{
// Button 1
case 0:
{
from.SendMessage( 1153,"Kolay Gelsin sayin {0}", from.Name );
}
break;
// Button 2
case 1:
{
from.MoveToWorld( new Point3D( 5450, 1197, 0 ), Map.Trammel );
from.SendMessage( "Turkiye Pvp Supply'e Gittiniz Sayin {0}", from.Name );
}
break;
// Button 3
case 2:
{
from.MoveToWorld( new Point3D( 5482, 1200, 0 ), Map.Trammel );
from.SendMessage( "Zar Turnuvasi Alanina Gittiniz Sayin {0}", from.Name );
}
break;
// Button 4
case 3:
{
from.SendMessage( "Sayin {0}, Su Anda Boyle Bir Alan Yoktur...", from.Name );
}
break;
// Button 5
case 4:
{
from.MoveToWorld( new Point3D( 5434, 1164, 0 ), Map.Felucca );
from.SendMessage( "PvP Arena'a Gittiniz Sayin {0}", from.Name );
}
break;
// Button 6
case 5:
{
from.MoveToWorld( new Point3D( 5418, 1104, 0 ), Map.Felucca );
from.SendMessage( "DUEL ARENA 1VS1/1 Hosgeldiniz Sayin{0}", from.Name );
}
break;
// Button 7
case 6:
{
from.MoveToWorld( new Point3D( 5419, 1088, 0 ), Map.Felucca );
from.SendMessage( "DUEL ARENA 1VS1/2 Sayin {0}", from.Name );
}
break;
// Button 8
case 7:
{
from.MoveToWorld( new Point3D( 5450, 1091, 0 ), Map.Felucca );
from.SendMessage( "Engelli Kosuya Hos Geldiniz, Sayin {0}", from.Name );
}
break;
// Button 9
case 8:
{
from.SendMessage( "Sayin {0}, Boyle Bir Alan Su Anda Yoktur...", from.Name );
}
break;
// Button 10
case 9:
{
from.MoveToWorld( new Point3D( 5467, 1159, 0 ), Map.Felucca );
from.SendMessage( "Votex Kosu Alanýn'a Gittiniz Sayin {0}", from.Name );
}
break;
// Button 11
case 10:
{
from.MoveToWorld( new Point3D( 5488, 1230, 0 ), Map.Trammel );
from.SendMessage( "Engelli Kosu Alanina Gittiniz Sayin {0}", from.Name );
}
break;
// Button 12
case 11:
{
from.MoveToWorld( new Point3D( 2503, 552, 0 ), Map.Felucca );
from.SendMessage( "Minoc Bankaya Gittiniz Sayin {0}", from.Name );
}
break;
// Button 13
case 12:
{
from.SendMessage( "Sayin {0}, Boyle Bir Alan Su Anda Yoktur...", from.Name );
}
break;
// Button 14
case 13:
{
from.SendMessage( "Sayin {0}, Boyle Bir Alan Su Anda Yoktur...", from.Name );
}
break;
// Button 15
case 14:
{
from.MoveToWorld( new Point3D( 5580, 1607, 0 ), Map.Trammel );
from.SendMessage( "At Yarisi Alanina Gittiniz Sayin {0}", from.Name );
}
break;
// Button 16
case 15:
{
from.MoveToWorld( new Point3D( from.X, from.Y, from.Z ), Map.Malas );
from.SendMessage( "Malasa Gittiniz Sayin {0}", from.Name );
}
break;
// Button 17
case 16:
{
from.MoveToWorld( new Point3D( from.X, from.Y, from.Z ), Map.Trammel );
from.SendMessage( "Trammele Gittiniz Sayin {0}", from.Name );
}
break;
// Button 18
case 17:
{
from.MoveToWorld( new Point3D( from.X, from.Y, from.Z ), Map.Felucca );
from.SendMessage( "Feluccaya Gittiniz Sayin {0}", from.Name );
}
break;
// Button 19
case 18:
{
from.MoveToWorld( new Point3D( from.X, from.Y, from.Z ), Map.Ilshenar );
from.SendMessage( "Ilshenara Gittiniz Sayin {0}", from.Name );
}
break;
//Button Cikis
case 19:
{
from.CloseGump( typeof( GezmeGump ) );
from.SendMessage( 1153, "Kolay Gelsin Sayin {0}", from.Name );
}
break;
}
}
}
}
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 |
| Gezinme Kitabı | 0 | ubeyid | 23-08-2009 |
| Duyuru Kitabı | 0 | Leppo | 22-08-2009 |







