Page 5 of 11
Re: Swim and Speed hacks
Posted: Thu Oct 27, 2011 7:56 pm
by Administrator
BillDoorNZ wrote:I have my UDP stuff working well enough now to so something like that, but the way I have it working at the moment is purely to allow me to play at work via a windows forms type interface so I dont have the game client on-screen for any tom dick or harry to wander past and see.
Can you give some more details? Are you using the MicroMacro's standard network functions or some addon for sockets?
I'm actually considering deprecating the network functions in favor of a more universal set up, such as one LuaSockets.
Re: Swim and Speed hacks
Posted: Thu Oct 27, 2011 8:20 pm
by BillDoorNZ
I'm using LuaSocket to do the UDP stuff, not the MM networking functions.
The main issue is speed - I have 2 threads
Thread 1 uses Rocks Chat Monitor stuff to run through all normal chats (SAY, WORLD, ZONE, WHISPER, GUILD, CHANNEL etc) and then sends them to my .net client (which has a UDP listener in it) via the LuaSocket UDP class (socket.udp()).
Thread 2 starts a UDP listener and receives commands from my .net client which it then forwards to the game client or executes (in the case of MM function calls).
Both threads yield quite regularly to allow the bot to perform its usual duties (running around - I don't use the bot for combat, I use the old Uberflex AutoCombat addon which I modded to execute on F11 keypress that my .net client sends every 20ms as its much quicker that way) - I should really get around to using the bot instead tho.
I'll attach a zip to my next post so you can see what I mean - just have to remove any character specific stuff - of which there is prolly a heap

Re: Swim and Speed hacks
Posted: Thu Oct 27, 2011 8:26 pm
by BillDoorNZ
ok, heres that zip file
I modified bot.lua and saved it as edbot.lua to do what I needed it to do (cut out a lot of stuff I don't use).
under userfunctions there is a userfunction_integrationBot.lua file with most of my stuff hacked in there (its all a bit messy atm I'm afraid). I think I hacked more of my stuff into some of the standard libs too just to make it work for me. Can't really remember now

Re: Swim and Speed hacks
Posted: Sun Oct 30, 2011 4:03 pm
by Nevex
Instead of flying like going up in there air it just goes maybe a half inch off the ground and does swimming....the hack.xml that is.
Re: Swim and Speed hacks
Posted: Sun Oct 30, 2011 4:29 pm
by BillDoorNZ
that is the fly hack there Nevex. Fly/Swim or whatever anyone wants to call it

Re: Swim and Speed hacks
Posted: Sun Oct 30, 2011 10:39 pm
by lisa
Nevex wrote:Instead of flying like going up in there air it just goes maybe a half inch off the ground and does swimming....the hack.xml that is.
Yeah that WP is just to turn on and off the hacks, you then move with the movement keys. It will move where you are facing so look up and push forward and up you go. Jump won't do anything.
Re: Swim and Speed hacks
Posted: Tue Nov 08, 2011 3:48 pm
by salesman921
i just used the survival waypoint and that worked great, thanks alot.
Re: Swim and Speed hacks
Posted: Thu Nov 24, 2011 10:34 am
by lisa
updated swim for 4.0.5.2467 first post.
Re: Swim and Speed hacks
Posted: Tue Dec 06, 2011 11:24 am
by lisa
updated swim for patch 4.0.5.2472.
First post.
Re: Swim and Speed hacks
Posted: Tue Dec 06, 2011 12:00 pm
by rock5
About the swim hack (and speed hack for that matter) there are new offsets you can use in addresses.lua.
For instance, instead of.
Code: Select all
local offsets = {0x598, 0xF0, 0xB4}
you can use
Code: Select all
local offsets = {charPtr_offset, pawnSwim_offset1, pawnSwim_offset2}
Obviously "charPtr_offset" is not a new offset.
And in Speed hack
Code: Select all
memoryWriteFloat(getProc(), playerAddress + pawnSpeed_offset, _speed);
Re: Swim and Speed hacks
Posted: Tue Dec 06, 2011 12:05 pm
by lisa
changed swim to use the offsets from addresses.lua now.
I obviously added the "addresses." to them before testing lol
tested and updated first post

Re: Swim and Speed hacks
Posted: Wed Dec 14, 2011 10:59 am
by lisa
updated swim for patch 4.0.6.2476
Re: Swim and Speed hacks
Posted: Sun Dec 18, 2011 2:29 am
by lisa
added the address to addresses.lua
update to revision 684+ and then use userfunction on first post and it won't need updating anymore.
After patches we just need to make sure to update swim address and it will be fine =)
Re: Swim and Speed hacks
Posted: Mon Dec 26, 2011 7:30 am
by sfrattini
Hi Lisa,
since last patch I am having problems with swim hack, very similar to pre-address update issues.
The swim hack does not get triggered, like if the address is not recognized at all, I have updated everything with SVN to 686 so in theory there should be anything else to do...
Do you have any suggestion?
Thanks in advance.
Re: Swim and Speed hacks
Posted: Mon Dec 26, 2011 6:21 pm
by lisa
did you test it with the WP file I have on first post?
Also make sure you have the latest userfunction V 2.0
Re: Swim and Speed hacks
Posted: Tue Jan 03, 2012 3:47 pm
by kuripot
i have a question... how to set the fly hack heigth... imean if i want to fly close to seiling or only in the top of the door??
Re: Swim and Speed hacks
Posted: Tue Jan 03, 2012 5:05 pm
by kuripot
this is my problem... i try to do my own waypoint in goblin but im stuck...
this my waypoint
i edit the onload from "Malatinas_Goblins_Wp" i delete some onload that make error.. i doing goblin alone not in party
Code: Select all
<waypoints type="RUN"><!-- Malatinas Goblins by Bot_romka v 1.1.5 -->
<onLoad>
MainLevel = 50 <!-- Level of character which kill mobs -->
NumTwinks = 0 <!-- Number of characters. For solo = 0, up to 5. -->
----------------------------------------------------------------------------------------
repeat zoneid=RoMScript("GetZoneID()"); until zoneid
repeat npcname=RoMScript("TEXT('Sys112651_name')"); until npcname
repeat dgnname=RoMScript("TEXT('ZONE_DGN_BORSBURS')"); until dgnname
repeat zonename=RoMScript("TEXT('ZONE_ASLAN')"); until zonename
---repeat curzone=RoMScript("GetZoneName()"); until curzone
---RoMScript("DEFAULT_CHAT_FRAME:AddMessage('|cffffff00Malatinas: "..player.Name.." You are in "..curzone..".|r')")
function memoryfreezeSwimhack()
local offsets = {addresses.charPtr_offset, addresses.skillBuffFlag_offset, 0xB4};
memoryWriteIntPtr(getProc(), addresses.staticbase_char, offsets, 4);
end
function gSwimhack()
registerTimer("SwimhackTimer", 5, memoryfreezeSwimhack);
end
function getTreasureChest()
EventMonitorStart("TreasureChest", "PLAYER_BAG_CHANGED")
local retry_count = 0;
while(retry_count<7)do
player:target_Object(113137,7000,nil,true)
local time, moreToCome, msg = EventMonitorCheck("TreasureChest", "1")
if msg ~= nil then
EventMonitorStop("TreasureChest")
break
end
retry_count = retry_count + 1;
end
printf("Chest opens. continuing.\n")
end
function PauseTwink()
EventMonitorStart("PausePARTY", "CHAT_MSG_PARTY")
repeat
local time, moreToCome, name, msg = EventMonitorCheck("PausePARTY", "4,1")
if time ~= nil then
if string.find(msg,"All Ok") then
break
end
end
yrest(5)
until false
end
changeProfileOption("RES_AUTOMATIC_AFTER_DEATH", false)
changeProfileOption("TARGET_LEVELDIF_BELOW", 40)
changeProfileOption("LOOT_IN_COMBAT", false)
changeProfileOption("AUTO_ELITE_FACTOR", 15)
changeProfileOption("LOOT_ALL", true)
if player:target_NPC(112651) then
sendMacro("ChoiceOption(1);");
yrest(5000);
RoMScript("StaticPopup_OnClick(StaticPopup1, 1);")
waitForLoadingScreen();
__WPL:setWaypointIndex(2) -- or whatever point you want it to go to first.
else
error("You are too far from Mahler Palo")
end
</onLoad>
<!-- # 1 --><waypoint x="-5837" z="3322" y="572"> player:target_NPC("Mahler Palo");
sendMacro("ChoiceOption(1);");
waitForLoadingScreen();
</waypoint>
<!-- # 2 --><waypoint x="1904" z="2230" y="308" tag="STARTM4">
fly();
</waypoint>
<waypoint x="2040" z="2226" y="388"></waypoint>
<waypoint x="2161" z="2231" y="388"></waypoint>
<waypoint x="2296" z="2214" y="377"></waypoint>
<waypoint x="2061" z="2789" y="377"></waypoint>
<waypoint x="2204" z="3071" y="366"></waypoint>
<waypoint x="2092" z="3628" y="366"></waypoint>
<waypoint x="2240" z="3628" y="346"></waypoint>
what can you advice???
this is also my problem in mini treasure main entrance door
Re: Swim and Speed hacks
Posted: Tue Jan 03, 2012 5:19 pm
by kuripot
or if there a option that when i'm stuck, it try again but downward and upward not sideward??
Re: Swim and Speed hacks
Posted: Fri Jan 06, 2012 9:21 pm
by dancerinthedark
Hello,
I have questions about speed hack. I was using speed hack in my ks farming script, but sometimes it happens that bot returns back, ex. my char clears one room and moves forward, and in 5 secs he "returs" to same room, like the ini is returning him backward, which causes bot to get stuck. Is there some limitations in speed hack, like the max length, or smt? Or some speed limit that I've past?
Thanks in forward, dd
Re: Swim and Speed hacks
Posted: Fri Jan 06, 2012 9:27 pm
by lisa
dancerinthedark wrote:and in 5 secs he "returs" to same room
You can get pulled back by the server if you have traveled further then it thinks you should have travelled, a few things can affect this and the distance you can travel is different for everyone.
I would suguest just reducing the amount of speed applied.
speed(50) -- normal walking
speed(100) -- as fast as you can go but probably get pulled back if u travel distance
So basically just vary the value between 50 and 100.
Try starting with 80 and see how that goes.