Results 1 to 4 of 4

Thread: Action waypoint how to make?

  1. #1
    iBot User
    Join Date
    Apr 2012
    Location
    Poland
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5

    Exclamation Action waypoint how to make?

    Dear Users

    I have problem with action waypoint. When i do some action wpt and paste some code ibot don't make this action and write something error in DEBUG SONSOLE. For example ibot i paste in action wpt it:

    reachcreature('Grizzly Adams')
    wait(2000,3000)
    npcsay('task')
    wait(2000,3000)
    npcsay('task')
    wait(1200,2300)
    npcsay('tarantulas')
    wait(1200,2300)
    npcsay('yes')
    wait(1200,2300)

    in debug console ibot write:
    14:40 : LUA:CaveBotAction - LuaInterface.LuaScriptException: [string "chunk"]:2: invalid arguments to method call

    others:
    14:40 : LUA:CaveBotAction - LuaInterface.LuaScriptException: [string "chunk"]:1: attempt to call global 'islocation' (a nil value)
    14:40 : LUA:CaveBotAction - LuaInterface.LuaScriptException: [string "chunk"]:1: attempt to call global 'gotolabel' (a nil value)
    14:40 : LUA:CaveBotAction - LuaInterface.LuaScriptException: [string "chunk"]:2: attempt to call global 'gotolabel' (a nil value)
    14:40 : LUA:CaveBotAction - LuaInterface.LuaScriptException: [string "chunk"]:1: attempt to call global 'islocation' (a nil value)
    14:40 : LUA:CaveBotAction - LuaInterface.LuaScriptException: [string "chunk"]:1: attempt to call global 'useitemon' (a nil value)
    14:40 : LUA:CaveBotAction - LuaInterface.LuaScriptException: [string "chunk"]:1: attempt to call global 'islocation' (a nil value)
    14:40 : LUA:CaveBotAction - LuaInterface.LuaScriptException: [string "chunk"]:4: attempt to call global 'itemcount' (a nil value)
    14:40 : LUA:CaveBotAction - LuaInterface.LuaScriptException: [string "chunk"]:1: attempt to call global 'itemcount' (a nil value)
    14:40 : LUA:CaveBotAction - LuaInterface.LuaScriptException: [string "chunk"]:1: attempt to call global 'itemcount' (a nil value)

    HOW TO SOLVE THIS PROBLEM?

  2. #2
    iBot User 3173654's Avatar
    Join Date
    Aug 2012
    Posts
    1,393
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    28 Post(s)
    Reputation
    202
    Rep Power
    9
    check actions: if islocation() , check supplies!
    http://www.tibiaibot.com/forum/showthread.php?16907-FREE-Scripts-3173654&highlight=3173654+free+scripts

  3. #3
    iBot User
    Join Date
    Apr 2012
    Location
    Poland
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5
    when i use:
    if islocation(4) then
    gotolabel("xxxx")
    return
    end


    ibot write in debug console:
    17:14 : LUA:CaveBotAction - LuaInterface.LuaScriptException: [string "chunk"]:1: attempt to call global 'islocation' (a nil value)

  4. #4
    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
    i dont belive it...


    If you're getting that error, you must have an action somewhere that says islocation without the () on the end, same with itemcount

Posting Permissions

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