[Help] with legendary count menu

User Tag List

Results 1 to 8 of 8
  1. #1
    Csavo's Avatar Active Member
    Reputation
    30
    Join Date
    Mar 2017
    Posts
    121
    Thanks G/R
    17/29
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] with legendary count

    Hello everyone. I was working on a plugin that counts legendary drops (normal, ancient and primal too), and I came across an issue I don't know how to fix. Here is the plugin: Pastebin

    The issue is, when a legendary drops, the counter is increasing like crazy until its picked up. If you can advise me how to make it increase only by 1 for each dropped legendary, please share your idea

    Thank you

    [Help] with legendary count
  2. #2
    JackCeparou's Avatar Savvy ? 🐒
    Reputation
    534
    Join Date
    Mar 2017
    Posts
    588
    Thanks G/R
    51/490
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hide the Rum! --> Default theme customization 101 <--

  3. Thanks Csavo (1 members gave Thanks to JackCeparou for this useful post)
  4. #3
    Csavo's Avatar Active Member
    Reputation
    30
    Join Date
    Mar 2017
    Posts
    121
    Thanks G/R
    17/29
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Jack, but there seems to be an issue still. The normal legendary counter is counting every single item dropped on the ground by monsters. Even gold stacks increase it
    The Ancient/Primal counter seems to work OK (got 1 ancient while testing, and it increased by 1)

    Changing the line
    PHP Code:
    if (item.AncientRank == 0LegendaryCount++; 
    results in the same thing. every single dropped item is counted.
    Last edited by Csavo; 04-07-2017 at 11:30 AM.

  5. #4
    JackCeparou's Avatar Savvy ? 🐒
    Reputation
    534
    Join Date
    Mar 2017
    Posts
    588
    Thanks G/R
    51/490
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Csavo View Post
    results in the same thing. every single dropped item is counted.
    Not true, this is not the same thing, your previous version was increasing till you pickup the item..

    Tbh, you should be able to spot the error and fix it yourself.
    Pastebin from my previous post updated.
    Hide the Rum! --> Default theme customization 101 <--

  6. Thanks Csavo (1 members gave Thanks to JackCeparou for this useful post)
  7. #5
    Csavo's Avatar Active Member
    Reputation
    30
    Join Date
    Mar 2017
    Posts
    121
    Thanks G/R
    17/29
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JackCeparou View Post
    Not true, this is not the same thing, your previous version was increasing till you pickup the item..
    Sorry if I was confusing, but I meant changing the line if (item.AncientRank >= 0) LegendaryCount++; to if (item.AncientRank == 0) LegendaryCount++; resulted in the same manner (from your first version). I know my original code was increasing the count until the item was picked up.

    Originally Posted by JackCeparou View Post
    Tbh, you should be able to spot the error and fix it yourself.
    I think you overestimate my coding skills I never saw that OnLootGenerated method before, I had no idea about it and what it does, and I assumed if the counter worked with .AncientRank == 1 and 2, it should be working with 0 too (I thought .AncientRank == 0 means legendary item)

    Originally Posted by JackCeparou View Post
    Pastebin from my previous post updated.
    Thank you once again! I had to remove the item.SetSno != uint.MaxValue (what does this even do?) filter from the if though, because it filtered out some legos (first test run got about 10 legs, but the counter only showed 3). After removing it, the counter correctly showed 9 / 1 / 0 on a 2nd test run where 9 legs dropped, 1 of them being an ancient.

    I will soon post the plugin in the review section, and give credits to you.

  8. #6
    JackCeparou's Avatar Savvy ? 🐒
    Reputation
    534
    Join Date
    Mar 2017
    Posts
    588
    Thanks G/R
    51/490
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Csavo View Post
    I had to remove the item.SetSno != uint.MaxValue (what does this even do?)
    This is to get only set items, not legendaries.
    As it was in your 1st version i assumed you wanted it like this.
    Hide the Rum! --> Default theme customization 101 <--

  9. #7
    Csavo's Avatar Active Member
    Reputation
    30
    Join Date
    Mar 2017
    Posts
    121
    Thanks G/R
    17/29
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JackCeparou View Post
    This is to get only set items, not legendaries.
    As it was in your 1st version i assumed you wanted it like this.
    Oh lol, had no idea, I just stole it from your MinimapLeftAlertListPlugin config

  10. #8
    Csavo's Avatar Active Member
    Reputation
    30
    Join Date
    Mar 2017
    Posts
    121
    Thanks G/R
    17/29
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    God dang it! Something is still not right...


    Current code: Pastebin

    It didnt count the very first drop (Chanon Bolter), and the 5th (Tyrael's Might) or 6th (Sash of Knives), not exactly sure.
    Attached Thumbnails Attached Thumbnails [Help] with legendary count-xcriqsw-jpg  
    Last edited by Csavo; 04-07-2017 at 02:28 PM.

Similar Threads

  1. Need help with "legendary thread upgrading"
    By Dazer Boosting in forum Trade Support
    Replies: 2
    Last Post: 03-18-2017, 08:19 AM
  2. [Question] Need help with "legendary thread upgrading"
    By Dazer Boosting in forum Help & Support
    Replies: 0
    Last Post: 02-18-2017, 12:34 PM
  3. need help with shammy talents
    By jason in forum World of Warcraft General
    Replies: 5
    Last Post: 07-19-2006, 02:02 AM
  4. Help with Ranks!!
    By Krazzee in forum Community Chat
    Replies: 7
    Last Post: 06-16-2006, 06:58 PM
  5. Help with Auto-it!!
    By Krazzee in forum World of Warcraft General
    Replies: 7
    Last Post: 06-12-2006, 09:22 PM
All times are GMT -5. The time now is 01:04 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search