Flatlander
Species Developer
Happens to me.
Not if you understand what you're writing
for a = 1, #variable2 do
for b = 1, #variable4 do
addEvent(telegraphedSpell[variable3], a*variable6, variable1*b, variable1*b, variable2, variable7)
end
end
Maybe because you named the variables a, b and variableX ?
for a = 1, range do
for b = 1, a do
addEvent(doSpellFunction[spellname], ((castInterval*8)*a), -b, -b, b, 0, 1, 0, 0, false)
end
end
function doWhirlwindSpin(curX, curY, Srange, count, additive, spincount, collisions, affectedList)
omg how could I be this stupid?
why the fuck is this so inefficient?
Yep, rewrote CandyBots looting system after realizing a far better way to do it ;D
https://github.com/BenDol/otclient-candybot/commit/480098a24dc55db9b778387e037d6b952ffaa456
https://github.com/BenDol/otclient-candybot/commit/5737dfc46d6a55b1d006d239a41d08dd3dd66144