/// <summary> /// n_run packet /// </summary> /// <param name="packet"></param> public void NpcRunFunction(NRunPacket packet) { Session.Character.LastNRunId = packet.NpcId; if (Session.Character.Hp > 0) { NRunHandler.NRun(Session, packet); } }
/// <summary> /// n_run packet /// </summary> /// <param name="packet"></param> public void NpcRunFunction(NRunPacket packet) { Logger.Debug(Session.Character.GenerateIdentity(), packet.ToString()); Session.Character.LastNRunId = packet.NpcId; if (Session.Character.Hp > 0) { NRunHandler.NRun(Session, packet); } }
private void ExecuteHandler(ClientSession session) { session.Character.LastNRunId = NpcId; session.Character.LastItemVNum = 0; if (session.Character.Hp > 0) { NRunHandler.NRun(session, NpcId, Runner, Type, Value); } }
public void NpcRunFunction(string packet) { Logger.Debug(packet, Session.SessionId); string[] packetsplit = packet.Split(' '); if (packetsplit.Length <= 5) { return; } byte type; byte.TryParse(packetsplit[3], out type); short runner; short.TryParse(packetsplit[2], out runner); short data3; short.TryParse(packetsplit[4], out data3); short npcid; short.TryParse(packetsplit[5], out npcid); Session.Character.LastNRunId = npcid; if (Session.Character.Hp > 0) { NRunHandler.NRun(Session, type, runner, data3, npcid); } }