Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
 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);
 }
Example #4
0
        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);
            }
        }
Example #5
0
        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;
 }
Example #7
0
 public Attacker(EPRPlayer player, double dmg)
 {
     attacker       = player;
     DamageDealtPct = dmg;
 }
Example #8
0
        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);
            }
        }
Example #9
0
 public Attacker(EPRPlayer player, double dmg)
 {
     attacker = player;
     DamageDealtPct = dmg;
 }