Signup Now
Results 1 to 1 of 1
  1. #1
    Free User
    Join Date
    Jan 2017
    Posts
    6
    Reputation
    10
    Rep Power
    0

    Unhappy 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
    Last edited by italop; 07-21-2017 at 01:31 AM.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •