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