private void ProcessHeal(Client srcc, string args)
 {
     srcc.character.HP = srcc.character.HPMAX;
     srcc.character.OnRegenerateHP();
 }
Exemple #2
0
 /// <summary>
 /// Initialize a new character
 /// </summary>
 /// <param name="client"></param>
 public Character(Client client, uint CharacterId, uint SessionId)
 {
     this.client = client;
     this.TickLogged = Environment.TickCount;
     this.LASTBREATH_TICK = Environment.TickCount;
     this.LASTHP_TICK = Environment.TickCount;
     //this.LASTLP_TICK = Environment.TickCount;
     this.LASTSP_TICK = Environment.TickCount;
     this.id = SessionId;
     this.ModelId = CharacterId;
     this.CharacterJobLevel = new byte[] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };
     this.FaceDetails = new byte[] { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };
     this.job = 1;
     this.Cexp = 1;
     this.Jexp = 1;
     this.jlvl = 1;
     this._level = 1;
     this._status.CurrentSp += Singleton.CharacterConfiguration.CalculateMaximumSP(this);
     this._status.CurrentHp += Singleton.CharacterConfiguration.CalculateMaximumHP(this);
     this._status.MaxSP += Singleton.CharacterConfiguration.CalculateMaximumSP(this);
     this._status.MaxHP += Singleton.CharacterConfiguration.CalculateMaximumHP(this);
 }
 private static void SendCommandReply(Client tc, string message)
 {
     SMSG_SENDCHAT spkt = new SMSG_SENDCHAT();
     spkt.Message = message;
     spkt.Name = "Saga";
     spkt.MessageType = SMSG_SENDCHAT.MESSAGE_TYPE.SYSTEM_MESSAGE;
     spkt.SessionId = tc.character.id;
     tc.Send((byte[])spkt);
 }