How to add certain SnoID for groundcircles decorators? menu

These ads disappear when you log in.

Results 1 to 8 of 8
  1. #1
    everknown's Avatar Active Member CoreCoins User
    Reputation
    15
    Join Date
    Jun 2012
    Posts
    119
    Thanks G/R
    33/9
    Trade Feedback
    0 (0%)

    How to add certain SnoID for groundcircles decorators?

    I've debugged the on-screen info to find the Blazing Guardian projectile(i think) and it's groundpool. But now i want to add or create a plugin for this. How do i do this?

    Code:
    432	skeletonMage_fire_groundPool
    5371	skeletonMage_Fire_A	Blazing Guardian
    5374	skeletonMage_Fire_projectile		
    	attr	Projectile_Detonate_Time	-1	59221

    These ads disappear when you log in.

  2. #2
    gjuz's Avatar Contributor CoreCoins User
    Reputation
    115
    Join Date
    Mar 2017
    Posts
    214
    Thanks G/R
    41/112
    Trade Feedback
    0 (0%)
    PHP Code:
    foreach (var actor in Hud.Game.Actors.Where(=> a.SnoActor.Sno == 432))
    {
        
    Decorator.Paint(...);

    greetz gjuz

  3. Thanks everknown (1 members gave Thanks to gjuz for this useful post)
  4. #3
    everknown's Avatar Active Member CoreCoins User
    Reputation
    15
    Join Date
    Jun 2012
    Posts
    119
    Thanks G/R
    33/9
    Trade Feedback
    0 (0%)
    Sorry to bump this, finally got motivated to create this using Jack's code:
    [C#] BlazingGuardianDecoratorPlugin - Pastebin.com

    I tried with what @gjuz have above, but i don't know the Paint(params) yet. perhaps its Decorator.Paint(actor,actor.FloorCoordinate,null);?
    So i went to search around until i found Jack's code for BossSkills and took snippets out of it and made my own version for this Blazing Guardian fire pool. Now i need to test it to see if it actually works...

    Edit:
    First run worked, but circles are black? 255,0,0,0,2 doesn't mean RED 255, G 0, B 0 ?
    After i tried to change the values of CreateBrush, i get error message in the exceptions log file:
    2017.05.04 04:33:41.555 suspicious plugins behavior in plugin file: 'C:\Users\****\Desktop\TBHD\Plugins\Everknown\BlazingGuardianDecoratorPlugin.cs' : possibly trying to access the disk.
    Any idea why?
    Last edited by everknown; 05-03-2017 at 09:36 PM.

  5. #4
    RealGsus's Avatar Contributor CoreCoins User
    Reputation
    101
    Join Date
    Mar 2017
    Posts
    119
    Thanks G/R
    82/96
    Trade Feedback
    0 (0%)
    255, 0, 0, 0, 2

    first number is the alpha value, after this comes R, G, B which in your case is 0, 0, 0 so it's black. try 255, 255, 0, 0, 2 for red.
    Wanna customize THUD the easy way? Check out
    ..:: TCT | TurboHUD Customization Tool ::..
    in the TurboHUD Plugin Review Zone

  6. Thanks everknown (1 members gave Thanks to RealGsus for this useful post)
  7. #5
    everknown's Avatar Active Member CoreCoins User
    Reputation
    15
    Join Date
    Jun 2012
    Posts
    119
    Thanks G/R
    33/9
    Trade Feedback
    0 (0%)
    Originally Posted by RealGsus View Post
    255, 0, 0, 0, 2

    first number is the alpha value, after this comes R, G, B which in your case is 0, 0, 0 so it's black. try 255, 255, 0, 0, 2 for red.
    Ah i thought it was the other way as in RGBa instead of aRGB.

    And now is the problem with the error " Possibly trying to access the disk"... any reason/solution to this?

    Edit:
    Went to made another version of it by using the same way i first made the ZeiStone version before editing it.
    [C#] FirePoolPlugin.cs - Pastebin.com
    Last edited by everknown; 05-04-2017 at 04:57 PM.

  8. #6
    gjuz's Avatar Contributor CoreCoins User
    Reputation
    115
    Join Date
    Mar 2017
    Posts
    214
    Thanks G/R
    41/112
    Trade Feedback
    0 (0%)
    Originally Posted by everknown View Post
    I tried with what @gjuz have above, but i don't know the Paint(params) yet. perhaps its Decorator.Paint(actor,actor.FloorCoordinate,null);?
    yes


    Originally Posted by everknown View Post
    After i tried to change the values of CreateBrush, i get error message in the exceptions log file:
    2017.05.04 04:33:41.555 suspicious plugins behavior in plugin file: 'C:\Users\****\Desktop\TBHD\Plugins\Everknown\BlazingGuardianDecoratorPlugin.cs' : possibly trying to access the disk.
    Any idea why?
    yes, in your comment
    PHP Code:
    /*Credits
     * Thanks to Jacks' BossSkillsPlugin, i manage to create this using the very same template he created for adding my own Sno into this file.
     * Hope you don't mind me using your code, Jack.
     */ 
    Hud responds to "file".
    delete this word or use anything else,

    greetz gjuz

  9. Thanks everknown (1 members gave Thanks to gjuz for this useful post)
  10. #7
    everknown's Avatar Active Member CoreCoins User
    Reputation
    15
    Join Date
    Jun 2012
    Posts
    119
    Thanks G/R
    33/9
    Trade Feedback
    0 (0%)
    Originally Posted by gjuz View Post
    yes



    yes, in your comment
    PHP Code:
    /*Credits
     * Thanks to Jacks' BossSkillsPlugin, i manage to create this using the very same template he created for adding my own Sno into this file.
     * Hope you don't mind me using your code, Jack.
     */ 
    Hud responds to "file".
    delete this word or use anything else,

    greetz gjuz
    Aha!, thanks. well i made 2 new version of it now. One is by using Jack's Monster Plugin template of SnoMapping and the other one is the one you wrote above.

    End result:
    Jack's SnoMapping method for multiple Sno: [C#] EnemySkillCirclePlugin.cs - Pastebin.com
    Basic method with FirePool only: [C#] FirePoolPlugin.cs - Pastebin.com
    Last edited by everknown; 05-04-2017 at 05:03 PM. Reason: Added new files

  11. #8
    gjuz's Avatar Contributor CoreCoins User
    Reputation
    115
    Join Date
    Mar 2017
    Posts
    214
    Thanks G/R
    41/112
    Trade Feedback
    0 (0%)
    well done.
    but you can customize Jack's Original like this:
    PHP Code:
    Hud.RunOnPlugin<BossSkillsPlugin>(plugin => {
        
    //add ground circle (off-center) to Smoldering Construct Fire Pool (A2)
        //432    skeletonMage_fire_groundPool
        
    plugin.SnoMapping.Add(432, new WorldDecoratorCollection(
            new 
    GroundCircleDecorator(Hud)
            {
                
    Radius 9,
                
    Brush Hud.Render.CreateBrush(160,255,50,502DashStyle.Dash)
            }
        ));
    }); 
    instead of writing an extra plugin, which has the exact same structure.


    greetz gjuz

Similar Threads

  1. [Misc] How to add and make scripts for instances?
    By Umpteenth in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 06-28-2010, 12:50 PM
  2. [Guide] How to Add Custom Objects To your Private Server!(for HeidiSql)
    By hampe95 in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 10-07-2008, 01:42 PM
  3. How to add WP for NPCs
    By InternetExplorer in forum WoW EMU Guides & Tutorials
    Replies: 19
    Last Post: 04-06-2008, 02:58 PM
  4. Replies: 12
    Last Post: 04-03-2008, 09:40 PM
  5. Replies: 2
    Last Post: 11-14-2007, 08:20 PM
All times are GMT -5. The time now is 02:01 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved. Digital Point modules: Sphinx-based search