Anyone know where I put the maximum enchant for set and weapon ?? Example weapon +20 and set +15
public class Enchant extends Quest
{
public static final Logger _log = Logger.getLogger(Enchant.class.getName());
private final static int npcId = 9994;
// Item required to enchant armor +1
private final static int itemRequiredArmor = 5558;
private final static int itemRequiredArmorCount = 1;
// Item required to enchant jewels +1
private final static int itemRequiredJewels = 5558;
private final static int itemRequiredJewelsCount = 1;
// Item required to enchant weapon +1
private final static int itemRequiredWeapon = 5558;
private final static int itemRequiredWeaponCount = 1;
// Item required to enchant belt/shirt +1
private final static int itemRequiredBeltShirt = 5558;
private final static int itemRequiredBeltShirtCount = 1;
if (player.getQuestState(getName()) == null)
{
newQuestState(player);
}
else if (player.isInCombat())
{
return drawHtml("You are in combat", "Don't fight if you want to talk with me!", enchantType);
}
else if (player.getPvpFlag() == 1)
{
return drawHtml("You are flagged", "Don't fight if you want to talk with me!", enchantType);
}
else if (player.getKarma() != 0)
{
return drawHtml("You are in chaotic state", "Don't fight if you want to talk with me!", enchantType);
}
else if (OlympiadManager.getInstance().isRegistered(player))
{
return drawHtml("You are registered for Olympiad", "You can't use my services<br1>while playing the Olympiad.", enchantType);
}
private String enchant(String enchantType, L2PcInstance player, int armorType, int itemRequired, int itemRequiredCount)
{
QuestState st = player.getQuestState(getName());
return drawHtml("Congratulations!", htmlContent, enchantType);
}
}
else
{
player.sendMessage("Your " + item.getItem().getName() + " is already +25!");
return drawHtml("It's already +25", "<center>Your <font color=\"FF7200\">" + item.getItem().getName() +"</font> is already +25!</center>", enchantType);
}
}
else
{
player.sendMessage("Your " + item.getItem().getName() + " is not enchantable!");
return drawHtml("Not enchantable item!", "<center>Your <font color=\"FF7200\">" + item.getItem().getName() +"</font> is not enchantable!</center>", enchantType);
}
}
}
catch (StringIndexOutOfBoundsException e)
{
player.sendMessage("Something went wrong. Are equiped with the item?");
return drawHtml("Error Enchant", "<center>Something went wrong.<br>Are equiped with the item?</center>", enchantType);
}
catch (NumberFormatException e)
{
player.sendMessage("Something went wrong. Are equiped with the item?");
return drawHtml("Error Enchant", "<center>Something went wrong.<br>Are equiped with the item?</center>", enchantType);
}
player.sendMessage("Something went wrong. Are equiped with the item?");
return drawHtml("Error Enchant", "<center>Something went wrong.<br>Are equiped with the item?</center>", enchantType);
}
else
{
String content = "<center>"+
"Not enough <font color=\"FF7200\">Fir Tree</font>!<br>";
if ( st.getQuestItemsCount(itemRequired) > 0 )
{
content += "You have " + st.getQuestItemsCount(itemRequired) + " Fir Tree,<br1>"+
"Need " + (itemRequiredCount - st.getQuestItemsCount(itemRequired)) + " more.";
}
else
{
content += "You need <font color=\"FF7200\">" + itemRequiredCount + " Fir Tree</font>!";
}
if (itemInstance != null)
{
return itemInstance;
}
}
return null;
}
private int setEnchant(L2PcInstance player, L2ItemInstance item, int newEnchantLevel, int armorType)
{
if (item != null)
{
// set enchant value
player.getInventory().unEquipItemInSlot(armorType);
item.setEnchantLevel(newEnchantLevel);
player.getInventory().equipItem(item);
// send packets
InventoryUpdate iu = new InventoryUpdate();
iu.addModifiedItem(item);
player.sendPacket(iu);
player.broadcastPacket(new CharInfo(player));
player.sendPacket(new UserInfo(player));
player.broadcastPacket(new ExBrExtraUserInfo(player));
what do u mean i want to change the normal weapons some weapons are working perftect some not getting th effect and the arcana has the effect above the weapons as u see ... i dont what is the probkenm
Stop paying for files that are already public and free.
Here you can download a fully working Interlude server with C4-like gameplay, including source code so you can compile it yourself and verify everything.
People will try to convince you that free releases are “broken”, “full of backdoors”, etc.
That’s exactly why I’m also providing the SVN with the full source – so you can:
Review the code yourself
Remove / modify whatever you don’t like
Compile your own binaries
What’s included
GX-EXT Interlude server (C4-style gameplay) – L2Off
Client Interlude tweaked for C4 gameplay
Public SVN with source code
Downloads:
Server GX-EXT:
https://www.mediafire.com/file/q5ipkjd36tnhfxv/L2OFF_C4_C4_ACU_GXEXT.rar/file
Client Interlude C4 Gameplay:
https://www.mediafire.com/file/rdkfc8wwau042oh/Cliente_Interlude_Jugabilidad_C4.rar/file
SVN (source code, delayed a couple of months to avoid reselling fresh work):
https://svn.l2servers.com.ar/!/#GX-EXT_INTERLUDE
User: gx
Pass: gx
How to compile
To compile the source you will need:
Visual Studio 2005 (x64 toolset)
(Classic L2Off toolchain – yes, it’s old, but that’s what the original server uses.)
Use this as you want: learn, test, open your own server, or just audit the code.
But please, stop buying the same leaked/resold files over and over when you can get them here for free, with source, and actually know what you’re running.
hello guys im facing a problem with the weapons .. i want to add hero glow on s weapons arcana ,dragonic bow etc.. some weapons are work peftect .. some not for example i add the line
LineageEffect.e_u092_h for fists and didnt work didnt even get the hero glow.. and the arcana the glow is on the top of weapon not down side like hero zeus mace any ideas?.. or does anybody has the weapongrp.dat file ready ?
Question
mutant3x
Edited by Celestine
added [code][/code]
2 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now