Jump to content
  • 0

EnchantItemOptions.xml


Question

Posted

Can explain me how i can add more options in EnchantItemOptions,xml? Now it is max 3 options: 

<options level="1" option1="xxxx" option2="xxxx"  option3="xxxx" />

Thank you

Recommended Posts

  • 0
Posted (edited)

your code have a list if you can post here enchantoptions.java for see that more have

you find it here

import com.l2jserver.gameserver.model.options.EnchantOptions;
Edited by tazerman2
  • 0
Posted
/*
 * Copyright (C) 2004-2015 L2J Server
 * 
 * This file is part of L2J Server.
 * 
 * L2J Server is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * L2J Server is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
package com.l2jserver.gameserver.model.options;

/**
 * @author UnAfraid
 */
public class EnchantOptions
{
	private final int _level;
	private final int[] _options;
	
	public EnchantOptions(int level)
	{
		_level = level;
		_options = new int[3];
	}
	
	public int getLevel()
	{
		return _level;
	}
	
	public int[] getOptions()
	{
		return _options;
	}
	
	public void setOption(byte index, int option)
	{
		if (_options.length > index)
		{
			_options[index] = option;
		}
	}
}

 

  • 0
Posted

did u see whether it is actually working server-side and just not showing up on the client?

 

you should also post in the l2jserver forums, there you can find a lot more java developers who will know what is going on.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • It wasn't much... I mean, it was a single prompt 
    • If prompting is easy why are all your sources still garbage? Get to prompt! 👋
    • L2 Pearl is already live with ELVARIS — Interlude x5. We’re growing every day and continuing to build alongside our community. This weekend, we’re running a Double Drop & Spoil Event on x5: Drop x4 and Spoil x6, from Friday 30 October at 20:00 until Sunday 1 November at 23:59, server time. Meanwhile, we’re preparing KAELOR — Classic PvP x45. If you’re looking for faster progression and more time for fights, here’s what to expect: KAELOR — CLASSIC PvP x45 XP/SP x45 · Adena x35 · Drop x10 · Spoil x15. Quest Item Drop x5 · Raid Boss Drop x6 · Epic Jewels x1. Free Auto Farm and Auto Loot. Free 2-hour buffs, 5 saved schemes and pet buffs. Global Gatekeeper with hunting zones, catacombs and Classic Raid Bosses level 70–80. GM Shop from D to S grade. D–A for Adena, S grade for Adena + Ancient Coins. Free 1st / 2nd class changes with .class. TvT, CTF and Deathmatch every 2 hours. Safe enchant +3 for weapons and armor, +4 for full armor and jewelry. Maximum enchant +20. Blessed Scrolls: a failed attempt reduces the item’s enchant by 1 instead of resetting it. WHAT ELSE WE’VE PREPARED Special Farming Zones For players level 70+, with Ancient Coins you can save for S-grade equipment or trade: Forge of the Gods: requires a party of 4+. Imperial Tomb: solo-friendly. Fields of Massacre: permanent PvP zone. The Wanderer A boss that appears every 3 hours and changes location every 10 minutes. The party that defeats it shares 60 Ancient Coins. Fate Cards Use .fate to choose 1 of 3 cards each day, with a reroll option. Your bonus lasts 24 hours: speed, HP, damage, Adena, drop, spoil and more. Zone Lords Every Saturday, clans fight for control of the farming zones. The owning clan receives +15% coin chance and a share of the coins farmed in its territory. Bounty Hunter Reach 10 consecutive PvP kills without dying and a bounty is placed on your head. Whoever takes you down claims the reward. Noblesse through Barakiel The party that lands the last hit receives Noblesse, with an active subclass at level 65+ required. The standard quest and the Donation Manager shortcut are also available. SERVER DATES Open Beta: Friday, 20 November at 20:00. Grand Opening: Friday, 27 November at 20:00. There’s still work to do before opening. Join our Discord, bring your friends and come test it with us during the beta. Website / Launcher: https://l2pearl.com/ Discord: discord.gg/l2pearl Some details may change before the Grand Opening as we continue testing and gathering your feedback. — The L2 Pearl Team #L2Pearl #Lineage2 #Kaelor #Elvaris #PvP #Classic #Interlude
    • My good friend Galagard.   I never question the quality of your project. Infact, from all those great Villains banned from your discord, I'm the only one that still claims that its the best open source L2 emulator available.   I'm just astonished that you had to badmouth my navmesh when Mobius announced his cell engine in discord. What's the point ? Do you need to badmouth others in order to market your thing? I wasn't even there, I havent been in your discord for at least a month. But people from there still talk to me and they showed me what you were saying even though I thought after the last conversation we two had that we left the past behind.   The problem that you all have as a team is that you take productive suggestions as insults.   We share ideas that you have not thought, you get offended. We share security issues you have not fixed, you get offended. Isn't it high time you two graduated from the kindergarden ?    
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..