[v7.2] [ENGLISH] [Csavo] LegendaryCountPlugin menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  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)

    [v7.2] [ENGLISH] [Csavo] LegendaryCountPlugin

    Description: Plugin for counting legendary drops, including Ancient and Primal Ancient pieces.

    Screenshot:


    Read the example as: Out of 13 total legendary drops 2 are Ancient, and 1 is Primal. Ancient drop rate is 15.4%, while Primal drop rate is 7.69%.

    Credits to:


    Changelog:
    • v1.0: Release


    Known Issues:
    • Some legendary drops are not counted. I don't know the reason.
    • Apparently some drops are counted multiple times if you move too far before looting.


    Customization:
    PHP Code:
    Hud.RunOnPlugin<Turbo.Plugins.Csavo.LegendaryCountPlugin>(plugin =>
         {
              
    plugin.ShowPercent false// will not show Ancient and Primal Ancient drop rate percentage
         
    }); 
    Source:
    \plugins\Csavo\LegendaryCountPlugin.cs
    Last edited by Csavo; 04-12-2017 at 04:48 AM.

    [v7.2] [ENGLISH] [Csavo] LegendaryCountPlugin
  2. Thanks bobbydigital12, johnbl, rambo99jose (3 members gave Thanks to Csavo for this useful post)
  3. #2
    bobbydigital12's Avatar Member
    Reputation
    2
    Join Date
    Mar 2017
    Posts
    13
    Thanks G/R
    59/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Works for me.

  4. #3
    everknown's Avatar Active Member
    Reputation
    17
    Join Date
    Jun 2012
    Posts
    121
    Thanks G/R
    33/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol, maybe remove the public IP from that screenshot?
    Also what use for this tracker? Isn't this already in the tracker next to community buttons bottom corner?

  5. #4
    prrovoss's Avatar Contributor
    Reputation
    152
    Join Date
    Jan 2013
    Posts
    420
    Thanks G/R
    23/130
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by everknown View Post
    lol, maybe remove the public IP from that screenshot?
    its the servers ip

  6. #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 everknown View Post
    Also what use for this tracker? Isn't this already in the tracker next to community buttons bottom corner?
    I don't use that, and I believe that one does not count Ancients and Primals (separately at least)

  7. #6
    tingtong1's Avatar Member
    Reputation
    1
    Join Date
    Aug 2007
    Posts
    6
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nvm beta bug I found. looks great!
    Last edited by tingtong1; 04-09-2017 at 04:19 PM.

  8. #7
    johnbl's Avatar Active Member
    Reputation
    33
    Join Date
    Dec 2016
    Posts
    129
    Thanks G/R
    347/16
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Csavo, I noticed a bug with the plugin today. When a legendary drops the counter increases. If you leave the area without picking it up and then come back, the counter will increase again.
    You don't even need to change the area, just make sure the star is not seen on the minimap and when you return the counter will increase.

    Maybe only count picked up legendaries to fix this?

  9. #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)
    Thanks for reporting, although I don't think I can fix that. The bug is probably from ILootGeneratedHandler, which is a THUD method. Switching the counter to only show loot that was picked up would result in even less accurate statistics. Many people don't even pick up normal legendaries, just ancients and primals, but they still might want to know the drop stats.

  10. #9
    d3gigi's Avatar Active Member
    Reputation
    52
    Join Date
    Mar 2017
    Posts
    55
    Thanks G/R
    12/49
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Csavo View Post
    Thanks for reporting, although I don't think I can fix that. The bug is probably from ILootGeneratedHandler, which is a THUD method. Switching the counter to only show loot that was picked up would result in even less accurate statistics. Many people don't even pick up normal legendaries, just ancients and primals, but they still might want to know the drop stats.
    You can fix that. Use a dictionary for loot that is on the ground and already has been seen once. Once the item location changed to inventory -> remove it from the dictionary.
    I won't give any support (or answer requests) via private messaging. Ask your questions about a plugin within its thread!

  11. #10
    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)
    OK, ill try to write that later. Thanks for the tip.

  12. #11
    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)
    I was away for the Easter Holiday, but I am now back, and I'm trying to write the fix.
    I managed to add the dropped items to a dictionary, but I am having trouble removing them when picking them up. This means the plugin will not count the same legendary twice, but if the same legendary drops twice in the same session, it will still only count the first one.
    If someone can help how to detect a looted item, please advise me. Until then, I can't release a fix

  13. #12
    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
    If someone can help how to detect a looted item, please advise me. Until then, I can't release a fix
    You have the IItemLocationChangedHandler interface :

    Example implementation (not complete you will need to make some research)

    PHP Code:
    public class YourPlugin BasePluginIInGameTopPainterIItemLocationChangedHandler 
    {

         
    // your plugin code + 

         
    public void OnItemLocationChanged(IItem itemItemLocation @fromItemLocation to)
         {
             if (@
    from != ItemLocation.Floor || to != ItemLocation.Inventory) return;
             
    // do what you want with the item you just looted on ground
         
    }

    Hide the Rum! --> Default theme customization 101 <--

  14. #13
    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)
    Ah, cool, thanks! I'll look into this

  15. #14
    prrovoss's Avatar Contributor
    Reputation
    152
    Join Date
    Jan 2013
    Posts
    420
    Thanks G/R
    23/130
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    is OnItemLocationChanged also called for items that i transfer from my stash to my inventory? if it is, you probably also have to check that the item isnt coming from your stash

  16. #15
    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)
    Hmmm, I believe this should be OK, but it does not remove the looted item still.. IDK what to do: pastebin

Page 1 of 2 12 LastLast

Similar Threads

  1. English --> Chinese
    By Login Error in forum Community Chat
    Replies: 4
    Last Post: 02-04-2008, 07:00 PM
  2. [Guide] Proper English Language
    By aggiish in forum Community Chat
    Replies: 31
    Last Post: 02-04-2008, 02:29 PM
  3. Omg,Funniest Thing I ever saw!!! ENGLISH PWNED!!!!
    By anmer in forum Screenshot & Video Showoff
    Replies: 10
    Last Post: 11-12-2007, 10:15 AM
  4. Chinese Names in English WoW
    By pandaman in forum World of Warcraft Exploits
    Replies: 8
    Last Post: 08-12-2006, 05:40 AM
All times are GMT -5. The time now is 08:26 AM. 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