示例#1
0
        public static Position getRelativePosition(float x, float y)
        {
            if (zones == null)
            {
                createZones();
            }
            Zone zone = getZoneById(MemoryHandler.readInt(ZONE_ID));

            return(new Position(zone.getRelativeX(x), zone.getRelativeY(y)));
        }
示例#2
0
        public void clickToLoot(Position3D position, Int64 guid)
        {
            //az értékek beírása a memoriába
            MemoryHandler.writeInt64(Offset.MOUSE_OVER_GUID, guid);
            ChatWriter.hitKey(0x042);

            //MemoryHandler.writeInt(CTM_Action, 7);

            //amíg az action 4, azaz mozgásban van, addig várok
            while (MemoryHandler.readInt(Offset.CTM_Action) == 7)
            {
                Thread.Sleep(200);
            }
            Thread.Sleep(400);
        }
示例#3
0
        public bool objExists(Int64 GUID)
        {
            int currObjPtr = objectManager + FIRST_OBJECT;
            int currObj    = MemoryHandler.readInt(currObjPtr);

            while (currObj != 0)
            {
                currObj = MemoryHandler.readInt(currObjPtr);

                if (GUID == MemoryHandler.readHexAsInt64(currObj + GUID_OFFS))
                {
                    return(true);
                }
                currObjPtr = currObj + NEXT_OBJECT;
            }
            return(false);
        }
示例#4
0
        public int getBobberBase()
        {
            int currObjPtr = objectManager + FIRST_OBJECT;
            int currObj    = MemoryHandler.readInt(currObjPtr);

            while (currObj != 0)
            {
                currObj = MemoryHandler.readInt(currObjPtr);

                if (MemoryHandler.readHexAsInt64(currObj + 560) == Player.PLAYER_GUID)
                {
                    return(currObj);
                }

                currObjPtr = currObj + NEXT_OBJECT;
            }
            return(-1);
        }
示例#5
0
        public Int64 getSHGUID()
        {
            int currObjPtr = objectManager + FIRST_OBJECT;
            int currObj    = MemoryHandler.readInt(currObjPtr);

            while (currObj != 0)
            {
                currObj = MemoryHandler.readInt(currObjPtr);
                if (SpiritHealer.SH_GUIDS.Contains(MemoryHandler.readHexAsInt64(currObj + GUID_OFFS)))
                {
                    return(MemoryHandler.readHexAsInt64(currObj + GUID_OFFS));
                }

                currObjPtr = currObj + NEXT_OBJECT;
            }

            return(0);
        }
示例#6
0
        public void test()
        {
            while (true)
            {
                Console.Clear();

                int currObjPtr = objectManager + FIRST_OBJECT;
                int currObj    = MemoryHandler.readInt(currObjPtr);

                //System.IO.StreamWriter file = new System.IO.StreamWriter(@"C:\Users\például Lilian\Desktop\akarmi2.txt");

                while (currObj != 0)
                {
                    currObj = MemoryHandler.readInt(currObjPtr);

                    /*if (
                     *  MemoryHandler.readHexAsInt64(Offset.MOUSE_OVER_GUID) != 0 &&
                     *  MemoryHandler.readHexAsInt64(Offset.MOUSE_OVER_GUID) == MemoryHandler.readHexAsInt64(currObj + GUID_OFFS)
                     * ) {
                     *    System.Console.WriteLine(MemoryHandler.readInt(currObj + Offset.TYPE_ID));
                     * }*/

                    if (MemoryHandler.readHexAsInt64(currObj + 560) == 75435293781275187)
                    {
                        if (MemoryHandler.readInt(currObj + 0xBC) != 0)
                        {
                            System.Console.WriteLine(MemoryHandler.readInt16(currObj + 0xBC));
                            if (MemoryHandler.readInt16(currObj + 0xBC) == 1)
                            {
                                MemoryHandler.writeInt64(Offset.MOUSE_OVER_GUID, MemoryHandler.readHexAsInt64(currObj + GUID_OFFS));
                                ChatWriter.hitKey(0x42);
                            }
                        }
                    }

                    currObjPtr = currObj + NEXT_OBJECT;
                }
                Thread.Sleep(100);
            }
        }
示例#7
0
        public int getPlayerAddress()
        {
            int    LocalGUID  = 0xC0;
            String playerGUID = MemoryHandler.readHexAsString(objectManager + LocalGUID);

            Player.PLAYER_GUID = MemoryHandler.readHexAsInt64(objectManager + LocalGUID);

            int currObjPtr = objectManager + FIRST_OBJECT;
            int currObj    = MemoryHandler.readInt(currObjPtr);

            while (currObj != 0)
            {
                currObj = MemoryHandler.readInt(currObjPtr);
                Int64 GUID = MemoryHandler.readHexAsInt64(currObj + GUID_OFFS);

                if (GUID == Player.PLAYER_GUID)
                {
                    return(currObj);
                }
                currObjPtr = currObj + NEXT_OBJECT;
            }
            return(0);
        }
示例#8
0
        private ObjectManager()
        {
            int CurMgr = MemoryHandler.readInt(CUR_MGR_PTR);;

            objectManager = MemoryHandler.readInt(CurMgr + CUR_MGR_OFFSET);
        }
示例#9
0
 public int getMaxMana()
 {
     return(MemoryHandler.readInt(MAX_MANA));
 }
示例#10
0
 public int getCurrMana()
 {
     return(MemoryHandler.readInt(CURR_MANA));
 }
示例#11
0
 public int getMaxHP()
 {
     return(MemoryHandler.readInt(MAX_HP));
 }
示例#12
0
 public int getCurrHP()
 {
     return(MemoryHandler.readInt(CURR_HP));
 }
示例#13
0
 public bool isMoving()
 {
     return(MemoryHandler.readInt(Offset.CTM_Action) == 4 ? true : false);
 }