public static void PointOperate(EPRPlayer player, int amount, PointOperateReason reason) { PointOperateArgs e = new PointOperateArgs(); e.Handled = false; e.Player = player; e.Amount = amount; e.Reason = reason; if (OnPointOperate != null) OnPointOperate(e); }
public static void PointPay(EPRPlayer sender, EPRPlayer receiver, int amount) { PointPayArgs e = new PointPayArgs(); e.Handled = false; e.Sender = sender; e.Receiver = receiver; e.Amount = amount; if (OnPointPay != null) OnPointPay(e); }
public static void MonsterPointAward(int npcid, int npctype, int awardamount, EPRPlayer player) { MonsterAwardArgs e = new MonsterAwardArgs(); e.Handled = false; e.NPCID = npcid; e.NPCType = npctype; e.AwardAmount = awardamount; e.Player = player; if (OnMonsterPointAward != null) OnMonsterPointAward(e); }
public static void PointOperate(EPRPlayer player, int amount, PointOperateReason reason) { PointOperateArgs e = new PointOperateArgs(); e.Handled = false; e.Player = player; e.Amount = amount; e.Reason = reason; if (OnPointOperate != null) { OnPointOperate(e); } }
public static void PointPay(EPRPlayer sender, EPRPlayer receiver, int amount) { PointPayArgs e = new PointPayArgs(); e.Handled = false; e.Sender = sender; e.Receiver = receiver; e.Amount = amount; if (OnPointPay != null) { OnPointPay(e); } }
public static EPRPlayer GetEPRPlayerByIndex(int index) { EPRPlayer player = new EPRPlayer(index); lock (EPRPlayers) { foreach (EPRPlayer playerctr in EPRPlayers) { if (playerctr.Index == index) player = playerctr; } } return player; }
public Attacker(EPRPlayer player, double dmg) { attacker = player; DamageDealtPct = dmg; }
public static void MonsterPointAward(int npcid, int npctype, int awardamount, EPRPlayer player) { MonsterAwardArgs e = new MonsterAwardArgs(); e.Handled = false; e.NPCID = npcid; e.NPCType = npctype; e.AwardAmount = awardamount; e.Player = player; if (OnMonsterPointAward != null) { OnMonsterPointAward(e); } }