public GameNpc(DbNpc pNpc) { m_dbNpc = pNpc; m_pPacket = new MsgNpcInfo { Identity = pNpc.Id, MapX = pNpc.Cellx, MapY = pNpc.Celly, Kind = pNpc.Type, Sort = pNpc.Sort, Lookface = pNpc.Lookface }; }
public static void HandleNpcInfo(Character pUser, MsgNpcInfo pMsg) { pUser.TemporaryString = string.Format("{0} {1} {2} {3} {4}" , pMsg.MapX, pMsg.MapY, pMsg.Lookface, pMsg.Identity, pMsg.Kind); pUser.GameAction.ProcessAction(pUser.LastUsedItem, pUser, null, null, pUser.TemporaryString); }