예제 #1
0
 public void Update()
 {
     if (AionMemory.readInt((long)Offsets.Player.HasTarget + AionMemory.base_adress) == 1)
     {
         this.CurrentHP = AionMemory.readInt((long)Offsets.Target.CurrentHP);
         this.HPPercent = AionMemory.readByte((long)Offsets.Target.HPPercent);
         this.Level = AionMemory.readByte((long)Offsets.Target.Level);
         this.MaxHP = AionMemory.readInt((long)Offsets.Target.MaxHP);
         this.State = AionMemory.readInt((long)Offsets.Target.HideStatus);
         this.Name = AionMemory.ReadString((long)Offsets.Target.HideStatus);
         Position p = new Position();
         p.X = AionMemory.readFloat((long)Offsets.Target.xPos);
         p.Y = AionMemory.readFloat((long)Offsets.Target.yPos);
         p.Z = AionMemory.readFloat((long)Offsets.Target.zPos);
         this.Position = p;
         validTarget = true;
     }
     else
     {
         validTarget = false;
     }
 }
예제 #2
0
 public void Update()
 {
     this.Name = AionMemory.ReadString((long)AionMemory.base_adress + (long)Offsets.Player.Name);
     this.Level = AionMemory.readInt((long)AionMemory.base_adress + (long)Offsets.Player.Level);
     this.CurrentEXP = AionMemory.readInt((long)AionMemory.base_adress + (long)Offsets.Player.CurrentEXP);
     this.MaxEXP = AionMemory.readInt((long)AionMemory.base_adress + (long)Offsets.Player.MaxEXP);
     this.CurrentHP = AionMemory.readInt((long)AionMemory.base_adress + (long)Offsets.Player.CurrentHP);
     this.MaxHP = AionMemory.readInt((long)AionMemory.base_adress + (long)Offsets.Player.MaxHP);
     this.CurrentMP = AionMemory.readInt((long)AionMemory.base_adress + (long)Offsets.Player.CurrentMP);
     this.MaxMP = AionMemory.readInt((long)AionMemory.base_adress + (long)Offsets.Player.MaxMP);
     this.HasTarget = AionMemory.readInt((long)Offsets.Player.HasTarget + AionMemory.base_adress) == 1 ? true : false;
     Position p = new Position();
     p.X = AionMemory.readFloat((long)AionMemory.base_adress + (long)Offsets.Player.xPos);
     p.Y = AionMemory.readFloat((long)AionMemory.base_adress + (long)Offsets.Player.yPos);
     p.Z = AionMemory.readFloat((long)AionMemory.base_adress + (long)Offsets.Player.zPos);
 }