I am with this mod vip vip skill but the skill so picks up where I put // setvip not taking this into sub class someone could see the code and see WHAT this faltano for vip skill handle in sub class also?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Hello. You may encounter the Push item fail error when trying to pick up an item dropped on the ground by a mob.
or
You can throw something out of your inventory and pick it up again, several times.
Probably this is a quantum dependency) I don't understand at what point this happens, sometimes two items one after another experience push item errors, and sometimes I don't have enough thousands of attempts to repeat this trick)
In any case, this is just a visual error and after the relog, the item appears in the inventory. I think first i need to disconnect the extender and check it on a bare server. I still need time to check this, maybe it's not even about the autoloot function.
https://youtu.be/6mcfmdImofE
-----------
In general, I would like to thank our wonderful Emca Eressea for her deep knowledge in programming and reverse engineering. And for the fact that her work is open to everyone, this is very amazing, and incredibly valuable.
ADENA
500 K = 40e
1kk = 70e
3kk = 190e
ITEMS
staff of life = 150e
karmian set = 90e
elven jewls top D = 30e
Orcish Poleaxe+1 best C pole = 680e
any D grade armor on demand
discord
wiz0642_81242
Question
l2cabal
I am with this mod vip vip skill but the skill so picks up where I put // setvip not taking this into sub class someone could see the code and see WHAT this faltano for vip skill handle in sub class also?
------------------------com/l2jfrozen/Config.java
+public static boolean ENABLE_VIP_SYSTEM;
+public static Map<Integer, Integer> VIP_SKILLS;
+ ENABLE_VIP_SYSTEM = Boolean.parseBoolean(otherSettings.getProperty("EnableAioSystem", "True"));
+if(ENABLE_VIP_SYSTEM) //create map if system is enabled
+ {
+ String[] VipSkillsSplit = otherSettings.getProperty("VipSkills", "").split(";");
+ VIP_SKILLS = new FastMap<Integer, Integer>(VipSkillsSplit.length);
+ for (String skill : VipSkillsSplit)
+ {
+ String[] skillSplit = skill.split(",");
+ if (skillSplit.length != 2)
+ {
+ System.out.println("[ViP System]: invalid config property in "+OTHER+" -> AioSkills \"" + skill + "\"");
+ }
+ else
+ {
+ try
+ {
+ VIP_SKILLS.put(Integer.parseInt(skillSplit[0]), Integer.parseInt(skillSplit[1]));
+ }
+ catch (NumberFormatException nfe)
+ {
+ if(Config.ENABLE_ALL_EXCEPTIONS)
+ nfe.printStackTrace();
+ if (!skill.equals(""))
+ {
+ System.out.println("[ViP System]: invalid config property in "+OTHER+" -> AioSkills \"" + skillSplit[0] + "\"" + skillSplit[1]);
+ }
+ }
+ }
+ }
+ }
-----------------------------------L2JFrozen/config/head/other.properties
+EnableVipSystem = True
+# List of Vip Skills
+# Format : skillid,skilllvl;skillid2,skilllvl2;....skillidn,skilllvln
+VipSkills = 395,1
com/l2jfrozen/gameserver/handler/admincommandhandlers/AdminVip.java
public void doVip(L2PcInstance activeChar, L2PcInstance _player, String _playername, String _time)
+_player.rewardVipSkills();
_player.broadcastUserInfo();
_player.sendPacket(new EtcStatusUpdate(_player));
+_player.sendSkillList();
public void removeVip(L2PcInstance activeChar, L2PcInstance _player, String _playername)
+_player.lostVipSkills();
_player.broadcastUserInfo();
_player.sendPacket(new EtcStatusUpdate(_player));
+_player.sendSkillList();
-------------------------------------com/l2jfrozen/gameserver/model/actors/instance/L2PcInstance.java
public void setVip(boolean val)
{
_isVip = val;
-
+
}
-
+
+ public void rewardVipSkills()
+ {
+ L2Skill skill;
+ for(Integer skillid : Config.VIP_SKILLS.keySet())
+ {
+ int skilllvl = Config.VIP_SKILLS.get(skillid);
+ skill = SkillTable.getInstance().getInfo(skillid,skilllvl);
+ if(skill != null)
+ {
+ addSkill(skill, true);
+ }
+ }
+ sendMessage("GM give to you Vip's skills");
+ }
+
+ public void lostVipSkills()
+ {
+ L2Skill skill;
+ for(Integer skillid : Config.VIP_SKILLS.keySet())
+ {
+ int skilllvl = Config.VIP_SKILLS.get(skillid);
+ skill = SkillTable.getInstance().getInfo(skillid,skilllvl);
+ removeSkill(skill);
+ }
+ }
+
13 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.