Page 1 of 1

Infinity weapons

Posted: Thu Jun 18, 2009 6:01 am
by disorder25
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:3155
L2JDP Revision Number:6245

Hi i need to find out how to allow all the player to equip the infinity weapons, the way the server is, only heros can use Infinity weapons. I tried adding the "StrictHeroSystem = False" to config but it did not work.
Can anybody help me fix that problem.
Thanks.

Re: Infinity weapons

Posted: Thu Jun 18, 2009 6:15 am
by janiii
search in data/stats/weapon/ and the xml files there for the infinity weapons. there should be a cond tag with a condition that only hero may equip it.

Re: Infinity weapons

Posted: Thu Jun 18, 2009 2:33 pm
by disorder25
I did that already but i didn't see any condition of that kind. It was only one condition: <player olympiad="false"/>
I changed it to true but nothing happened, i think it has something to do with equip it during Oly.

Re: Infinity weapons

Posted: Thu Jun 18, 2009 9:26 pm
by koohni
the condition is set in L2ItemInstance.java

Code: Select all

public boolean isHeroItem()    {        return ((_itemId >= 6611 && _itemId <= 6621) || (_itemId >= 9388 && _itemId <= 9390) || _itemId == 6842);    }
restriction seems to be made in Inventory.java

Code: Select all

if (!player.isGM() && !player.isHero() && item.isHeroItem())                return;

Re: Infinity weapons

Posted: Fri Jun 19, 2009 3:54 am
by disorder25
and how do I edit this files. I don't even now where they are. can you tell me where i can find then. Thank you

Re: Infinity weapons

Posted: Sat Jun 20, 2009 7:25 am
by disorder25
I guess nobody is able to help me change the condiions on the infinity weapons so all players can equip then, not only heros.
Please HELP ME.

Re: Infinity weapons

Posted: Sat Jun 20, 2009 7:49 pm
by Copyleft
disorder25 wrote:I guess nobody is able to help me change the condiions on the infinity weapons so all players can equip then, not only heros.
Please HELP ME.

you need to modify some lines in core, this means you will have to compile the server once edited

http://www.l2jserver.com/trac/wiki/Eclipse

Re: Infinity weapons

Posted: Sun Jun 21, 2009 4:17 am
by disorder25
Thanks for your reply.
But how do i do that?