Hope I can get this right, and thank you in advance for any helpful responses
New "hero" class
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- Callisto
- Posts: 39
- Joined: Sun Sep 09, 2007 11:13 am
- Location: Romania
- Contact:
New "hero" class
Ok, so I am trying to make for my server a new hero class. You know, glow, skills and all that ( I do not want to discuss in this thread about client modding, I know it's illegal to talk about it on the forums
, so I will respect the rules ^^ ). I think I made it so far, last thing is the aura. I chose the vitality effect for this new "class". Now...the problem is with setting it. It's a writeC like hero and noblesse, but i think the writeC is for the icon in charinfo. I searched different keywords in the whole project, just couldn't find what I needed. Where do you set the ID for the glow, so that the server will know what to retreive when char logs in. Just like hero aura for example. Is there any setAbnormalEffect on char on enterworld so that it has that effect like an aura....or something like that, dunno....my mind is just blowned to pieces right now xD.
Hope I can get this right, and thank you in advance for any helpful responses
Hope I can get this right, and thank you in advance for any helpful responses
"Wise men talk because they have something to say; fools talk because they have to say something." -- Plato
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: New "hero" class
did you check the UserInfo packet? afaik it should be there...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
- Callisto
- Posts: 39
- Joined: Sun Sep 09, 2007 11:13 am
- Location: Romania
- Contact:
Re: New "hero" class
Code: Select all
writeC(_activeChar.isHero() || (_activeChar.isGM() && Config.GM_HERO_AURA) ? 1 : 0); //0x01: Hero AuraJaniii told me that the glow comes from the setHero() which is then broadcasted in an pc info packet. But i just couldn't find that. Does it has a opcode like the Vitality effect or Stigma effect, and it's broadcasted somewhere from the server ? Really i have no idea.
"Wise men talk because they have something to say; fools talk because they have to say something." -- Plato
- JIV
- L2j Veteran

- Posts: 1882
- Joined: Sun Jan 06, 2008 8:17 pm
- Location: Slovakia
- Contact:
Re: New "hero" class
read a comment:
//0x01: Hero Aura
means this is control for hero aura.
//0x01: Hero Aura
means this is control for hero aura.
- Callisto
- Posts: 39
- Joined: Sun Sep 09, 2007 11:13 am
- Location: Romania
- Contact:
Re: New "hero" class
Yes JIV i know. Ok let me ask you another question.
If the setHero command makes the player a hero, then the skills are given to him from HeroSkillTable and L2PcInstance because he is a hero, so these two have a source to be broadcasted from. Now, from where is the aura broadcasted?
EDIT :
Ok, problem solved, I just took the example of the champion aura, and made it to a certain player. You can lock the topic.
If the setHero command makes the player a hero, then the skills are given to him from HeroSkillTable and L2PcInstance because he is a hero, so these two have a source to be broadcasted from. Now, from where is the aura broadcasted?
EDIT :
Ok, problem solved, I just took the example of the champion aura, and made it to a certain player. You can lock the topic.
"Wise men talk because they have something to say; fools talk because they have to say something." -- Plato