function CPlayer:resetGlobalCooldown()
local breaker = 0;
repeat
if(self.GlobalCooldown > 0.8)then
memoryWriteInt(getProc(), addresses.staticCooldownsBase, 8);
end
self.GlobalCooldown = memoryReadRepeat("int", getProc(), addresses.staticCooldownsBase)/10
breaker = breaker + 1;
until self.GlobalCooldown <= 0.8 or breaker > 10
if( self.GlobalCooldown <= 0.8 )then
return true
else
return false
end
end
This is works 100% however when i use the bot i cant get it to work the bot says error not formal code.
The way this exploit works is that we take advantage of Runes of Magic's poor server communication same with speed hack. this allows players to make infinite white attacks in a short amount of time.
However the risk of getting banned is unknown at this point can you help me get it working.
probably won't fix the error, since you didn't post what the error was it's a bit hard to say but you could write the same code like this. Just looks neater to me is all =)
function CPlayer:resetGlobalCooldown()
local breaker = 0
repeat
if self.GlobalCooldown > 0.8 then
memoryWriteInt(getProc(), addresses.staticCooldownsBase, 8);
end
self.GlobalCooldown = memoryReadRepeat("int", getProc(), addresses.staticCooldownsBase)/10
breaker = breaker + 1
if breaker == 11 then
return false
end
until 0.8 >= self.GlobalCooldown
return true
end
Remember no matter you do in life to always have a little fun while you are at it
lisa wrote:probably won't fix the error, since you didn't post what the error was it's a bit hard to say but you could write the same code like this. Just looks neater to me is all =)
function CPlayer:resetGlobalCooldown()
local breaker = 0
repeat
if self.GlobalCooldown > 0.8 then
memoryWriteInt(getProc(), addresses.staticCooldownsBase, 8);
end
self.GlobalCooldown = memoryReadRepeat("int", getProc(), addresses.staticCooldownsBase)/10
breaker = breaker + 1
if breaker == 11 then
return false
end
until 0.8 >= self.GlobalCooldown
return true
end
no self. just player. work good and if player.GlobalCooldown ~= nil then
but i dont see any differents with that.. still amount of hits are the same in skills & whitehit
function CPlayer:resetGlobalCooldown()
local breaker = 0
if player.GlobalCooldown ~= nil then
repeat
if player.GlobalCooldown > 0.8 then
memoryWriteInt(getProc(), addresses.staticCooldownsBase, 8);
end
player.GlobalCooldown = memoryReadRepeat("int", getProc(), addresses.staticCooldownsBase)/10
breaker = breaker + 1
if breaker == 11 then
return false
end
until 0.8 >= player.GlobalCooldown
return true
end
end
I once hoped gcd was a client thing, did some debugging and removed gcd from client.
This only resulted in errors from server about skill not being ready.
But, ofc I might have done something different than you are trying to do....
best regards
DX
PS. But as BlubBlab says in his post you can use it to make sure you have skills running as fast as possible
without delays due to client <-> server latency.
Last edited by dx876234 on Tue Jun 09, 2015 12:52 pm, edited 1 time in total.