private static void CheckItem( Item item, Map oldMap ) { if ( item.Map == null || item.Map == Map.Internal ) return; if ( !m_Timers.ContainsKey( item ) ) { MoonbindTimer timer = new MoonbindTimer( item ); timer.Start(); m_Timers.Add( item, timer ); } Mobile parent = item.Parent as Mobile; if ( parent != null ) { bool sendMessage = oldMap != null && oldMap != Map.Internal && ( oldMap == Map.Felucca || item.Map == Map.Felucca ); if ( sendMessage ) { if ( item.IsEphemeral() ) parent.SendLocalizedMessage( 1153088 ); // The power of the moon Felucca no longer strengthens your Faction gear. else parent.SendLocalizedMessage( 1153087 ); // The power of the moon Felucca strengthens your Faction gear. } } item.InvalidateProperties(); }
private static void CheckItem(Item item, Map oldMap) { if (item.Map == null || item.Map == Map.Internal) { return; } if (!m_Timers.ContainsKey(item)) { MoonbindTimer timer = new MoonbindTimer(item); timer.Start(); m_Timers.Add(item, timer); } Mobile parent = item.Parent as Mobile; if (parent != null) { bool sendMessage = oldMap != null && oldMap != Map.Internal && (oldMap == Map.Felucca || item.Map == Map.Felucca); if (sendMessage) { if (item.IsEphemeral()) { parent.SendLocalizedMessage(1153088); // The power of the moon Felucca no longer strengthens your Faction gear. } else { parent.SendLocalizedMessage(1153087); // The power of the moon Felucca strengthens your Faction gear. } } } item.InvalidateProperties(); }