Results 1 to 2 of 2

Thread: [problem] cavebot script

  1. #1
    Normal User
    Join Date
    Jun 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    [problem] cavebot script

    Hello. Sbd could tell me why it isnt working?

    PHP Code:
    -- Setup

    -- Backpack Settings --

    -- 
    Potions Settings --
    hptype "health potion"
    hpmax 10 
    hpmin 
    5
    hpprice 
    45

    -- Cap Settings --
    captoleave 10 
    PHP Code:
    local hp positive(hpmax itemcount(hptype)) * hpprice

    if itemcount(hptype) < hpmax
    then
    npcsay 
    ("hi")
    wait (1000,2000)
    npcsay ("withdraw "..hp)
    wait (1000,2000)
    npcsay ("yes")
    wait (1000,2000)
    gotolabel ("GOBUYHP")

    else
    gotolabel ("GOHUNT"
    Last edited by pjekosz; 11-29-2012 at 06:48 AM.

  2. #2
    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:
    local hp positive(hpmax itemcount(hptype)) * hpprice

    if itemcount(hptype) < hpmax
    then
    npcsay 
    ("hi")
    wait (1000,2000)
    npcsay ("withdraw "..hp)
    wait (1000,2000)
    npcsay ("yes")
    wait (1000,2000)
    gotolabel ("GOBUYHP")

    else
    gotolabel ("GOHUNT"
    end -- you forgot this 

Posting Permissions

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