Results 1 to 6 of 6

Thread: About Royal Spear in the arm

  1. #1
    Normal User Pukielos's Avatar
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    57
    Rep Power
    6

    About Royal Spear in the arm

    if itemcount("spear") < 5 then
    gotolabel("exit")
    else gotolabel("hunt")
    end

    When I use this action and have 25 spear in arm ibot does not see and goes to label exit, so is it any advice?
    Sold 366 MS with Feru hat to jonathanjj

    My project
    http://www.tibiaibot.com/forum/showt...roject-Non-pvp

  2. #2
    Normal User
    Join Date
    Sep 2012
    Posts
    169
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5
    if (positive(weaponamount + itemcount(AmoType))) <= MinAmo then blablablabla..

    Well you can Add in setup something like

    AmoType = 'Spear'
    MinAmo = 5

    or well just do

    if (positive(weaponamount + itemcount(AmoType))) <= 5 then blablablabla..

  3. #3
    Normal User
    Join Date
    Sep 2012
    Posts
    169
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5
    and ofc in your script it about Spear and not Royal Spear..

  4. #4
    Normal User Pukielos's Avatar
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    57
    Rep Power
    6
    Quote Originally Posted by Rossie View Post
    and ofc in your script it about Spear and not Royal Spear..
    ofc I know, but

    PHP Code:
    if weaponamount("spear") < 5 then 
    gotolabel
    ("exit")
    else 
    gotolabel("hunt")
    end 
    doesn't work too
    Sold 366 MS with Feru hat to jonathanjj

    My project
    http://www.tibiaibot.com/forum/showt...roject-Non-pvp

  5. #5
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    PHP Code:
    if weaponamount 5 then 
    gotolabel
    ("exit")
    else 
    gotolabel("hunt")
    end 

  6. #6
    Normal User Pukielos's Avatar
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    57
    Rep Power
    6
    Quote Originally Posted by soder View Post
    PHP Code:
    if weaponamount 5 then 
    gotolabel
    ("exit")
    else 
    gotolabel("hunt")
    end 
    ty


    numbers
    Sold 366 MS with Feru hat to jonathanjj

    My project
    http://www.tibiaibot.com/forum/showt...roject-Non-pvp

Posting Permissions

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