New "hero" class

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Callisto
Posts: 39
Joined: Sun Sep 09, 2007 11:13 am
Location: Romania
Contact:

New "hero" class

Post by Callisto »

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 :)
"Wise men talk because they have something to say; fools talk because they have to say something." -- Plato
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: New "hero" class

Post by jurchiks »

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.
User avatar
Callisto
Posts: 39
Joined: Sun Sep 09, 2007 11:13 am
Location: Romania
Contact:

Re: New "hero" class

Post by Callisto »

Code: Select all

writeC(_activeChar.isHero() || (_activeChar.isGM() && Config.GM_HERO_AURA) ? 1 : 0); //0x01: Hero Aura
Ok, just explain me this because I understand it like this : that writeC is the icon in CTRL+I. IF this is the hero aura, like the comment sais then where does it's stated ?

Janiii 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
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: New "hero" class

Post by JIV »

read a comment:
//0x01: Hero Aura
means this is control for hero aura.
User avatar
Callisto
Posts: 39
Joined: Sun Sep 09, 2007 11:13 am
Location: Romania
Contact:

Re: New "hero" class

Post by Callisto »

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.
"Wise men talk because they have something to say; fools talk because they have to say something." -- Plato
Post Reply