·Î¾î´ÔÀÚ·á¿Í½ºÅÏ´ÔÀÚ·áÀÇ º¸ÃæºÐÀÔ´Ï´Ù..
//¿ä±â¼ ºÎÅÍ
// Custom : Item Decay Part 04.10.24
private static Hashtable m_DecayTable = new Hashtable();
private Timer m_DecayTimers;
private class StartDecay : Timer
{
private Item m_item;
public StartDecay( Item item ) : base( TimeSpan.FromSeconds( 180.0 ) )
{
m_item = item;
Priority = TimerPriority.TenMS;
}
protected override void OnTick()
{
m_item.Delete();
}
}
// End of Custom : Decay
// Custom Override
public override bool OnDragLift( Item item )
{
if( item.Movable != true )
return false;
StartDecay t = (StartDecay)m_DecayTable[ item ];
if( t != null )
t.Stop();
m_DecayTable.Remove( item );
return base.OnDragLift( item );
}
public override bool OnDragDrop( Mobile mob, Item item )
{
Container pack = mob.Backpack;
if( !(item.IsChildOf(pack)) )
{
StartDecay t = new StartDecay( item );
t.Start();
m_DecayTable[ item ] = t;
}
return base.OnDragDrop( mob,item );
}
// End of Custom
// ¿ä±â°¡ ÀÌÀüÀÇ ¼öÁ¤Ç϶ó´Â ºÎºÐÀä. ¿ä·¸°Ô °íÄ¡¼¼¿ä.
public override bool OnDroppedItemToWorld( Item item, Point3D location )
{
HouseRegion reg = this.Region as HouseRegion;
if ( base.OnDroppedItemToWorld( item, location ) && reg == null )
{
//Custom ±×·¯´Ï±î ¿ä±â¼
//if( item.Decays == true )
//{
StartDecay t = new StartDecay( item );
t.Start();
m_DecayTable[ item ] = t;
//}
//End of Custom ¿©±â±îÁö¿ä.
//this.Say("Here is World");
}
BounceInfo bi = item.GetBounce(); //<-À̰ŠÂþÀ¸¼Å¼À§¿¡ ºÙÀ̼¼¿ä
ÀÌ·¸°Ô¸¸ÇÏ½Ã¸é ¿À·ù³ª¿ä..ÀúµÎÀ̰Ŷ§¹®¿¡..Á» ÇØ¸Ë´Âµ¥..¿ÕÃʺ¸¶óº¸´Ï..
using System;
using System.Collections;
using Server;
using Server.Misc;
using Server.Regions; <- Á¦ÀÏÀ§¿¡ À̰г־îÁÖ¼¼¿ä..
using Server.Items;
using Server.Gumps;
using Server.Multis;
using Server.Engines.Help;
using Server.ContextMenus;
using Server.Network;
using Server.Spells;
using Server.Spells.Fifth;
using Server.Spells.Seventh;
using Server.Targeting;
using Server.Engines.Quests;
±×·¯¸é ¿À·ù³ªÁö¾Ê°í..Á¤»óÀÛµ¿µÇ³×¿ä..^^;
¿ÜÀÌ·±Áö´ÂÀúµÎ¸ô¶ó¿ä -_-;;±×³É Ȥ½Ã³ª ÇØ¼ ÇØºÃ´Âµ¥..-0-~
·Î¾î´Ô½ºÅÏ´Ô °¨»çÇÕ´Ï´Ù.
±Û³²±â´Â°Ô ÷À̶ó..¸ÅÀÏÀڷḸ ÈÉÃİ¡°í..¤Ð¤Ð
Ȥ½Ã..¾ÈµÇ½Ã¸é ¸»¾¸ÇØÁÖ¼¼¿ä..^^
|