Jump to content
  • 0

Blessed Scrolls


aris96

Question

4 answers to this question

Recommended Posts

  • 0

net.sf.l2j.gameserver.network.clientpackets

 

RequestEnchantItem.java

 

find this

 

if (scrollTemplate.isBlessed())
{
// blessed enchant - clear enchant value
activeChar.sendPacket(SystemMessageId.BLESSED_ENCHANT_FAILED);
 
item.setEnchantLevel(0);
item.updateDatabase();
activeChar.sendPacket(EnchantResult.UNSUCCESS);
}
 
and this line
 
item.setEnchantLevel(0);
 
change it to
 
item.setEnchantLevel(item.getEnchantLevel() - 2);
Link to comment
Share on other sites

  • 0

 

net.sf.l2j.gameserver.network.clientpackets

 

RequestEnchantItem.java

 

find this

 

if (scrollTemplate.isBlessed())
{
// blessed enchant - clear enchant value
activeChar.sendPacket(SystemMessageId.BLESSED_ENCHANT_FAILED);
 
item.setEnchantLevel(0);
item.updateDatabase();
activeChar.sendPacket(EnchantResult.UNSUCCESS);
}
 
and this line
 
item.setEnchantLevel(0);
 
change it to
 
item.setEnchantLevel(item.getEnchantLevel() - 2);

 

i use jhellas and i have this :

else
{
sm = SystemMessage.getSystemMessage(SystemMessageId.BLESSED_ENCHANT_FAILED);
activeChar.sendPacket(sm);
}
 
if (!blessedScroll)
{
if (item.getEnchantLevel() > 0)
{
sm = SystemMessage.getSystemMessage(SystemMessageId.EQUIPMENT_S1_S2_REMOVED);
sm.addNumber(item.getEnchantLevel());
sm.addItemName(item.getItemId());
activeChar.sendPacket(sm);
}
what should i change?
Edited by aris96
Link to comment
Share on other sites

  • 0

this is the option for the blessed 

 

if (item.getEnchantLevel() > -2)

 

try this

 

lol and what is that line supposed to do.. ? :happyforever:

 

 

Well, you could ask on their forum, since almost no one uses Hellas and as far as I saw it's somewhere else, not RequestEnchantItem.

 

Differences between packs :P

Edited by SweeTs
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...