Results 1 to 12 of 12
  1. #1
    swankhawk's Avatar
    Join Date
    Sep 2017
    Gender
    male
    Posts
    109
    Reputation
    10
    Thanks
    30
    My Mood
    Bored

    Post [AS3] How to add glow to items (legendary etc)

    I don't know if this has been posted already.

    1. In intellij Idea go to ObjectLibrary.as
    2. Find getRedrawnTextureFromType function and replace it with this.
     
    Code:
        public static function getRedrawnTextureFromType(_arg1:int, _arg2:int, _arg3:Boolean, _arg4:Boolean = true, _arg5:Number = 5) : BitmapData
        {
            var _local6:BitmapData = getBitmapData(_arg1);
            if(Parameters.itemTypes16.indexOf(_arg1) != -1 || _local6.height == 16)
            {
                _arg2 = _arg2 * 0.5;
            }
            var _local7:TextureData = typeToTextureData_[_arg1];
            var _local8:BitmapData = Boolean(_local7)?_local7.mask_:null;
            var _local9:XML = xmlLibrary_[_arg1];
            if(_local8 == null && _local9.hasOwnProperty("Legendary"))
            {
                return TextureRedrawer.redraw(_local6,_arg2,_arg3,14603786,_arg4,_arg5);
            }
            if(_local8 == null && _local9.hasOwnProperty("Special"))
            {
                return TextureRedrawer.redraw(_local6,_arg2,_arg3,23989,_arg4,_arg5);
            }
            var _local10:int = Boolean(_local9.hasOwnProperty("Tex1"))?int(int(_local9.Tex1)):int(0);
            var _local11:int = Boolean(_local9.hasOwnProperty("Tex2"))?int(int(_local9.Tex2)):int(0);
            _local6 = TextureRedrawer.resize(_local6,_local8,_arg2,_arg3,_local10,_local11,_arg5);
            _local6 = GlowRedrawer.outlineGlow(_local6,0);
            return _local6;
        }

    3. In any item xml put <Legendary/> or <Special/> and it will have a yellow or blue outline. You can add more obviously with different colors.

    Should look like this:


  2. The Following 9 Users Say Thank You to swankhawk For This Useful Post:

    bog624 (05-01-2018),FlashFlyyy (07-14-2018),FmobxBull666 (09-29-2018),LordChronos (05-17-2019),Mister_Raccoon (11-11-2020),Pendulum1089 (10-14-2018),SBisEPIC (08-10-2020),Twinlord (04-18-2018),Zolmex (04-15-2018)

  3. #2
    Zolmex's Avatar
    Join Date
    Apr 2016
    Gender
    male
    Location
    on my chair
    Posts
    356
    Reputation
    94
    Thanks
    209
    thats cool
    hi

  4. #3
    TheRealLawFTW's Avatar
    Join Date
    Jun 2017
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    9
    already had this for awhile now and ya just had to release it -.- but oh well

  5. #4
    swankhawk's Avatar
    Join Date
    Sep 2017
    Gender
    male
    Posts
    109
    Reputation
    10
    Thanks
    30
    My Mood
    Bored
    Quote Originally Posted by TheRealLawFTW View Post
    already had this for awhile now and ya just had to release it -.- but oh well
    i didnt get it from you nor did anyone give it to me. but oh well
    Last edited by swankhawk; 04-15-2018 at 11:46 AM.

  6. The Following 2 Users Say Thank You to swankhawk For This Useful Post:

    lkdjnfoskjednfblksjdfn (04-23-2018),sacredmike (04-26-2018)

  7. #5
    FireReaper47's Avatar
    Join Date
    Apr 2018
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    2
    Awesome! Nice and quick tutorial - thanks
    Last edited by FireReaper47; 04-22-2018 at 10:29 PM. Reason: idk why it spammed lmao

  8. #6
    lkdjnfoskjednfblksjdfn's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    127.0.0.1
    Posts
    1,340
    Reputation
    198
    Thanks
    841
    My Mood
    Inspired
    Quote Originally Posted by TheRealLawFTW View Post
    already had this for awhile now and ya just had to release it -.- but oh well
    Why is it about keeping such things secret? Okay, you made item glow before this dude released this tutorial, so what though? It's not a competition. Stop acting like its your invention.

    - - - Updated - - -

    Quote Originally Posted by swankhawk View Post
    I don't know if this has been posted already.

    1. In intellij Idea go to ObjectLibrary.as
    2. Find getRedrawnTextureFromType function and replace it with this.
     
    Code:
        public static function getRedrawnTextureFromType(_arg1:int, _arg2:int, _arg3:Boolean, _arg4:Boolean = true, _arg5:Number = 5) : BitmapData
        {
            var _local6:BitmapData = getBitmapData(_arg1);
            if(Parameters.itemTypes16.indexOf(_arg1) != -1 || _local6.height == 16)
            {
                _arg2 = _arg2 * 0.5;
            }
            var _local7:TextureData = typeToTextureData_[_arg1];
            var _local8:BitmapData = Boolean(_local7)?_local7.mask_:null;
            var _local9:XML = xmlLibrary_[_arg1];
            if(_local8 == null && _local9.hasOwnProperty("Legendary"))
            {
                return TextureRedrawer.redraw(_local6,_arg2,_arg3,14603786,_arg4,_arg5);
            }
            if(_local8 == null && _local9.hasOwnProperty("Special"))
            {
                return TextureRedrawer.redraw(_local6,_arg2,_arg3,23989,_arg4,_arg5);
            }
            var _local10:int = Boolean(_local9.hasOwnProperty("Tex1"))?int(int(_local9.Tex1)):int(0);
            var _local11:int = Boolean(_local9.hasOwnProperty("Tex2"))?int(int(_local9.Tex2)):int(0);
            _local6 = TextureRedrawer.resize(_local6,_local8,_arg2,_arg3,_local10,_local11,_arg5);
            _local6 = GlowRedrawer.outlineGlow(_local6,0);
            return _local6;
        }

    3. In any item xml put <Legendary/> or <Special/> and it will have a yellow or blue outline. You can add more obviously with different colors.

    Should look like this:

    Good, tutorial, simple and easy to follow. A suggestion though, is to make it similar to how the current production build's ParticleTrace works; you insert a uint value and the client use that for the glowfilter/shadowfilter's color.

  9. The Following User Says Thank You to lkdjnfoskjednfblksjdfn For This Useful Post:

    FlashFlyyy (07-14-2018)

  10. #7
    robloxmaster123's Avatar
    Join Date
    Dec 2017
    Gender
    female
    Posts
    172
    Reputation
    10
    Thanks
    10
    Mr. Binary would you please make a tutorial on how to use creepylava's dungeon gen? I'm asking you cus ur the smartest guy as for rn.

  11. The Following User Says Thank You to robloxmaster123 For This Useful Post:

    lkdjnfoskjednfblksjdfn (04-24-2018)

  12. #8
    lkdjnfoskjednfblksjdfn's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    127.0.0.1
    Posts
    1,340
    Reputation
    198
    Thanks
    841
    My Mood
    Inspired
    Quote Originally Posted by robloxmaster123 View Post
    Mr. Binary would you please make a tutorial on how to use creepylava's dungeon gen? I'm asking you cus ur the smartest guy as for rn.
    I'll have to correct you and say that I'm not, but thanks lol.
    I don't use Creepylavas source. I believe its similar to Kithio's AS3 source, but I've never used it, and I can't tell if there even was a dungeongenerator, in it lol.
    Try asking MikeRaarupBirk, he's a clever guy :P

  13. The Following User Says Thank You to lkdjnfoskjednfblksjdfn For This Useful Post:

    robloxmaster123 (04-24-2018)

  14. #9
    TheNamesGrixx's Avatar
    Join Date
    Jul 2018
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    how did you scale the 16x16 item?

  15. #10
    DevilRotMG's Avatar
    Join Date
    Jun 2018
    Gender
    male
    Location
    Dust II
    Posts
    364
    Reputation
    -3
    Thanks
    155
    My Mood
    Drunk
    Quote Originally Posted by TheNamesGrixx View Post
    how did you scale the 16x16 item?
    AssetLoader.as?

  16. #11
    Hjkiye's Avatar
    Join Date
    Feb 2019
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    This now causes (at least for me) errors like part of the nexus not loading and massive disconnections for other players. Is there anything that could be changed?

  17. #12
    JKZD's Avatar
    Join Date
    Jan 2020
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    My Mood
    Inspired

    how i can add like rarity "Mythic" for example?

    my glow worked but the rarity is only UT

Similar Threads

  1. [Solved] [FSOD (not AS3)] How to add more class/item sprite sheets?
    By Zxoro in forum Realm of the Mad God Private Servers Help
    Replies: 4
    Last Post: 10-25-2016, 11:11 PM
  2. [Tutorial] How to add ActiveEffects to Items
    By Lxys in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 11
    Last Post: 10-12-2016, 07:04 PM
  3. [AS3] How to add a entity, with panel, button(s) and content
    By lkdjnfoskjednfblksjdfn in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 20
    Last Post: 02-27-2016, 08:49 AM
  4. [Help Request] Fabiano - How to add more custom items?
    By gunit99 in forum Realm of the Mad God Private Servers Help
    Replies: 1
    Last Post: 08-01-2015, 10:10 PM
  5. How to add more cool items to your toolbox
    By Zoom in forum Visual Basic Programming
    Replies: 14
    Last Post: 11-18-2009, 08:40 AM