Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Server;
- using Server.Gumps;
- using Server.Network;
- using Server.Commands;
- namespace Server.Gumps
- {
- public class NothyaKharemGump : Gump
- {
- Mobile caller;
- Mobile myMobile;
- public static void Initialize()
- {
- CommandSystem.Register("Gumpor", AccessLevel.GameMaster, new CommandEventHandler(Gumpor_OnCommand));
- }
- [Usage("NothyaKharemGump")]
- [Description("Makes a call to your custom gump.")]
- public static void Gumpor_OnCommand(CommandEventArgs e)
- {
- Mobile from = e.Mobile;
- if (from.HasGump(typeof(NothyaKharemGump)))
- from.CloseGump(typeof(NothyaKharemGump));
- from.SendGump(new NothyaKharemGump(from));
- }
- public NothyaKharemGump(Mobile from) : this()
- {
- myMobile = from;
- caller = from;
- }
- public NothyaKharemGump() : base( 0, 0 )
- {
- this.Closable=false;
- this.Disposable=true;
- this.Dragable=true;
- this.Resizable=true;
- AddPage(0);
- AddBackground(0, 210, 300, 400, 3500);
- AddImage(20, 230, 7009);
- AddLabel(120, 240, 149, @"Nothya Kha'rem");
- AddHtml( 20, 300, 260, 200, @"<I>Näet miehen uppoutuvan kääröihin. Rustaillessaan merkintöjä hän nostaa katseensa hieman ylemmäs sinua kohden ja viimeistelee vielä merkintönsä. Mies tuijottaa kylmän viileästi häiriköijää.</I><BR><BR> Kas, tervehdys. En huomannutkaan teitä, oliko teillä jotain tärkeääkin asiaa? Minulla on työt kesken, eikä sopisi häiritä turhaan...", (bool)false, (bool)false);
- AddRadio(20, 510, 208, 209, false, 1);
- AddRadio(20, 530, 208, 209, false, 2);
- AddRadio(20, 550, 208, 209, false, 3);
- AddButton(200, 570, 247, 248, 20, GumpButtonType.Reply, 0);
- AddHtml( 50, 510, 300, 20, @"Ei minulla mitään...", (bool)false, (bool)false);
- AddHtml( 50, 530, 300, 20, @"Haista paska!", (bool)false, (bool)false);
- AddHtml( 50, 550, 300, 20, @"Kiinostuin, mitä satut tekemään.", (bool)false, (bool)false);
- }
- public override void OnResponse( NetState state, RelayInfo info )
- {
- Mobile from = state.Mobile;
- if( info.ButtonID == 20 )
- {
- string toSay = "";
- for( int i = 0; i < info.Switches.Length; i++ )
- {
- int m = info.Switches[i];
- switch( m )
- {
- case 1:
- toSay += "Päätit keskustelun."; from.PlaySound( 1049 );
- // Muokkaa näitä jos haluat
- myMobile.Animate(16, 5, 1, true, false, 0);
- break;
- case 2:
- toSay += "Suututit hänet!"; from.FixedEffect( 0x374A, 10, 16 );
- from.PlaySound( 0x474 ); from.PlaySound( 1098 );
- from.Poison = Poison.Deadly;
- // Muokkaa näitä jos haluat
- myMobile.Animate(16, 5, 1, true, false, 0);
- break;
- case 3:
- toSay += "Mies nyökkää ja näyttää sinulle kääröjä, joissa on tuoreella musteella merkittyjä riimuja.";
- from.PlaySound( 1097 );
- // Muokkaa näitä jos haluat
- myMobile.Animate(16, 5, 1, true, false, 0);
- break;
- }
- }
- from.SendMessage( toSay );
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement