Can someone Help me? change targeting stance
I'm Trying to make an action that if there is player on screen they chance stance to reach monster, if not, change to "no movement".
Code:
auto(1000)
if paround(10) > 0 then
setsetting('Targeting/Creatures/Rustheap Golem/Setting1/Stance/Reach')
setsetting('Targeting/Creatures/Glooth Golem/Setting1/Stance/Reach')
setsetting('Targeting/Creatures/Devourer/Setting1/Stance/Reach')
setsetting('Targeting/Creatures/Rot Elemental/Setting1/Stance/Reach')
else
setsetting('Targeting/Creatures/Rustheap Golem/Setting1/Stance/No Movement')
setsetting('Targeting/Creatures/Glooth Golem/Setting1/Stance/No Movement')
setsetting('Targeting/Creatures/Devourer/Setting1/Stance/No Movement')
setsetting('Targeting/Creatures/Rot Elemental/Setting1/Stance/No Movement')
end
Can someone please help me?
EDIT: fixed it, please close the thread
Code:
auto(1000)
if table.find({"Spawn"}, $wptsection) and paround(10) > 0 then
setsetting('Targeting/Creatures/Rustheap Golem/Setting1/Stance', 'reach')
setsetting('Targeting/Creatures/Glooth Golem/Setting1/Stance', 'reach')
setsetting('Targeting/Creatures/Devourer/Setting1/Stance', 'reach')
else
setsetting('Targeting/Creatures/Rustheap Golem/Setting1/Stance', 'No movement')
setsetting('Targeting/Creatures/Glooth Golem/Setting1/Stance', 'No Movement')
setsetting('Targeting/Creatures/Devourer/Setting1/Stance', 'No Movement')
end