Signup Now
Page 22 of 65 FirstFirst ... 12202122232432 ... LastLast
Results 211 to 220 of 647
  1. #211
    Free User CroiX's Avatar
    Join Date
    Jan 2014
    Posts
    889
    Reputation
    61
    Rep Power
    24
    Quote Originally Posted by Leonardo View Post
    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.
    So, in other words, it's the same?

  2. #212
    Moderator Leonardo's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    758
    Reputation
    77
    Rep Power
    25
    Quote Originally Posted by croix View Post
    So, in other words, it's the same?
    Yes, but you need to add other monsters.

  3. #213
    Free User CroiX's Avatar
    Join Date
    Jan 2014
    Posts
    889
    Reputation
    61
    Rep Power
    24
    Quote Originally Posted by Leonardo View Post
    Yes, but you need to add other monsters.

    Yeah, but u need that in both scripts aye?

    Thanks for the info though!

  4. #214
    Wind Powered
    Join Date
    Dec 2013
    Location
    dvscripts.com
    Posts
    7,098
    Reputation
    433
    Rep Power
    42
    Quote Originally Posted by croix View Post
    Yeah, but u need that in both scripts aye?

    Thanks for the info though!
    No in Leonardo script it will mark only if trapped in all monsters
    Regards

  5. #215
    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
    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

    Well, for the average user, pretty much no difference at all, except for the fact that mine is setting OnlyIfTrapped for all settings (Setting1, Setting2, Setting3 and Setting4).
    If you'd like a little more in-depth explanation, my version, when used with more than one creature, adds a little overhead because it ends up comparing and converting itemcount(itemName) < itemCount more than once. I chose to do it the other way thought because it looks classier, because I like to use my own functions (toyesno), because performs just as well for the specific use case you requested and because the overhead really isn't really measurable or even noticeable.

  6. #216
    Free User
    Join Date
    Jan 2014
    Posts
    77
    Reputation
    11
    Rep Power
    24
    [QUOTE=Raphael;18005]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).


    Could you atleast tell me how to open the Inbox, the usuall openitem or w/e we're using to open shit dosn't open it when Im using the inbox ID
    Never argue with idiots, they drag you down to their level and beat you with experience.

  7. #217
    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
    Could you atleast tell me how to open the Inbox, the usuall openitem or w/e we're using to open shit dosn't open it when Im using the inbox ID
    It should be working.

  8. #218
    Free User Anulka's Avatar
    Join Date
    Jan 2014
    Posts
    54
    Reputation
    10
    Rep Power
    23
    May that be cause of marked open next backpack if the one you use is ful?

  9. #219
    Free User
    Join Date
    Dec 2013
    Location
    PL, Poznań
    Posts
    19
    Reputation
    10
    Rep Power
    0
    Im going to make huge lootbag and i need Action to pick up items to bp. Just simple hotkey which move items from sqm under my legs to container which is already open.

  10. #220
    Free User
    Join Date
    Jan 2014
    Posts
    77
    Reputation
    11
    Rep Power
    24
    Quote Originally Posted by Raphael View Post
    It should be working.
    I'm not talking about theories, I have tested and it does not work
    Never argue with idiots, they drag you down to their level and beat you with experience.

 

 

Posting Permissions

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