Results 1 to 2 of 2

Thread: Softboot refiller not working

  1. #1
    iBot User
    Join Date
    Mar 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    10
    Rep Power
    4

    Softboot refiller not working

    can't get the bot to withdraw the money for soft boots, it withdraws for food and supplies but the softboots part isnt working

    this is the part not working (wouldn't let me post the entire code)

    Code:
    if SoftBootsRefill and itemcount("Worn Soft Boots") >= SoftBootsToRefill then 
    Money = Money + positive(itemcount("Soft Boots")) * 10000
    Money = Money+400

    and this is in the actions setup for the softboots
    Code:
    --{SoftBoots Refill}--
    SoftBootsRefill = true
    SoftBootsToRefill = 1
    EquipSoftBoots = true
    OtherBoots = 'Boots of Haste'

  2. #2
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    You should do something like that:
    if SoftBootsRefill and itemcount("worn soft boots") >= SoftBootsToRefill then
    Money = Money + itemcount("worn soft boots") * 10000
    Money = Money + 400
    Money = math.ceil(Money / 1000) * 1000
    end


    The wrong part on your code is that: [ilua]positive(itemcount("Soft Boots"))[/ilua]

Posting Permissions

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