| CODE |
| using System; using Server; 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) e.Mobile.SendMessage("Tu est mort {0} foi et il te reste {1} pts de Destin", e.Mobile.NbrMorts, e.Mobile.destin); } } } |
| CODE |
| using System; using Server; 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) int nbrmort = e.Mobile.NbrMorts; int destin = e.Mobile.destin; e.Mobile.SendMessage("Tu est mort ", nbrmort, " foi et il te reste ", destin, " pts de Destin"); } } } |
| QUOTE |
| 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 est mort {0} foi et il te reste {1} pts de Destin", player.NbrMorts, player.Destin); } } } } |