RunUo.Korean.Forum RunUo.Korean.Forum
RunUo(·±À¯¿À)¿¡ °üÇÑ Çѱ¹ Æ÷·³ »çÀÌÆ®
 

1°èÁ¤´ç 1ÁýÀÌ»ó Çã¿ëÇϰíÀÚ ÇÒ¶§..
Click here to go to the original topic

 
       RunUo.Korean.Forum -> About RunUo
ÀÌÀü ±Û :: ´ÙÀ½ ±Û  
±Û ¾´ÀÌ ¸Þ¼¼Áö ³»¿ë
GangPung



°¡ÀÔÀÏ: 2003³â 12¿ù 22ÀÏ
°Ô½Ã¹°: 322
ÁÖ ¼Ò: ´ëÇѹα¹

±Û ÀÛ¼º½Ã°£ : 2003-12-26 ±Ý 1:24 pm    Á¦¸ñ: 1°èÁ¤´ç 1ÁýÀÌ»ó Çã¿ëÇϰíÀÚ ÇÒ¶§..  

ÇöÀç ±âº» °ªÀ¸·Î ·±À¯¿À º£Å¸ 36¿¡¼­´Â 1°èÁ¤´ç 1Áý¸¸À» Çã¿ëÇϰí ÀÖ½À´Ï´Ù.

À̺κп¡ ´ëÇØ¼­ 1°èÁ¤´ç 2Áý, ¶Ç´Â 3ÁýÀÌ»óÀ» Çã¿ëÇϰíÀÚ ÇÑ´Ù¸é...

Scripts\Multis\BaseHouse.cs ÆÄÀÏÀ» ¼öÁ¤ÇؾßÇÕ´Ï´Ù.

1°èÁ¤´ç 2ÁýÀ» Çã¿ëÇϰíÀÚ ÇÒ¶§...

¶óÀÎ 2057
ÄÚµå :           for ( int i = 0; i < list.Count; ++i )

¸¦ ¾Æ·¡¿Í °°ÀÌ ¼öÁ¤Çϼ¼¿ä
ÄÚµå :           for ( int i = 1; i < list.Count; ++i )


¶óÀÎ 2075, 2090 µÎ±ºµ¥¸¦ ¾Æ·¡¿Í °°ÀÌ ¼öÁ¤Çϼ¼¿ä
ÄÚµå :           for ( int i = 0; i < 5; ++i )

ÄÚµå :           for ( int i = 0; i < 10; ++i )


3Áý ÀÌ»ó Çã¿ëÇϰíÀÚÇÑ´Ù¸é À§ 2057¶óÀο¡¼­´Â i = 2¸¦
¹Ø¿¡ ¶óÀÎ µÎ±ºµ¥¿¡¼­´Â 5ÀÇ ¹è¼ö·Î 15°ªÀ» ÇØÁֽøéµË´Ï´Ù.

WarningGump1.cs ÆÄÀÏÀ» ¾Æ·¡¿Í °°ÀÌ »ý¼ºÇÑ´Ù.
ÄÚµå : 
using System;
using Server;

namespace Server.Gumps
{
   public delegate void WarningGump1Callback( Mobile from, bool okay, object state );

   public class WarningGump1 : Gump
   {
      private WarningGump1Callback m_Callback;
      private object m_State;

      public WarningGump1( int header, int headerColor, object content, int contentColor, int width, int height, WarningGump1Callback callback, object state ) : base( (640 - width) / 2, (480 - height) / 2 )
      {
         m_Callback = callback;
         m_State = state;

         Closable = false;

         AddPage( 0 );

         AddBackground( 0, 0, width, height, 5054 );

         AddImageTiled( 10, 10, width - 20, 20, 2624 );
         AddAlphaRegion( 10, 10, width - 20, 20 );
         AddHtmlLocalized( 10, 10, width - 20, 20, header, headerColor, false, false );

         AddImageTiled( 10, 40, width - 20, height - 80, 2624 );
         AddAlphaRegion( 10, 40, width - 20, height - 80 );

         if ( content is int )
            AddLabel( 10, 40, 33,"You are about to place a new house." );
            AddLabel( 10, 60, 33,"You will not be able to place another house or " );
            AddLabel( 10, 80, 33,"have one transferred to you for one (1) real-life week." );
            AddLabel( 10, 100, 33,"Once you accept these terms," );
            AddLabel( 10, 120, 33," these effects cannot be reversed." );
            AddLabel( 10, 140, 33,"If you are absolutely certain you wish to proceed, " );
            AddLabel( 10, 160, 33,"click the button next to OKAY below." );
            AddLabel( 10, 180, 33,"If you do not wish to trade for this house, click CANCEL." );
         //else if ( content is string )
            //AddHtml( 10, 40, width - 20, height - 80, String.Format( "<BASEFONT COLOR=#{0:X6}>{1}</BASEFONT>", contentColor, content ), false, true );

         AddImageTiled( 10, height - 30, width - 20, 20, 2624 );
         AddAlphaRegion( 10, height - 30, width - 20, 20 );

         AddButton( 10, height - 30, 4005, 4007, 1, GumpButtonType.Reply, 0 );
         AddHtmlLocalized( 40, height - 30, 170, 20, 1011036, 32767, false, false ); // OKAY

         AddButton( 10 + ((width - 20) / 2), height - 30, 4005, 4007, 0, GumpButtonType.Reply, 0 );
         AddHtmlLocalized( 40 + ((width - 20) / 2), height - 30, 170, 20, 1011012, 32767, false, false ); // CANCEL
      }

      public override void OnResponse( Server.Network.NetState sender, RelayInfo info )
      {
         if ( info.ButtonID == 1 && m_Callback != null )
            m_Callback( sender.Mobile, true, m_State );
         else if ( m_Callback != null )
            m_Callback( sender.Mobile, false, m_State );
      }
   }
}


À§ ÆÄÀÏÀ» »ý¼ºÈÄ
Scripts\Multis\HousePlacementTool.cs ¿¡¼­ ¼öÁ¤ÇÒ ºÎºÐÀº
¶óÀÎ 479
ÄÚµå : 
                  from.SendGump( new WarningGump( 1060635, 30720, 1049583, 32512, 420, 280, new WarningGumpCallback( PlacementWarning_Callback ), prev ) );

                  return true;


À§¸¦ ¾Æ·¡¿Í °°ÀÌ ¼öÁ¤...
ÄÚµå : 
                                                   if ( !IsAosRules )

                  from.SendGump( new WarningGump1( 1060635, 30720, 1049583, 32512, 420, 280, new WarningGump1Callback( PlacementWarning_Callback ), prev ) );

                                                                                    else
                             
                  from.SendGump( new WarningGump1( 1060635, 30720, 1049583, 32512, 420, 280, new WarningGump1Callback( PlacementWarning_Callback ), prev ) );
                  return true;
¸Ç À§·Î °¡±â  
 
       RunUo.Korean.Forum -> About RunUo
ÇöÀçÆäÀÌÁö : 1/1


Powered by phpBB Search Engine Indexer
Powered by phpBB © 2001, 2002 phpBB Group