Signup Now
Results 1 to 5 of 5

Thread: demon staker

  1. #1
    Free User
    Join Date
    Mar 2014
    Posts
    6
    Reputation
    10
    Rep Power
    0

    demon staker

    im having some problems with demon staking... I have tried several different codes and they all fail to work. The bot tries to use the stake the demon but its never able to, either it tries to use the stake but ignores the demon, or walks to the demon but doesn't stake it.


    local stake = getuseroption("Stake")
    auto(800, 1000)
    if stake == true and maround(6) == 0 then
    stake(6)
    end

    this is what im using now

    btw im noob at scripting

  2. #2
    Free User FaNtA's Avatar
    Join Date
    Feb 2014
    Location
    Sweden
    Posts
    365
    Reputation
    45
    Rep Power
    21
    u dont need stake == true

    local stake = getuseroption("Stake")
    auto(800, 1000)
    if stake and maround(6) == 0 then
    stake(6)
    end

  3. #3
    Free User
    Join Date
    Mar 2014
    Posts
    6
    Reputation
    10
    Rep Power
    0
    gave me an error message :/

  4. #4
    Free User
    Join Date
    Apr 2014
    Location
    Netherlands
    Posts
    219
    Reputation
    13
    Rep Power
    21
    Ok iguana dorada, I see you've searched up the same post as me to get some more info.

    However you just modified it again so it doesn't work... also explained in the same post.

    Quote Originally Posted by Lucas Terra View Post
    Your mistake was that you overwrote the stake function with the boolean value of getuseroption('Stake').


    Try this:
    auto(800, 1000)

    local shouldusestake = getuseroption('Stake')

    if shouldusestake and $lootsaround == 0 and $targetingtarget.id == 0 and stakespots(7) > 0 then
    pausewalking(10000)
    stake(7)
    pausewalking(0)
    end

    What you did, is overwrite the stake function by changing the code....

    That´s why he used `shouldusestake´ instead of ´stake´ because else you´ll overwrite.

    Also make sure that useroption Stake is a checkbox!


    let me know if this works now.

    Yours,

  5. #5
    Free User
    Join Date
    Mar 2015
    Posts
    1
    Reputation
    10
    Rep Power
    0
    does this one works on vampire?

 

 

Posting Permissions

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