Page 3 of 4 FirstFirst 1 2 3 4 LastLast
Results 21 to 30 of 40

Thread: Standard Rollover Bonus

  1. #21
    Senior Member
    Join Date
    Jun 2016
    Posts
    334

    Default

    It's handled by the boolean modifier "Single Equip".

    Code:
    > ash boolean_modifier($item[heat-resistant gloves],"Single Equip")
    
    Returned: true
    
    > ash boolean_modifier($item[walrus-tusk earring],"Single Equip")
    
    Returned: false

  2. #22
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,741

    Default

    you can always equip multiple of things that are not single equip

  3. #23
    Senior Member Pazleysox's Avatar
    Join Date
    Feb 2009
    Posts
    465

    Default

    What am I doing wrong here...?

    Code:
    foreach it in $items[]
    	{
    	  slot s = it.to_slot();
     	if(boolean_modifier((it), "single_equip") == true && available_amount(it) > 0 && s == $slot[acc1])
    		print(it);}
    
    Returned: void
    Code:
    foreach it in $items[]
    	{
    	  slot s = it.to_slot();
     	if(boolean_modifier((it), "single_equip") == false && available_amount(it) > 0 && s == $slot[acc1])
    		print(it);}
    
    (Returned all single_equip accessories that I have on hand)

  4. #24

    Default

    Code:
    > ash boolean_modifier($item[heat-resistant gloves],"Single Equip")
    
    Returned: true
    
    > ash boolean_modifier($item[heat-resistant gloves],"single_equip")
    
    Returned: false

  5. #25
    Senior Member Pazleysox's Avatar
    Join Date
    Feb 2009
    Posts
    465

    Default

    Code:
    > ash boolean_modifier($item[heat-resistant gloves],"Single Equip")
    
    Returned: true
    
    > ash boolean_modifier($item[heat-resistant gloves],"single_equip")
    
    Returned: false
    Originally Posted by lostcalpolydude View Post
    I understand. Thank you.
    Scripts I have written:
    Unlock Dread A Script to save you a bunch of clicks.
    Standard Rollover Bonus A Script that shows best items to pull/equip for bonus turns.
    Standard PVP Bonus A Script that shows the best items to pull/equip for bonus PVP Fights.
    Rollover Management A Script that does all the daily deeds you might have forgotten, or might have missed.
    Chatbot A Chatbot script. Simple start for those who want/need one for their clan.
    Zap Wand A Dungeon of Doom ZAP WAND getting script.

  6. #26
    Senior Member Pazleysox's Avatar
    Join Date
    Feb 2009
    Posts
    465

    Default

    Here's the output of the script now.
    script.png

    The script will maximize adventures for you. It will now also tell you if you can eat/drink/overdrink.
    It looks at what you have equipped, and will only make a suggestion if an item is better, as can be seen in the image. In the image, it shows that I have better hats to equip, but mafia knows that the time trappings is a better choice.

    I learned that when looking at accessories, Mafia's output will always put the lowest bonus first, and highest bonus last, regardless of the order it has been equipped. I will have the script updated for hardcore in the next few days.

  7. #27
    Developer
    Join Date
    Apr 2010
    Posts
    5,109

    Default

    I learned that when looking at accessories, Mafia's output will always put the lowest bonus first, and highest bonus last, regardless of the order it has been equipped. I will have the script updated for hardcore in the next few days.
    Originally Posted by Pazleysox View Post
    Or more likely it is in item number order, and what you are seeing is powercreep over the years.

  8. #28
    Developer
    Join Date
    Aug 2009
    Posts
    2,922

    Default

    Hm. That output doesn't indicate the Time Trappings outfit bonus, which is why it's not optimal to take Hairpiece On Fire / Uncle Crimbo's hat.

    (also, not to rain on your parade, but I'm admittedly not sure what this script provides that the Maximizer GUI doesn't. I still think it's a valuable exercise in writing code, regardless.)

  9. #29
    Senior Member Pazleysox's Avatar
    Join Date
    Feb 2009
    Posts
    465

    Default

    Or more likely it is in item number order, and what you are seeing is powercreep over the years.
    Originally Posted by Darzil View Post
    I can not speak on the number order. I did try a combination of items though, some new, and some old
    Last edited by Pazleysox; 04-14-2019 at 05:42 PM.

  10. #30
    Senior Member Pazleysox's Avatar
    Join Date
    Feb 2009
    Posts
    465

    Default

    Hm. That output doesn't indicate the Time Trappings outfit bonus, which is why it's not optimal to take Hairpiece On Fire / Uncle Crimbo's hat.

    (also, not to rain on your parade, but I'm admittedly not sure what this script provides that the Maximizer GUI doesn't. I still think it's a valuable exercise in writing code, regardless.)
    Originally Posted by heeheehee View Post
    I'm not in ronin, so it's not listening anything I can possibly pull, which is really the main function of the script. I will ascend in a few days, and grab a screenshot then.

Posting Permissions

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