Пример #1
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);
        }