Esempio n. 1
0
        public void fish()
        {
            if (fishCounter > 50)
            {
                destroyTillUncommon();
                fishCounter = 0;
            }

            ChatWriter.send(MemoryHandler.process.MainWindowHandle, "/click MultiBarRightButton3");
            Thread.Sleep(500);

            if (ObjectManager.sharedOM().getBobberBase() == -1)
            {
                System.Console.WriteLine("nincs bobber");
                return;
            }

            bobber = new Bobber(ObjectManager.sharedOM().getBobberBase());

            stopwatch.Reset();
            stopwatch.Start();
            while (stopwatch.ElapsedMilliseconds < 20000)
            {
                if (bobber.isBobbing())
                {
                    System.Console.WriteLine("bite");
                    MemoryHandler.writeInt64(Offset.MOUSE_OVER_GUID, (bobber.GUID));
                    ChatWriter.hitKey(ChatWriter.B);
                    fishCounter++;
                    return;
                }
                Thread.Sleep(100);
            }
        }
Esempio n. 2
0
 public void ressurrect()
 {
     ChatWriter.send(MemoryHandler.process.MainWindowHandle, "/script RepopMe()");
     Thread.Sleep(2000);
     MemoryHandler.writeInt64(Offset.MOUSE_OVER_GUID, ObjectManager.sharedOM().getSHGUID());
     Thread.Sleep(500);
     ChatWriter.hitKey(0x042);
     Thread.Sleep(6000);
     ChatWriter.send(MemoryHandler.process.MainWindowHandle, "/run SelectGossipOption(1) AcceptXPLoss()");
     Thread.Sleep(6000);
 }
Esempio n. 3
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);
        }
Esempio n. 4
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);
            }
        }