Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Need help with my refiller

  1. #1
    Normal User Lastu's Avatar
    Join Date
    May 2012
    Posts
    159
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5

    Need help with my refiller

    Hello I have almost dome script but I hae a little problem with my rs refiller

    In setup I have

    PHP Code:
    -- Spear Setup:

    SpearName "royal spear" -- What kind of spear bot will buy.
    SpearPrice 15 -- Spear price.
    MaxSpear 40 weaponamount
    MinSpear 

    and in action:

    PHP Code:
    if weaponamount MinSpear then
    gotolabel
    ("gorefill")
    else
    gotolabel("hunt")
    end 
    But bot is going to refill nevermind if he got 30 or 5 rs

    I need help with this please!

    Thanks

  2. #2
    Normal User Lastu's Avatar
    Join Date
    May 2012
    Posts
    159
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    C'mon guys :x I need this really! This is last thing and I can start testing my script!

  3. #3
    Normal User Lastu's Avatar
    Join Date
    May 2012
    Posts
    159
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    No1 can help? :|

  4. #4
    Normal User
    Join Date
    May 2012
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Are you sure u have correct name of labels? Because i don't see any mistake.

  5. #5
    Normal User Lastu's Avatar
    Join Date
    May 2012
    Posts
    159
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    yes, they are correct I have checked it a few times :x

    I think it's not counting rs in my hand but how to do this I don't know.

  6. #6
    Normal User
    Join Date
    Apr 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5
    PHP Code:
    if itemcount(SpearName) < MinSpear then
    gotolabel
    ("gorefill")
    else
    gotolabel("hunt")
    end 

  7. #7
    Normal User Lastu's Avatar
    Join Date
    May 2012
    Posts
    159
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Not working! I'm not sure but itemcount is counting items in bp not in hand! :-(

  8. #8
    Normal User Lastu's Avatar
    Join Date
    May 2012
    Posts
    159
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    I don't believe that nobody knows how to fix it C'mon guys! I really need this!

  9. #9
    Normal User
    Join Date
    Feb 2012
    Posts
    129
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    12
    Rep Power
    5
    weapon (int): Returns the id of the item in your weapon slot.
    weaponamount (int): Returns the amount of the item in your ammo slot.

    maybe u need use weapon and not weponamount.

  10. #10
    Normal User Lastu's Avatar
    Join Date
    May 2012
    Posts
    159
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Quote Originally Posted by lelao22 View Post
    weapon (int): Returns the id of the item in your weapon slot.
    weaponamount (int): Returns the amount of the item in your ammo slot.

    maybe u need use weapon and not weponamount.
    So I should make

    PHP Code:
    if weapon MinSpear then 
    gotolabel
    ("gorefill"
    else 
    gotolabel("hunt"
    end 
    ?

Posting Permissions

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