Can someone help me doing a really simple script: if the char is trapped turn targeting on. To prevent being trapped by monsters in my way to the hunt zone. not sure how to do the "im trapped" script
Printable View
Can someone help me doing a really simple script: if the char is trapped turn targeting on. To prevent being trapped by monsters in my way to the hunt zone. not sure how to do the "im trapped" script
Code:auto(1000)
if $standtime > 10000 and $wptsection == "To Hunt" then
settargeting("yes")
wait(10000)
settargeting("no")
end
init start
--Trapped time in seconds:
local trapTime = 25
init end
auto(500, 1000)
if maround(0) >= 1 and $standtime >= trapTime*1000
then
settargeting("on")
end