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

Beta36 ¹öÁ¯¿¡¼­ 1°èÁ¤ 1ÁýÀÌ»ó Çã¿ë½ºÅ©¸³ Áú¹®ÀÔ´Ï´Ù.
Click here to go to the original topic

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



°¡ÀÔÀÏ: 2004³â 02¿ù 18ÀÏ
°Ô½Ã¹°: 27
ÁÖ ¼Ò: /

±Û ÀÛ¼º½Ã°£ : 2005-05-14 Åä 6:37 pm    Á¦¸ñ: Beta36 ¹öÁ¯¿¡¼­ 1°èÁ¤ 1ÁýÀÌ»ó Çã¿ë½ºÅ©¸³ Áú¹®ÀÔ´Ï´Ù.  

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

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

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

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

¶óÀÎ 2057
Code:
for ( int i = 0; i < list.Count; ++i )


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



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


Code:
for ( int i = 0; i < 10; ++i )



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

WarningGump1.cs ÆÄÀÏÀ» ¾Æ·¡¿Í °°ÀÌ »ý¼ºÇÑ´Ù.
Code:

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
Code:

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

return true;



À§¸¦ ¾Æ·¡¿Í °°ÀÌ ¼öÁ¤...
Code:

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;

-----------------------------------------------------------------------------------
°­Ç³´Ô²²¼­ Àû¾îÁֽбÛÀä.
ÀÌ ½ºÅ©¸³´ë·Î µû¶óÇϸé !IsAosRules ¸¦ ãÀ»¼ö ¾ø´Ù°í ¡¡ °Å¸³´Ï´Ù. ±×·¡¼­
from.SendGump( new WarningGump1( 1060635, 30720, 1049583, 32512, 420, 280, new WarningGump1Callback( PlacementWarning_Callback ), prev ) );
¿ä·¸°Ô ¸Í±Û¾î ¹ö·È°Åµç¿ä? ±×·³ ¾Æ¹«·± ÀÌ»ó¾øÀÌ µ¿ÀÛÇÕ´Ï´Ù. ±Ù´ë °ËÇÁ1À̳ª ±×³É °ËÇÁ³ª ´Ù¸¥Á¡ÀÌ ÀüÇô ¾øÀÌ µ¿ÀÛÀ» ÇØ¹ö¸®´õ±º¿ä.(°á±¹ 1ÀÎ 1ÁýÀ̶õ°Ì´Ï´Ù.) ´ëü ¾îµð¼­ !IsAosRules¸¦ ³Ö¾îµµ ¡¡ ¾Ê³Ö¾îµµ ¡¡ °Å¸®´Â°É±î¿ä?
¸Ç À§·Î °¡±â  
GangPung



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

±Û ÀÛ¼º½Ã°£ : 2005-05-16 ¿ù 9:32 am    Á¦¸ñ: ¼öÁ¤...  

ÄÚµå :  if ( !IsAosRules )

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

else

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


À§¿¡¼­ if ( !IsAosRules ) ºÎºÐÀ» ¾Æ·¡¿Í °°ÀÌ ¼öÁ¤Àû¿ëÇØº¸¼¼¿ä.
ÄÚµå :  if ( !house.IsAosRules )

[/code]
¸Ç À§·Î °¡±â  
segothonor71



°¡ÀÔÀÏ: 2005³â 08¿ù 20ÀÏ
°Ô½Ã¹°: 47

±Û ÀÛ¼º½Ã°£ : 2005-08-22 ¿ù 2:43 pm    Á¦¸ñ: Àú´Â »óȲÀÌ °°³×¿ä.  

Áö±Ý »óȲÀÌ °°¾Æº¸À̴µ¥ Áú¹®ÇϽźÐÀº ÇØ°áµÇ¾ú³ª¿ä?
¹«¾ù¶§¹®ÀÎÁö ÇϿ콺¸¦ °É°í³Ñ¾îÁö³×¿ä.
¸Ç À§·Î °¡±â  
 
       RunUo.Korean.Forum -> About RunUo
ÇöÀçÆäÀÌÁö : 1/1


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