Signup Now
Results 1 to 2 of 2
  1. #1
    Wind Powered
    Join Date
    Jan 2014
    Posts
    16
    Reputation
    10
    Rep Power
    0

    How to check the selections made in the settings?

    In my settings I did the option to use more than one type of HP in the hunt.
    The problem is I can not make them be checked and sorted according to the occasion, time to withdraw the money for example.

    I use for check:
    PHP Code:
     if PrimeiraPotionbox then and SegundaPotionBox false
    Total 
    Healthum Mana softboots 
    elseif
     
    PrimeiraPotionbox and SegundaPotionBox then
    Total 
    Healthum Healthdois Mana softboots 
    elseif
    SegundaPotionBox then and PrimeiraPotionbox false
    Total 
    Healthdois Mana softboots
    end 
    Error:
    PHP Code:
    22:53:01 error in Action script wptid:3:
      [
    " if PrimeiraPotionbox then and SegundaPoti..."]:Action: :9unexpected symbol near 'and' 
    how can I make it work?
    thanks for the help!

  2. #2
    Free User CroiX's Avatar
    Join Date
    Jan 2014
    Posts
    890
    Reputation
    61
    Rep Power
    22
    if PrimeiraPotionbox >>then<< and SegundaPotionBox >>false<<<


    That's your problem, the random "False", and wrong placement of "Then" Are you using useroptions?

    If you don't want to use something when false, use "not"

    Like,


    if ManaPot and (not StrongManaPot) then
    blablbalb
    end

    ---

    Quote or Tag me if you want me to reply quicker


 

 

Posting Permissions

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