Hello how are you?. I need help please to implement this mod. What happens is when I try to ask for a skill in the npc, it throws me a critic that says to update the files that are defective.
I pass some of what I have to see if someone can help me. Thank you!.
RebirthEngineConfig
-----------------------
package l2r;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import l2r.gameserver.util.Util;
import gr.sr.configsEngine.AbstractConfigs;
import gr.sr.utils.L2Properties;
/**
* @author vGodFather
*/
public class RebirthEngineConfigs extends AbstractConfigs
{
private static final String CONFIG_FILE = "./config/extra/rebirth.ini";
public static int REBIRTH_MIN_LEVEL;
public static int REBIRTH_MAX;
public static int REBIRTH_RETURN_TO_LEVEL;
public static List<Integer> REBIRTH_SKILL_IDS;
public static int REBIRTH_SKILL_SELLER_ID;
public static String[] REBIRTH_ITEMS;
@Override
public void loadConfigs()
{
// Load Server L2Properties file (if exists)
L2Properties rebirth = new L2Properties();
final File file = new File(CONFIG_FILE);
try (InputStream is = new FileInputStream(file))
{
rebirth.load(is);
}
catch (Exception e)
{
_log.error("Error while loading rebirth system settings!", e);
}
REBIRTH_SKILL_SELLER_ID = Integer.parseInt(rebirth.getProperty("RebirthSkillSellerId", "500"));
REBIRTH_MIN_LEVEL = Integer.parseInt(rebirth.getProperty("RebirthMinLevel", "78"));
REBIRTH_MAX = Integer.parseInt(rebirth.getProperty("RebirthMaxAllowed", "3"));
REBIRTH_RETURN_TO_LEVEL = Integer.parseInt(rebirth.getProperty("RebirthReturnToLevel", "1"));
REBIRTH_ITEMS = rebirth.getProperty("RebirthItems", "").split(";");
String[] ids = rebirth.getProperty("RebirthSkillIds", "90045,90046,90047,90048,90049,90050,90051,90052,90053,90054,90055,90056,90057,90058,90059,90060,90061,90062,90063,90064").split(",");
REBIRTH_SKILL_IDS = new ArrayList<>(ids.length);
for (String id : ids)
{
if (Util.isDigit(id))
{
REBIRTH_SKILL_IDS.add(Integer.parseInt(id));
}
else
{
_log.warn("Wrong skill id format (RebirthSkillIds) rebirth.ini");
}
}
}
public static RebirthEngineConfigs getInstance()
{
return SingletonHolder._instance;
}
private static class SingletonHolder
{
protected static final RebirthEngineConfigs _instance = new RebirthEngineConfigs();
}
}
FILE SKILLGROUP.dat
-------------
90045 1 14 2 0 4294967295 0 0.00000000 0 icon2.skill1240 0 0 0 a,none\0 0 -1 -1 0 a,none\0
90045 2 14 2 0 4294967295 0 0.00000000 0 icon2.skill1240 0 0 0 a,none\0 0 -1 -1 0 a,none\0
90045 3 14 2 0 4294967295 0 0.00000000 0 icon2.skill1240 0 0 0 a,none\0 0 -1 -1 0 a,none\0
continue.....
90045 1 a,XbCustom Rebirth Skill Guidance\0 a,Increases Accuracy 5%.\0 a,none\0 a,none\0
90045 2 a,XbCustom Rebirth Skill Guidance\0 a,Increases Accuracy 10%.\0 a,none\0 a,none\0
90045 3 a,XbCustom Rebirth Skill Guidance\0 a,Increases Accuracy 15%.\0 a,none\0 a,none\0
I found what is the problem, it was a texture error. Buy when y try to get a skill i get an message, Wrong Packet Data in Aquired Skill. Does anybody an idea how to resolve it?.
We are certainly not an ambulance, but we will definitely cure you of blacklists and empty pockets. Live freely with SX!
Each of you will receive a trial version of SX to familiarize yourself with the product, all you have to do is post in this thread
Hello friend, once again I come looking for help!
I'm trying to create an effects pack based on the original LineageEffect.u, I can compile and create a new file but just do this, my new created effects file comes without the StaticMesh and I don't know how to add them Could someone who understands the subject help me?
Question
barao45
Hello how are you?. I need help please to implement this mod. What happens is when I try to ask for a skill in the npc, it throws me a critic that says to update the files that are defective.
I pass some of what I have to see if someone can help me. Thank you!.
RebirthEngineConfig
-----------------------
I found what is the problem, it was a texture error. Buy when y try to get a skill i get an message, Wrong Packet Data in Aquired Skill. Does anybody an idea how to resolve it?.
2 answers to this question
Recommended Posts