Results 1 to 8 of 8

Thread: How to do multi variable?

  1. #1

    Join Date
    Jul 2012
    Posts
    362
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    45
    Rep Power
    5

    How to do multi variable?

    How to do if Pvp = false or pzone set to yes?
    Code:
    if Pvp
    then
    setsettings("Settings\\Cavebot\\Pathfinding\\WalkThroughPlayers", "no")
    else
    setsettings("Settings\\Cavebot\\Pathfinding\\WalkThroughPlayers", "yes")
    end
    I want to walk through players if pzone or if pvp = false
    How to do that?

  2. #2
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    815
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    344 Post(s)
    Reputation
    462
    Rep Power
    10
    PHP Code:
    local pvp true

    if pvp == true and pzone == false
    then
        setsettings
    ("Settings\\Cavebot\\Pathfinding\\WalkThroughPlayers""no")
    else
        
    setsettings("Settings\\Cavebot\\Pathfinding\\WalkThroughPlayers""yes")
    end 


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

  3. #3

    Join Date
    Jul 2012
    Posts
    362
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    45
    Rep Power
    5
    Thx
    my muggy plains almost finished!

  4. #4
    Normal User
    Join Date
    Mar 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    As you work to not attack creatures other players in the muggy plains?

  5. #5

    Join Date
    Jul 2012
    Posts
    362
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    45
    Rep Power
    5
    Thats impossible yet i think.
    I tried to do it too.

  6. #6
    Normal User ToadZ's Avatar
    Join Date
    Jul 2012
    Location
    Tarantula Caves - Tiquanda
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    26
    Rep Power
    5
    Quote Originally Posted by wemerson View Post
    As you work to not attack creatures other players in the muggy plains?
    http://www.tibiaibot.com/forum/showt...Anti-KS-Action

  7. #7
    Normal User
    Join Date
    Mar 2012
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    this script does not work very well! is not safe to use!

  8. #8
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by blakw View Post
    PHP Code:
    local pvp true

    if pvp == true and pzone == false
    then
        setsettings
    ("Settings\\Cavebot\\Pathfinding\\WalkThroughPlayers""no")
    else
        
    setsettings("Settings\\Cavebot\\Pathfinding\\WalkThroughPlayers""yes")
    end 
    He said Or. Should be like this?

    PHP Code:
    local pvp true

    if pvp or not pzone
    then
        setsettings
    ("Settings\\Cavebot\\Pathfinding\\WalkThroughPlayers""no")
    else
        
    setsettings("Settings\\Cavebot\\Pathfinding\\WalkThroughPlayers""yes")
    end 
    Last edited by pink_panther; 08-22-2012 at 06:55 PM.

Posting Permissions

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