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.
Great share!
for svn you can use the tortoisesvn: https://tortoisesvn.net/downloads.html
also you can help the GX-Ext if you join at discord server!
GX-Ext share the discord link with us!
After many great years of running this community, I’ve made the decision to sell this forum and pass it on to someone who can continue its legacy or take it in a new direction.
This gaming forum has been around for 20 years, serving thousands of users, discussions, and memories. It’s one of the oldest communities in its niche, with a loyal user base and strong SEO presence.
Why I’m Selling:
Running the forum has been a passion project, but after all these years:
My personal and professional priorities have changed.
I no longer have the time to actively manage or grow the community.
I’d like to see it evolve under new ownership rather than let it fade away.
What’s Included:
Full ownership of the forum domain and database
Forum software and user data
Branding, assets, and archives
Optional: Transition assistance for a smooth handover
💰 Starting Price: 1 BTC
I’m open to offers above this amount. Serious buyers only, please.
🔒 Secure Payment & Transfer Process:
To ensure a safe and smooth transaction for both parties:
Escrow Service will be used (such as Escrow.com or a trusted crypto escrow provider).
The buyer sends payment to the escrow service.
Once payment is confirmed, I will provide full access to the forum assets.
After the buyer confirms successful transfer and access, escrow releases the funds.
This protects both sides and ensures transparency throughout the process.
If you're passionate about gaming communities or looking to acquire a well-established platform, this is a unique opportunity.
📩 For more details or to make an offer, contact me directly via private message or email: admin@maxcheaters.com
Let’s find the right new owner to take this community into the future.
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.