±Û ¾´ÀÌ |
¸Þ¼¼Áö ³»¿ë
|
adiyoung |
Á¦¸ñ : C¸¸ ¹è¿ö¼ Àß ¸ð¸£°Ú³×¿ä ±Û ÀÛ¼º½Ã°£ : 2004-07-06 È 11:27 pm |
|
|
First Cicle [2]
![First Cicle [2] First Cicle [2]](images/magic/12.gif)
°¡ÀÔÀÏ: 2004³â 07¿ù 05ÀÏ °Ô½Ã¹°: 5 ÁÖ ¼Ò: /
|
·±À¯¿À¸¦ óÀ½ ¸¸Á®º¸±âµµ Çϱ¸¿ä..
½ºÅ©¸³ º¸¸é m, from, this
ÀÌ·±°Ô ÀÚÁÖ ¾²À̴µ¥¿ä..
¾î¶² ¿ªÇÒÀ» ÇÏ´ÂÁö ±Ã±ÝÇÕ´Ï´Ù..
¾Æ ±×¸®°í ¾²·¹±âÅëÀ» ºñ¿ì´Â ¼Óµµ¸¦ 3ºÐ¿¡¼ 30ÃÊ·Î ¼öÁ¤Àº Çߴµ¥
¾²·¹±â¸¦ ¹ö¸±¶§ ³ª¿À´Â ¸Þ¼¼Áö´Â °íÄ¥ ¹æ¹ýÀ» ¸ð¸£°Ú³×¿ä. ±×°Íµµ ¾Ë·ÁÁÖ½Ã¸é °¨»çÇϰڽÀ´Ï´Ù
|
|
¡è ¸Ç À§·Î °¡±â ¡è |
|
 |
roar |
Á¦¸ñ : ´ä¤Ñ¤µ¤Ñº¯ ±Û ÀÛ¼º½Ã°£ : 2004-07-07 ¼ö 11:14 am |
|
|
 Eighth Cicle [4]
![Eighth Cicle [4] Eighth Cicle [4]](images/magic/84.gif)
°¡ÀÔÀÏ: 2004³â 01¿ù 20ÀÏ °Ô½Ã¹°: 228 ÁÖ ¼Ò: Áö±¸ ¾îµò°¡..
|
·±À¯¿À¸¦ óÀ½ ¸¸Á®º¸±âµµ Çϱ¸¿ä.. // ¾È³çÇϼ¼¿ä ^,.^
½ºÅ©¸³ º¸¸é m, from, this
ÀÌ·±°Ô ÀÚÁÖ ¾²À̴µ¥¿ä.. //m(MobileÀÇ ¾àÀÚ°ÚÁÒ),from Àº ´ÜÁö ÀνºÅϽº¿¡¿ä ¤Ñ¤µ-a(±×·¯´Ï±î..BaseCreature from = new Lich(); ÀÌ·±½ÄÀ̰ÚÁÒ? )
// this ´Â cÀÇ this Æ÷ÀÎÅÍ·Î ÀÌÇØÇϽøéÀº ÁÁ°Ú³×¿ä.
//Àڱ⠽º½º·Î¸¦ °´Ã¼°¡ ÁöĪÇÏ´Â °Å¿¡¿ä.
¾î¶² ¿ªÇÒÀ» ÇÏ´ÂÁö ±Ã±ÝÇÕ´Ï´Ù..
¾Æ ±×¸®°í ¾²·¹±âÅëÀ» ºñ¿ì´Â ¼Óµµ¸¦ 3ºÐ¿¡¼ 30ÃÊ·Î ¼öÁ¤Àº Çߴµ¥
¾²·¹±â¸¦ ¹ö¸±¶§ ³ª¿À´Â ¸Þ¼¼Áö´Â °íÄ¥ ¹æ¹ýÀ» ¸ð¸£°Ú³×¿ä. ±×°Íµµ ¾Ë·ÁÁÖ½Ã¸é °¨»çÇϰڽÀ´Ï´Ù //À½.. ÀÌ°Ç ¾È°íÃĺÁ¼ ÀÚ¼¼È÷´Â ¸ð¸£°ÚÁö¸¸
//¸Þ¼¼Áö°¡ ÅØ½ºÆ®·Î ¾ø´Ù¸éÀº chilocÀΰ¡? °Å±â ÀÖ´Â ¸Þ¼¼Áö¸¦
//¾²´Â°Å´Ï±î. m.SendMessage( 154294 ); ÀÌ·±½ÄÀ̸éÀº
// ¾È¿¡ Á¤¼ö´ë½Å¿¡ "¸Þ·Õ" ÀÌ·±½ÄÀ¸·Î ½ºÆ®¸µÀ» ³Ö¾îÁÖ¼¼¿ä.
// m.SendMessage( "뷁!" );
|
|
¡è ¸Ç À§·Î °¡±â ¡è |
|
 |
adiyoung |
Á¦¸ñ : ÇØºÃ´Âµ¥¿ä... ±Û ÀÛ¼º½Ã°£ : 2004-07-07 ¼ö 5:45 pm |
|
|
First Cicle [2]
![First Cicle [2] First Cicle [2]](images/magic/12.gif)
°¡ÀÔÀÏ: 2004³â 07¿ù 05ÀÏ °Ô½Ã¹°: 5 ÁÖ ¼Ò: /
|
SendLocalizedMessageTo( from, 1010442 );
À̺κÐÀÌ ¸Þ¼¼Áö º¸¿©ÁÖ´Â ºÎºÐÀΰ۰Àºµ¥¿ä...
¼ýÀÚ ¼öÁ¤Çϸé ÄÄÆÄÀÏ ¿¡·¯ ³ª±¸¿ä..
¸»¾¸ÇϽŴë·Î m.SendMessage( "" ); µµ ¸¶Âù°¡Áö±¸¿ä..
±×¸®±¸ ¼³¸í °¨»çµå¸³´Ï´Ù
|
|
¡è ¸Ç À§·Î °¡±â ¡è |
|
 |
roar |
Á¦¸ñ : ´ä-¤µ-º¯ ±Û ÀÛ¼º½Ã°£ : 2004-07-08 ¸ñ 2:30 pm |
|
|
 Eighth Cicle [4]
![Eighth Cicle [4] Eighth Cicle [4]](images/magic/84.gif)
°¡ÀÔÀÏ: 2004³â 01¿ù 20ÀÏ °Ô½Ã¹°: 228 ÁÖ ¼Ò: Áö±¸ ¾îµò°¡..
|
SendLocalizedMessageTo( from, 1010442 );
À̺κÐÀÌ ¸Þ¼¼Áö º¸¿©ÁÖ´Â ºÎºÐÀΰ۰Àºµ¥¿ä...
¼ýÀÚ ¼öÁ¤Çϸé ÄÄÆÄÀÏ ¿¡·¯ ³ª±¸¿ä..
//ÈåÈì...SendLocalizedMessageTo( from, 1010442 );
//Àº ·ÎÄöóÀÌÁîµåµÈ ¸Þ¼¼Áö¸¦ fromÀ̶õ Ç÷¹À̾î¸ð¹ÙÀÏ(À̰ÚÁÒ?)¿¡°Ô 1010442¹ø ¸Þ¼¼Áö¸¦ º¸³½´Ù´Â ¶æÀÌ¿¡¿ä.
´ç¿¬È÷ ÀÌ·¸°Ô ¹Ù²Ù¼Å¾ßÁÒ. -> from.SendMessage( "¸Þ¼¼Áö");
±×³É SendLocalizedMessageTo ¿¡ ÅØ½ºÆ®½ºÆ®¸µ¸¸ ³ÖÀ¸¸éÀº ¿¡·¯³ª¿ä.
ÀÚ¼¼ÇÑ ¸Þ¼ÒµåµéÀº ·±À¯¿À Æú´õ¾È¿¡ documentsÀΰ¡ ÇÏ´Â Æú´õ¿¡ overviewÀΰ¡
ÇÏ´Â html¹®¼¸¦ ÂüÁ¶Çϼ¼¿ë~
¸»¾¸ÇϽŴë·Î m.SendMessage( "" ); µµ ¸¶Âù°¡Áö±¸¿ä..
// ¹«Á¶°Ç mÀÌ ¾Æ´Ï¶ó ´Ù¸¥ °É ¼öµµ ÀÖÀ¸´Ï ±Ùó¸¦ º¸¼¼¿ä.
//¼Ò½º¸¦ ÀÚ¼¼È÷ ºÙ¿©ÁֽøéÀº ´õ Á¤È®ÇÑ µµ¿òÀ» ±â´ëÇϽǼö ÀÖ°ÚÁÒ?
±×¸®±¸ ¼³¸í °¨»çµå¸³´Ï´Ù
// ¤Ñ¤µ-;;; º° ¸»¾¸À»..
|
|
¡è ¸Ç À§·Î °¡±â ¡è |
|
 |
adiyoung |
Á¦¸ñ : Re: ´ä-¤µ-º¯ ±Û ÀÛ¼º½Ã°£ : 2004-07-08 ¸ñ 10:46 pm |
|
|
First Cicle [2]
![First Cicle [2] First Cicle [2]](images/magic/12.gif)
°¡ÀÔÀÏ: 2004³â 07¿ù 05ÀÏ °Ô½Ã¹°: 5 ÁÖ ¼Ò: /
|
¾Æ ±×·¸±º¿ä...
±×·±µ¥ Àú ¼ýÀÚ¿¡ ÇØ´çÇÏ´Â ¸Þ¼¼Áö¸¦ Á÷Á¢ ã¾Æ¼ ¹Ù²Ü¼ö´Â ¾øÀ»±î¿ä?
¶Ç.. SendLocalizedMessageTo ·Î ÇÒ¶§´Â ¸Ó¸®À§¿¡ ¸Þ¼¼Áö°¡ ¶¹¾ú´Âµ¥..
from.SendMessage( "¸Þ¼¼Áö"); ¸¦ »ç¿ëÇÏ¸é ±×·¸Áö°¡ ¾Ê³×¿ä..
±×°Íµµ ¾îÄÉ ÇÏ¹È ¹Ù²Ü¼ö ÀÖÀ»±î¿ä?
TrashBarrel.cs ´Ô ÀÛ¼º : |
using System;
using System.Collections;
using Server.Multis;
namespace Server.Items
{
public class TrashBarrel : Container, IChopable
{
public override int LabelNumber{ get{ return 1041064; } } // a trash barrel
public override int MaxWeight{ get{ return 0; } } // A value of 0 signals unlimited weight
public override int DefaultGumpID{ get{ return 0x3E; } }
public override int DefaultDropSound{ get{ return 0x42; } }
public override Rectangle2D Bounds
{
get{ return new Rectangle2D( 33, 36, 109, 112 ); }
}
[Constructable]
public TrashBarrel() : base( 0xE77 )
{
Hue = 1154;
Movable = false;
}
public TrashBarrel( 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();
if ( Items.Count > 0 )
{
m_Timer = new EmptyTimer( this );
m_Timer.Start();
}
}
public override bool OnDragDrop( Mobile from, Item dropped )
{
if ( !base.OnDragDrop( from, dropped ) )
return false;
if ( TotalItems >= 50 )
{
Empty( 501478 ); // The trash is full! Emptying!
}
else
{
SendLocalizedMessageTo( from, 1010442 ); // The item will be deleted in three minutes
if ( m_Timer != null )
m_Timer.Stop();
else
m_Timer = new EmptyTimer( this );
m_Timer.Start();
}
return true;
}
public override bool OnDragDropInto( Mobile from, Item item, Point3D p )
{
if ( !base.OnDragDropInto( from, item, p ) )
return false;
if ( TotalItems >= 50 )
{
Empty( 501478 ); // The trash is full! Emptying!
}
else
{
SendLocalizedMessageTo( from, 1010442 ); // The item will be deleted in three minutes
if ( m_Timer != null )
m_Timer.Stop();
else
m_Timer = new EmptyTimer( this );
m_Timer.Start();
}
return true;
}
public void OnChop( Mobile from )
{
BaseHouse house = BaseHouse.FindHouseAt( from );
if ( house != null && house.IsCoOwner( from ) )
{
Effects.PlaySound( Location, Map, 0x11C );
from.SendLocalizedMessage( 500461 ); // You destroy the item.
Destroy();
}
}
public void Empty( int message )
{
ArrayList items = this.Items;
if ( items.Count > 0 )
{
PublicOverheadMessage( Network.MessageType.Regular, 0x3B2, message, "" );
for ( int i = items.Count - 1; i >= 0; --i )
{
if ( i >= items.Count )
continue;
((Item)items[i]).Delete();
}
}
if ( m_Timer != null )
m_Timer.Stop();
m_Timer = null;
}
private Timer m_Timer;
private class EmptyTimer : Timer
{
private TrashBarrel m_Barrel;
public EmptyTimer( TrashBarrel barrel ) : base( TimeSpan.FromSeconds( 30 ) )
{
m_Barrel = barrel;
Priority = TimerPriority.FiveSeconds;
}
protected override void OnTick()
{
m_Barrel.Empty( 501479 ); // Emptying the trashcan!
}
}
}
}
|
|
|
¡è ¸Ç À§·Î °¡±â ¡è |
|
 |
roar |
Á¦¸ñ : ´ä - ¤· -;; º¯ ±Û ÀÛ¼º½Ã°£ : 2004-07-09 ±Ý 2:46 pm |
|
|
 Eighth Cicle [4]
![Eighth Cicle [4] Eighth Cicle [4]](images/magic/84.gif)
°¡ÀÔÀÏ: 2004³â 01¿ù 20ÀÏ °Ô½Ã¹°: 228 ÁÖ ¼Ò: Áö±¸ ¾îµò°¡..
|
½º..½ºÅ©·ÑÀÇ ¾Ð¹Ú - ¤µ -;;
ÀÚÀÚ ¼Ò½º°¡ µîÀåÇßÀ¸´Ï Á¤¼ºÀ» ´õ °¡¹Ì ÇØº¸µµ·Ï ÇÏÁÒ.
--------------------------------------------ÀÌÇÏ ¿ø¹® + Á¶¾ð - ¤µ- ;
¾Æ ±×·¸±º¿ä... //³×³× ±×·¸½ÀÁÒ -¤µ-;
±×·±µ¥ Àú ¼ýÀÚ¿¡ ÇØ´çÇÏ´Â ¸Þ¼¼Áö¸¦ Á÷Á¢ ã¾Æ¼ ¹Ù²Ü¼ö´Â ¾øÀ»±î¿ä?
//´ç¿¬È÷ ÀÖ½À´Ï´Ù. ·ÎÄöóÀÌÁîµÈ ¸Þ¼¼ÁöµéÀ» ¼öÁ¤ÇÏ´Â Çñ׷¥ÀÌ ÀÖ¾î¿ä
//±×°Å À̸§À» ±î¸Ô¾ú´Âµ¥ ÃֽůÇ(¾µ¸¸ÇØ¿ä!! ÆÐÄ¡±â´Éµµ ÀÖ°í)Àº
//runuo°ø½Ä»çÀÌÆ®³ª ±Ùó¿¡ µ¹¾Æ´Ù´Ï½Ã¸éÀº ±×¸® ¾î·ÆÀÝ°Ô ±¸ÇÒ¼ö
//ÀÖÁÒ~ ¿©±â ÀڷḦ ¿Ã¸±¼ö ÀÖ´Ù¸éÀº Á¦°¡ ¿Ã·Áµå¸±¼ö ÀÖÁö¸¸..¾ÈµÇ´Ï..
¶Ç.. SendLocalizedMessageTo ·Î ÇÒ¶§´Â ¸Ó¸®À§¿¡ ¸Þ¼¼Áö°¡ ¶¹¾ú´Âµ¥..
from.SendMessage( "¸Þ¼¼Áö"); ¸¦ »ç¿ëÇÏ¸é ±×·¸Áö°¡ ¾Ê³×¿ä..
//±×°Ç ȸé ÁÂÃøÇÏ´Ü¿¡ ¸Þ¼¼Áö°¡ ³ª¿À´Â °Ì´Ï´Ù.(½ºÅ³»ó½Â¸Þ¼¼Áö ó·³)
//¸Ó¸®À§¿¡ ¶ß´Â ¸Þ¼¼Áö´Â local¾î¼±¸ ¿´´ø°É·Î ±â¾ïµÇ³×¿ä.(ÀÚ±âÇÑÅ׸¸ º¸À̴°Å) nonlocalÀº Àüü¿¡ ´Ùº¸ÀÌ´Â ¸Ó¸®À§¿¡ ¶ß´Â ¸Þ¼¼Áö°í¿ä. ¹®¼¸¦ ÂüÁ¶Çϼ¼¿ä
//OverView¿¡ ´Ù³ª¿ÍÀÖ¾î¿ä.
±×°Íµµ ¾îÄÉ ÇÏ¹È ¹Ù²Ü¼ö ÀÖÀ»±î¿ä? //³×
TrashBarrel.cs ´Ô ÀÛ¼º:
using System;
using System.Collections;
using Server.Multis;
namespace Server.Items
{
public class TrashBarrel : Container, IChopable //ÄÁÅ×ÀÌ³Ê¿Í 춉¿¡À̺íÀ» »ó¼Ó¹ÞÀ½.(±×·¯´Ï±î ±× µÎ°³ÀÇ ±â´ÉÀ» ¾ò¾î ¾²´Â °ÅÁÒ ½±°Ô.)
{
public override int LabelNumber{ get{ return 1041064; } } // a trash barrel //¾²·¹±â ÅëÀÇ ·¹À̺íÀÔ´Ï´Ù. Àú°Íµµ À§¿¡¼ ¸»ÇÑ Çñ׷¥À¸·Î °íÄ¥¼ö ÀÖ¾î¿ä.
public override int MaxWeight{ get{ return 0; } } // A value of 0 signals unlimited weight //ÃÖ´ë ¹«°ÔÀÇ ¼³Á¤
public override int DefaultGumpID{ get{ return 0x3E; } } //»ç¿ëÇÒ¶§ º¸¿©Áö´Â °ËÇÁ¾ÆÀ̵ð
public override int DefaultDropSound{ get{ return 0x42; } } //¹°°Ç ³ÖÀ»¶§ ³ª´Â ¼Ò¸®-¤µ-
public override Rectangle2D Bounds
{
get{ return new Rectangle2D( 33, 36, 109, 112 ); } //¹üÀ§ ÁöÁ¤
}
[Constructable]
public TrashBarrel() : base( 0xE77 ) // BaseItemÀÇ »ý¼ºÀÚ¸¦ ¾ò¾î¼¾¸ ¤Ñ¤µ-; ¾ÆÀÌÅÛÀÇ ¸ð¾ç(ID 0xE77 )ÁöÁ¤
{
Hue = 1154; //»ö±ò ¤Ñ¤µ-;
Movable = false; // ¸ø ¿òÁ÷ÀÓ
}
--------------------------------------------------------
public TrashBarrel( 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();
if ( Items.Count > 0 ) //¾È¿¡ µç°Ô ÀÖÀ¸¸é
{
m_Timer = new EmptyTimer( this ); //ŸÀÌ¸Ó ÇÒ´ç ¹Þ°í
m_Timer.Start(); //½ºÅ¸Æ®!
}
}
--------------------------------------------------------
public override bool OnDragDrop( Mobile from, Item dropped ) //µå·¡±× µå¶ø¿¡ ´ëÇÑ ÀçÁ¤ÀÇ( Àμö·Î "Áý¾î ³ÖÀº »ç¶÷"À̶û, ³Ö¾îÁø "¾ÆÀÌÅÛ"À» ¹ÞÀ½
{
if ( !base.OnDragDrop( from, dropped ) ) //±âº» µå·¡±× µå¶øÀÌ false¸®ÅϽÃ
return false; //Àڱ⵵ false ¸®ÅÏ
if ( TotalItems >= 50 ) //¾ÆÀÌÅÛÀÌ 50°³ ³ÑÀ¸¸éÀº
{
Empty( 501478 ); // The trash is full! Emptying! //Empty() È£Ãâ Àμö´Â ·ÎÄöóÀÌÁîµå ¸Þ¼¼Áö ³Ñ¹ö -¤µ-;
}
else //¾Æ´Ï¸é
{
SendLocalizedMessageTo( from, 1010442 ); // The item will be deleted in three minutes // from ¿¡°Ô 1010442 ¸Þ¼¼Áö Ãâ·Â. ¿©±â¸¦ °íÄ¡½Ã·Á°í¿ä?
//À̰ŠÁö±Ý ¿À¹öºä¸¦ º¼¼ö°¡ ¾ø¾î¼ ÀÚ¼¼È÷´Â ¸ø °¡¸£ÃÄ µå¸®Áö¸¸...
//¾Æ¸¶ ¿À¹öºä¿¡¼ Sever ¾È¿¡ Mobile ¾È¿¡¼ message·Î °Ë»öÇÏ´Ù°¡ º¸¸éÀº
//¾Õ¿¡ local À̶û nonlocal ºÙÀº°Ô ÀÖÀ» ²¨¿¡¿ä. Localized ¸»°í¿ä.
// ±×°É °Å±â¿¡ ÀÖ´Â Çü½Ä¿¡ ¸Â°Ô ¾²¼¼¿ä.
//ÀÌÇÏ ½Ã°£°ü°è»ó »ý·« ¤Ñ¤µ-;
if ( m_Timer != null )
m_Timer.Stop();
else
m_Timer = new EmptyTimer( this );
m_Timer.Start();
}
return true;
}
public override bool OnDragDropInto( Mobile from, Item item, Point3D p )
{
if ( !base.OnDragDropInto( from, item, p ) )
return false;
if ( TotalItems >= 50 )
{
Empty( 501478 ); // The trash is full! Emptying!
}
else
{
SendLocalizedMessageTo( from, 1010442 ); // The item will be deleted in three minutes
if ( m_Timer != null )
m_Timer.Stop();
else
m_Timer = new EmptyTimer( this );
m_Timer.Start();
}
return true;
}
public void OnChop( Mobile from )
{
BaseHouse house = BaseHouse.FindHouseAt( from );
if ( house != null && house.IsCoOwner( from ) )
{
Effects.PlaySound( Location, Map, 0x11C );
from.SendLocalizedMessage( 500461 ); // You destroy the item.
Destroy();
}
}
public void Empty( int message )
{
ArrayList items = this.Items;
if ( items.Count > 0 )
{
PublicOverheadMessage( Network.MessageType.Regular, 0x3B2, message, "" );
for ( int i = items.Count - 1; i >= 0; --i )
{
if ( i >= items.Count )
continue;
((Item)items[i]).Delete();
}
}
if ( m_Timer != null )
m_Timer.Stop();
m_Timer = null;
}
private Timer m_Timer;
private class EmptyTimer : Timer
{
private TrashBarrel m_Barrel;
public EmptyTimer( TrashBarrel barrel ) : base( TimeSpan.FromSeconds( 30 ) )
{
m_Barrel = barrel;
Priority = TimerPriority.FiveSeconds;
}
protected override void OnTick()
{
m_Barrel.Empty( 501479 ); // Emptying the trashcan!
}
}
}
}
|
|
¡è ¸Ç À§·Î °¡±â ¡è |
|
 |
|