Results 1 to 2 of 2

Thread: Help with an action

  1. #1
    iBot User
    Join Date
    Sep 2013
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    4

    Help with an action

    Sometimes my computer lags and my bot drop soft instead of looting (idk exactly how it happens),


    So i was trying to create an action to stop cavebot and playalarm if soft wasn't with me,

    PHP Code:
    local softInUseId 3549
    local softId 
    6529
    local softWornId 
    653

    if itemcount(softInUseId) == and itemcount(softId) == 
    and itemcount(softWornId) == and (battlesignedthen
        setsettings
    ("Settings\\CaveBot\\Enabled","no")
    playsound("alert.wav")
    else 
    setsettings("Settings\\CaveBot\\Enabled","yes")
    end 
    But the bot doesn't count the softboots when they are on my feet, how do I change this?

  2. #2
    iBot User Dehan's Avatar
    Join Date
    May 2012
    Location
    www.ssocialscripts.com
    Posts
    910
    Mentioned
    2 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    114
    Rep Power
    7
    just change the way you check the Soft in use, here is it:
    PHP Code:
    local softInUseId 3549
    local softId 
    6529
    local softWornId 
    653

    if boots ~= itemid(softInUseId) and itemcount(softId) == and itemcount(softWornId) == and (battlesignedthen
        setsettings
    ("Settings\\CaveBot\\Enabled","no")
    playsound("alert.wav")
    else 
    setsettings("Settings\\CaveBot\\Enabled","yes")
    end 
    Check out - Dehan Accounts Service!

    Proud Scripter of BUgWT STAFF

Posting Permissions

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