| CODE |
| public override void OnDeath( Container c ) { base.OnDeath( c ); m_NbrMorts++;// incrementation m_Destin--;//decrementation |
| CODE |
| public PlayerMobile() { m_NbrMorts = 0; m_Destin = 25; m_VisList = new ArrayList(); m_PermaFlags = new ArrayList(); m_AntiMacroTable = new Hashtable(); |
| CODE |
| switch ( version ) { case 20: { m_NbrMorts = reader.ReadInt(); goto case 19; } case 19: { m_Destin = reader.ReadInt(); goto case 18; } |
| CODE |
| writer.Write( (int) 20 ); // version writer.Write( (int) m_NbrMorts ); writer.Write( (int) m_Destin ); |
| CODE |
using System; using Server; using Server.Mobiles; namespace Server.Scripts.Commands { public class DES { public static void Initialize() { Server.Commands.Register( "Des", AccessLevel.Player, new CommandEventHandler( Des_OnCommand ) ); } [Usage( "Destin" )] [Description( "voir c poind de destin" )] public static void Des_OnCommand( CommandEventArgs e ) { if(e.Mobile != null) { PlayerMobile player = e.Mobile as PlayerMobile; player.SendMessage("Tu es mort {0} fois et il te reste {1} pts de Destin", player.NbrMorts,player.Destin); } } } } |