Results 1 to 3 of 3

Thread: litle problem with action

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

    litle problem with action

    what is wrong with that code ?

    local monster = {"Giant Spider", "Bonebeast", "Medusa", "Serpent Spawn", "Hydra"}

    if maround(3, false, monster) >= MonsterToMasSan and cancast("exevo mas san") and target.id ~= 0 and UseMasSan then
    cast("exevo mas san")
    elseif maround(7, false, monster) >= MonsterToRune and cancast("exori con") and target.id ~= 0 and UseRune and itemcount("thunderstorm rune") > 0 then
    shootarearune("thunderstorm rune", MonsterToRune, monster)
    elseif target.id ~= 0 and target.dist <= 4 and target.hppc < 100 and cancast("exori san") then
    cast("exori san")
    wait(200, 400)
    elseif target.id ~= 0 and target.dist <= 7 and target.hppc < 100 and cancast("exori con") then
    cast("exori con")
    wait(200, 400)
    end
    on action setup i got:
    UseMasSan = true
    MonsterToMasSan = 3
    UseRune = true
    MonsterToRune = 3
    and i got debug information:
    12:50 :LUA: DoAction:new-spells: -LuaInterface.LuaScripException:C:\Users\OWNER\Desk op\iBot\libary\Standard.lua:488:attempt to cencatenate field "?"(a table value)
    Last edited by Baton; 09-14-2013 at 07:55 AM.

  2. #2
    iBot User
    Join Date
    Aug 2012
    Location
    Thais
    Posts
    8
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    10
    Rep Power
    5
    bump kurwa

  3. #3
    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
    Code:
    local monster = {"Giant Spider", "Bonebeast", "Medusa", "Serpent Spawn", "Hydra"}
    
    if maround(3, false, unpack(monster)) >= MonsterToMasSan and cancast("exevo mas san") and target.id ~= 0 and UseMasSan then
    cast("exevo mas san")
    elseif maround(7, false, unpack(monster)) >= MonsterToRune and cancast("exori con") and target.id ~= 0 and UseRune and itemcount("thunderstorm rune") > 0 then
    shootarearune("thunderstorm rune", MonsterToRune, unpack(monster))
    elseif target.id ~= 0 and target.dist <= 4 and target.hppc < 100 and cancast("exori san") then
    cast("exori san")
    wait(200, 400)
    elseif target.id ~= 0 and target.dist <= 7 and target.hppc < 100 and cancast("exori con") then
    cast("exori con")
    wait(200, 400)
    end
    you forgot to unpack() your table
    Last edited by Dehan; 09-24-2013 at 07:53 AM.
    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
  •