newLuopan is a variable used to track if the luopan is fresh or not.
If it's a fresh luopan (determined in Geo-spell aftercast), it'll equip and lock the head piece.
As soon as the extra HP is depleted (equal or less than 73% hp), it unlocks the head so you can return to your normal pet idle set and removes the fresh luopan designation.
Seems I left out the initial variable declaration in my original post:
Code
function job_setup()
newLuopan = 0
end
Ragnarok.Endtanis said:
»Is this effectively the same?
Yes. That code is from my lua.