Page 1 of 1

[Help]SupportMagic

Posted: Fri Feb 05, 2010 11:20 am
by Rofgar
L2J Revision [3907]
L2JDP Revision [7022]

Hi, i have a lil problem with changing the newbie buff max lvl.
All NPC's that give the newbie buff are linked to the SupportMagic.htm
and from that .htm they call up the
<a action="bypass -h npc_%objectId%_SupportMagic">Receive supplemental magic.</a>
I tried to find that SupportMagic in scripts, DB and configs, but theres no such thing.

I quess this function is cituated some where in source of java's core, i found this http://pastebin.ca/44662 code but i just dont know how to write it in without getting new errors on compiling, can you help me with that?

And i would be really greatfull if you would make something like in that code in your next revisions, so people would only need to change 2 config strings.

Re: [Help]SupportMagic

Posted: Fri Feb 05, 2010 11:28 am
by BiggBoss
for example, for wind walk

Code: Select all

 skill = SkillTable.getInstance().getInfo(4322,1); 
4322 = skill id
1 = skill level

All you have to do is change the skill level (always knowing that such skill has more than lvl 1) or change the skill id for anyother you like with his level (always knowing such skill exist and it has that level)

Re: [Help]SupportMagic

Posted: Fri Feb 05, 2010 11:44 am
by Rofgar
Sorry my mistake, i didnt mean the level of buff skill.
I meant lvl of Character that could use that buff by default its 6-75 levels for buffs
I want to make it 1-85 levels available.

Theres nothing wrong with that source code, i just dont know HOW to write it in source of server and compile it right without mistakes

Re: [Help]SupportMagic

Posted: Fri Feb 05, 2010 12:08 pm
by BiggBoss
Database > Table helper_buff_list.
lower_level = Min level to get buffs
upper_level = Max level to get buffs
is_magic_class = true if its a magic class, false if its for fighter class

Re: [Help]SupportMagic

Posted: Fri Feb 05, 2010 12:12 pm
by Rofgar
Ohh, sorry, my bad ^_^
Thanks a lot, i kind a slipped that when where looking.