Results 1 to 3 of 3

Thread: Problema - Action Check

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

    Problema - Action Check

    Tenho tido um problema para configurar a action de check durante a hunt...

    Ocorre que no waypoint determinado da action, escrevo o código abaixo:

    if itemcount(HpType) < HpLeave or
    itemcount(MpType) < MpLeave or
    itemcount(AmmoType) < AmmoLeave or
    cap < CapLeave then
    gotolabel("LeaveHunt")

    end


    Porém, mesmo se eu acabei de fazer o refill e tenho todos os itens, sou encaminhado para a label "LeaveHunt". O que pode ser?

    Há algo errado no meu código? Tenho ele em outros scripts e funciona normalmente...

  2. #2
    iBot User
    Join Date
    Mar 2013
    Posts
    8
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    10
    Rep Power
    4
    Em meu DEBUG aparecem as seguintes mensagens....



    10:12:09 : Action Setup : [string "--Setup
    ..."]:3: expected near '"royal spear"'
    10:44:43 : Action Setup : [string "--Setup..."]:3: expected near '"royal spear"'
    10:47:06 : Action Setup : [string "--Setup..."]:3: expected near '"royal spear"'
    10:47:27 : Action Setup : [string "--Setup..."]:3: expected near '"royal spear"'
    11:09:13 : Cavebot w78 : [string "npcsay ( "hi" ) ..."]:15: attempt to perform arithmetic on global 'AmmoPrice' (a nil value)
    11:10:09 : Cavebot w78 : [string "npcsay ( "hi" ) ..."]:15: attempt to perform arithmetic on global 'AmmoPrice' (a nil value)
    11:46:41 : Cavebot w2 : [string "if itemcount ( HpType ) < 3 or ..."]:12: 'end' expected (to close 'if' at line 1) near
    11:47:10 : Cavebot w2 : [string "if itemcount ( HpType ) < 3 or ..."]:12: 'end' expected (to close 'if' at line 1) near
    11:48:05 : Cavebot w2 : [string "if itemcount ( HpType ) < 3 or ..."]:12: 'end' expected (to close 'if' at line 1) near
    11:49:04 : Cavebot w2 : [string "if ..."]:15: 'end' expected (to close 'if' at line 1) near
    11:49:37 : Cavebot w2 : [string "if ..."]:15: 'end' expected (to close 'if' at line 1) near
    11:49:46 : Cavebot w2 : [string "if ..."]:15: 'end' expected (to close 'if' at line 1) near

  3. #3
    Administrator Tamapumper's Avatar
    Join Date
    Apr 2012
    Posts
    480
    Mentioned
    214 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    167 Post(s)
    Reputation
    177
    Rep Power
    10
    Quote Originally Posted by LuizFG View Post
    Em meu DEBUG aparecem as seguintes mensagens....



    10:12:09 : Action Setup : [string "--Setup
    ..."]:3: expected near '"royal spear"'
    10:44:43 : Action Setup : [string "--Setup..."]:3: expected near '"royal spear"'
    10:47:06 : Action Setup : [string "--Setup..."]:3: expected near '"royal spear"'
    10:47:27 : Action Setup : [string "--Setup..."]:3: expected near '"royal spear"'
    11:09:13 : Cavebot w78 : [string "npcsay ( "hi" ) ..."]:15: attempt to perform arithmetic on global 'AmmoPrice' (a nil value)
    11:10:09 : Cavebot w78 : [string "npcsay ( "hi" ) ..."]:15: attempt to perform arithmetic on global 'AmmoPrice' (a nil value)
    11:46:41 : Cavebot w2 : [string "if itemcount ( HpType ) < 3 or ..."]:12: 'end' expected (to close 'if' at line 1) near
    11:47:10 : Cavebot w2 : [string "if itemcount ( HpType ) < 3 or ..."]:12: 'end' expected (to close 'if' at line 1) near
    11:48:05 : Cavebot w2 : [string "if itemcount ( HpType ) < 3 or ..."]:12: 'end' expected (to close 'if' at line 1) near
    11:49:04 : Cavebot w2 : [string "if ..."]:15: 'end' expected (to close 'if' at line 1) near
    11:49:37 : Cavebot w2 : [string "if ..."]:15: 'end' expected (to close 'if' at line 1) near
    11:49:46 : Cavebot w2 : [string "if ..."]:15: 'end' expected (to close 'if' at line 1) near
    Pelo log da para ver que tem erros no seu script, então o problema não está na action Check.

    erro de sintaxe perto do "royal spear"
    a variavel AmmoPrice está nula ou não foi iniciada.
    Você não fechou algum 'if'

Posting Permissions

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