Results 1 to 5 of 5

Thread: Error

  1. #1
    iBot User
    Join Date
    Jan 2014
    Posts
    118
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    30 Post(s)
    Reputation
    14
    Rep Power
    3

    Error

    My action are not working; Could somebody help me?
    HTML Code:
    if weapon == itemid("spear") <= meleeoff then
        moveitems("spear", "all", "weapon", 5) wait(500)
    end
    HTML Code:
    meleeoff = 5
    If you don't understand the code, i want this:
    When i looted 5 spears, i want the bot trade the serpent sword (main weapon) to the 5 spears who i looted.

  2. #2
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    Lua Code:
    if weaponamount <= meleeoff then
        moveitems("spear", "all", "weapon", 5) wait(500)
    end

  3. #3
    iBot User
    Join Date
    Jan 2014
    Posts
    118
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    30 Post(s)
    Reputation
    14
    Rep Power
    3
    The code who you send don't work too.
    So I create a new one who works perfectly.
    if itemcount('spear') > 4 then
    moveitems("spear", "all", "weapon", 5) wait(500)
    end
    Last edited by vital900; 03-06-2014 at 12:43 AM.

  4. #4
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    ye I made if you have below 5 spears on hand then he moves more spears, sorry my fault

  5. #5
    iBot User
    Join Date
    Jan 2014
    Posts
    118
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    30 Post(s)
    Reputation
    14
    Rep Power
    3
    Np, rep+ for the help

Posting Permissions

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