Results 1 to 2 of 2

Thread: Setup Changer Action

  1. #1
    iBot User Xaoo's Avatar
    Join Date
    May 2014
    Location
    London
    Posts
    136
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    63 Post(s)
    Reputation
    21
    Rep Power
    3

    Setup Changer Action

    Hello, I've got this action and it's not working ;/

    Lua Code:
    -- Config -- 
     
    vocation = 'ED'

    Lua Code:
     
    if vocation == 'EK' then
     
        setsettings('Settings\\Healer\\Rules\\EK_ico\\Enab  led', 'yes')   
     
    elseif vocation == 'ED' then
     
        setsettings('Settings\\Healer\\Rules\\EK_ico\\Enab  led', 'no')   
        setsettings('Settings\\Healer\\Rules\\ED_exura\\En  abled', 'yes')   
     
    end


    It doesnt work unfortunatelly.

    //EDIT: Nvm, never chose word 'vocation' as a variable!

  2. #2
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    @Xaoo

    '1' = Knight will have ico and rest vocation will have exura

    Lua Code:
     
    if vocation == 1 then
    setsettings('Settings\\Healer\\Rules\\EK_ico\\Enab  led', 'yes') 
    setsettings('Settings\\Healer\\Rules\\ED_exura\\En  abled', 'no')
    else
    setsettings('Settings\\Healer\\Rules\\EK_ico\\Enab  led', 'no')   
    setsettings('Settings\\Healer\\Rules\\ED_exura\\En  abled', '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
  •