Page 1 of 1
New "hero" class
Posted: Fri Jun 04, 2010 3:19 pm
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

Re: New "hero" class
Posted: Sat Jun 05, 2010 7:07 pm
by jurchiks
did you check the UserInfo packet? afaik it should be there...
Re: New "hero" class
Posted: Sat Jun 05, 2010 7:47 pm
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.
Re: New "hero" class
Posted: Sat Jun 05, 2010 8:59 pm
by JIV
read a comment:
//0x01: Hero Aura
means this is control for hero aura.
Re: New "hero" class
Posted: Mon Jun 07, 2010 7:37 am
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.