Signup Now
Page 21 of 65 FirstFirst ... 11192021222331 ... LastLast
Results 201 to 210 of 647
  1. #201
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    31
    Quote Originally Posted by jkaberg View Post
    A proper fish water elemental hotkey, the ones I've tried stops and wait for it to be possible to fish
    Done:
    (Actually had this for a while already, but didn't think anyone needed it)

    http://forums.tibiawindbot.com/showt...ter-Elementals

  2. #202
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,819
    Reputation
    220
    Rep Power
    29
    Hehe i like these descriptions in fishing code =)

  3. #203
    Free User
    Join Date
    Jan 2014
    Posts
    77
    Reputation
    11
    Rep Power
    24
    Quote Originally Posted by brallan View Post
    When all my bps is getting full im putting all my loot on market for a price noone buy for. And when I want to sell all loot, I simply cancel all the offers on market and all the loot gets into Inbox where I mostly have like 40 pages of loot.

    What im looking for is a script that sorts all the loot (rashid, blue, green etc)from Inbox into Backpacks which I have inside depot.

    Thx in advance
    pm required?^^
    Never argue with idiots, they drag you down to their level and beat you with experience.

  4. #204
    Banned
    Join Date
    Dec 2013
    Posts
    556
    Reputation
    18
    Rep Power
    0
    Quote Originally Posted by Raphael View Post
    It would probably be smarter to check if you have the money at the moment you leave the bank, wouldn't it?
    Something like this at the end of your bank action:

    if gold() < moneyToWithdraw then
    gotolabel($wptid - 1)
    end


    Remember to change moneyToWithdraw to whatever the name of the variable you used to store it.
    Yo, I tried it on other script and it's going back everytime :/

    I used this
    local moneyToWithdraw  = moneytowithdraw('a')

    if islocation(1) then
    depositerbank('a')
    end
    if gold() < moneyToWithdraw then
    gotolabel($wptid - 1)
    end


    And this is what's happening
    Code:
    10:30:03 error in Action script wptid:21:
      ["if gold() < moneyToWithdraw then"]:label::5 attempt to compare number with nil

  5. #205
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    31
    Quote Originally Posted by brallan View Post
    pm required?^^
    Nah, it's just that I don't like writing code for very specific problems (like, specifically sorting items from the inbox) so i'm trying to think of a good way to make it more generic (like, sort items from any place).

    Quote Originally Posted by K4r4biN View Post
    Yo, I tried it on other script and it's going back everytime :/

    I used this
    local moneyToWithdraw  = moneytowithdraw('a')

    if islocation(1) then
    depositerbank('a')
    end
    if gold() < moneyToWithdraw then
    gotolabel($wptid - 1)
    end


    And this is what's happening
    Code:
    10:30:03 error in Action script wptid:21:
      ["if gold() < moneyToWithdraw then"]:label::5 attempt to compare number with nil
    You know, if you're using depositerbank, it already does this check for you.

  6. #206
    Banned
    Join Date
    Dec 2013
    Posts
    556
    Reputation
    18
    Rep Power
    0
    Quote Originally Posted by Raphael View Post
    You know, if you're using depositerbank, it already does this check for you.
    Well, a guy pushed me while talking and it went to next waypoint w/o withdrawing money x)

  7. #207
    Free User CroiX's Avatar
    Join Date
    Jan 2014
    Posts
    889
    Reputation
    61
    Rep Power
    24
    My problem is infinite spawn, so i'm draining myself until death, so I need a script that changes my targetting to "only if trapped" when below a certain amount of potions, then switches targetting back to usual when above that amount!


    Like

    if itemcount('mana potion') < 20 then
    setsettings/targeting/mammoth/must be trapped, yes
    else
    setsettings/targeting/mammoth/must be trapped, no
    end

  8. #208
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,437
    Reputation
    309
    Rep Power
    31
    Quote Originally Posted by croix View Post
    My problem is infinite spawn, so i'm draining myself until death, so I need a script that changes my targetting to "only if trapped" when below a certain amount of potions, then switches targetting back to usual when above that amount!


    Like

    if itemcount('mana potion') < 20 then
    setsettings/targeting/mammoth/must be trapped, yes
    else
    setsettings/targeting/mammoth/must be trapped, no
    end
    init start
    local itemName = 'mana potion'
    local itemCount = 20
    init end

    auto(100)
    setsetting('Targeting/Creatures/Mammoth/Setting*/OnlyIfTrapped', toyesno(itemcount(itemName) < itemCount))

  9. #209
    Free User CroiX's Avatar
    Join Date
    Jan 2014
    Posts
    889
    Reputation
    61
    Rep Power
    24
    Quote Originally Posted by Raphael View Post
    init start
    local itemName = 'mana potion'
    local itemCount = 20
    init end

    auto(100)
    setsetting('Targeting/Creatures/Mammoth/Setting*/OnlyIfTrapped', toyesno(itemcount(itemName) < itemCount))

    Whats the difference between yours and this -

    auto(200)

    if itemcount('mana potion') < 20 then
    setsetting('Targeting/Creatures/Mammoth/Setting1/OnlyIfTrapped', 'yes')
    setsetting('Targeting/Creatures/Barbarian Brutetamer/Setting1/OnlyIfTrapped', 'yes')
    else
    setsetting('Targeting/Creatures/Mammoth/Setting1/OnlyIfTrapped', 'no')
    setsetting('Targeting/Creatures/Barbarian Brutetamer/Setting1/OnlyIfTrapped', 'no')
    end


  10. #210
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    25
    Quote Originally Posted by croix View Post
    Whats the difference between yours and this -

    auto(200)

    if itemcount('mana potion') < 20 then
    setsetting('Targeting/Creatures/Mammoth/Setting1/OnlyIfTrapped', 'yes')
    setsetting('Targeting/Creatures/Barbarian Brutetamer/Setting1/OnlyIfTrapped', 'yes')
    else
    setsetting('Targeting/Creatures/Mammoth/Setting1/OnlyIfTrapped', 'no')
    setsetting('Targeting/Creatures/Barbarian Brutetamer/Setting1/OnlyIfTrapped', 'no')
    end

    His version uses toyesno(value) which converts the value into 'yes' or 'no' depending on what is the value.

    toyesno(itemcount('mana potion') < 20) will return 'yes' if you have less than 20 mp and 'no' if this sentence is not true.

    In other words, every 100 ms it'll set the OnlyIfTrapped setting to 'yes' if you have less then 20 mp and 'no' if you have more.

 

 

Posting Permissions

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