Weapon restriction

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
Naonah
Posts: 357
Joined: Sun Apr 04, 2010 11:12 pm

Weapon restriction

Post by Naonah »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:

Sry for wrong section but I dont have 20 posts to place it in proper one.

I would like to restrict a weapon for some classes.
Exemple: Pladain cant use a bow but Dark Avenger can.

I think that I should look for in codes similar to kamael restrictions but I am not sure.

Please tell me in which file shall I edit and what codes.

Thank you.
Regards.
public void l2jserver ()
{
if (you want l2j server == no problems)
use Linux;
else
use Windows;
}
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Weapon restriction

Post by MELERIX »

you can use conditions, same conditios that are used in skills, but for weapons, and this in the xml for weapons of course ;)
User avatar
Naonah
Posts: 357
Joined: Sun Apr 04, 2010 11:12 pm

Re: Weapon restriction

Post by Naonah »

Thank you very much:)
public void l2jserver ()
{
if (you want l2j server == no problems)
use Linux;
else
use Windows;
}
Annu
Posts: 87
Joined: Sat Sep 26, 2009 11:31 am

Re: Weapon restriction

Post by Annu »

Well , i have a another question about this.

How can we restrict the stats of a weapon on spesific class?. Imean the class can equip the weapon but NOT to obtain the stats of IT. Or when equip a spesific weapon to get a penalty.(Decrease Stats.)
It might be a way to do it on spesific class skills to add extra stats that is going to look like a penalty when equiping a weapon. Thats an idea from Frenzy :),, or is there any other way?
Is that possible???

Thanks in advance
Always remember...
in this clever world, many people weren't borned clever!!
Post Reply