_hirondelle wrote:But with speedhack, the first five minutes were ok but 30 sec later, I died 2 times.
So it worked for 5 minutes? It either works or it doesn't. If it worked then you died after 5 minutes then the problem is something else or an existing issue with speedhack, such as going too fast.
Nothing bad happens the first five minutes, after I died.
I was running to fast yep
if type(_nameorid) == "number" then
buffname = GetIdName(_nameorid)
else
if string.find(string.lower(_nameorid), "spirit" ) or
string.find(string.lower(_nameorid), "heart" ) then
buffname = GetIdName(503946)
elseif string.find(string.lower(_nameorid), "nature") then
buffname = GetIdName(503581)
elseif string.find(string.lower(_nameorid), "walker") then
buffname = GetIdName(503580)
else
error("Unrecognized name for warden pet buff.")
end
end
I thought you meant you had previously committed it but then it was reverted. Now I'm understanding you meant you had changed it but never committed it and lost the changes?
Anyway, that's the right way to do it.
I'm a bit confused by the "name" side of it. I understand the "spirit", "heart" etc are only code words? If so why do a string.find?
You could do an actual string comparison like this or something like it.
rock5 wrote:I thought you meant you had previously committed it but then it was reverted.
I thought I had commited it, not going to bother checking as it doesn't really matter lol
rock5 wrote:I'm a bit confused by the "name" side of it. I understand the "spirit", "heart" etc are only code words? If so why do a string.find?
The default bot uses the buff ID's and so that code is purely there incase anyone wants to add in their own usage of warden pet buffs, So they could do.