Signup Now
Results 1 to 2 of 2
  1. #1
    Free User mierzej's Avatar
    Join Date
    Aug 2016
    Posts
    6
    Reputation
    10
    Rep Power
    0

    If standtime > x set only if trapped to no

    Hey there!
    I got a problem while going to spawn, sometimes necromancers block my way there, and only if trapped isnt working well.
    All waypoints are in the card called "beforespawn", so this code should work only there. Am i right? Anyone? ;P

    Code:
    local X = {"Necromancer"}
    if $standtime >= 10000 then
    setsettings("Settings\\Targeting\\Monsters\\"..X.."\\OnlyIfTrapped","no", 'beforespawn')
    else
    setsettings("Settings\\Targeting\\Monsters\\"..X.."\\OnlyIfTrapped","yes", 'beforespawn')
    end


    I have no intention to kill those few necros, only in case if they block the way.
    Setting "only if trapped" isnt enought, cuz char is not really traped, just stuck.

    Hope u Guys&Gals got what i mean
    Last edited by mierzej; 10-22-2016 at 05:33 PM.

  2. #2
    Free User Cisco's Avatar
    Join Date
    Aug 2014
    Location
    Brazil
    Posts
    1,424
    Reputation
    119
    Rep Power
    23
    Quote Originally Posted by mierzej View Post
    Hey there!
    I got a problem while going to spawn, sometimes necromancers block my way there, and only if trapped isnt working well.
    All waypoints are in the card called "beforespawn", so this code should work only there. Am i right? Anyone? ;P

    Code:
    local X = {"Necromancer"}
    if $standtime >= 10000 then
    setsettings("Settings\\Targeting\\Monsters\\"..X.."\\OnlyIfTrapped","no", 'beforespawn')
    else
    setsettings("Settings\\Targeting\\Monsters\\"..X.."\\OnlyIfTrapped","yes", 'beforespawn')
    end


    I have no intention to kill those few necros, only in case if they block the way.
    Setting "only if trapped" isnt enought, cuz char is not really traped, just stuck.

    Hope u Guys&Gals got what i mean
    1- Wrong area, post Lua Requests

    2-...

    local X = {"Necromancer"}
    if $standtime >= 10000 and $wptsection == 'beforespawn' then
    setsetting('Targeting/Creatures/'..X..'/Setting1/OnlyIfTrapped', 'no')
    else
    setsetting('Targeting/Creatures/'..X..'/Setting1/OnlyIfTrapped', 'yes')
    end



    If only a creature, simply put that's all.

    if $standtime >= 10000 and $wptsection == 'beforespawn' then
    setsetting('Targeting/Creatures/Necromancer/Setting1/OnlyIfTrapped', 'no')
    else
    setsetting('Targeting/Creatures/Necromancer/Setting1/OnlyIfTrapped', 'yes')
    end

 

 

Posting Permissions

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