示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#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);
            }
        }
示例#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;
 }
示例#7
0
 public Attacker(EPRPlayer player, double dmg)
 {
     attacker       = player;
     DamageDealtPct = dmg;
 }
示例#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);
            }
        }
示例#9
0
 public Attacker(EPRPlayer player, double dmg)
 {
     attacker = player;
     DamageDealtPct = dmg;
 }