Jump to content

Recommended Posts

Posted

Well , It's Been AGES since i shared this thing , and i thought it would be better if i shared the new version to you.

no more talking.

 

Here's The Diff:

Index: java/config/l2jmods.properties
===================================================================
--- java/config/l2jmods.properties	(revision 4307)
+++ java/config/l2jmods.properties	(working copy)
@@ -132,3 +132,20 @@
# ex.: 1;2;3;4;5;6
# no ";" at the start or end
TvTEventDoorsCloseOpenOnStartEnd =
+
+#---------------------#
+#Noblesse Item Configs
+#---------------------#
+NoblesseItemEnabled = False
+
+# ID Of The Noblesse Item
+# Default : 6673 ( Festival Adena )
+NoblesseItemId = 6673
+
+# Noblesse Item Lvl Restriction
+# A Player Lower than 76 level won't be able to use this item
+NoblesseItemLvlRestriction = True
+
+# Noblesse Item Sub Restriction
+# A Player That is not with his subclass won't be able to use this item
+NoblesseItemSubRestriction = True
\ No newline at end of file
Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java	(revision 4307)
+++ java/net/sf/l2j/Config.java	(working copy)
@@ -882,6 +882,11 @@
     public static boolean L2JMOD_WEDDING_FORMALWEAR;
     public static int L2JMOD_WEDDING_DIVORCE_COSTS;

+    public static int NOBLESSE_ITEM_ID;
+    public static boolean NOBLESSE_ITEM_LEVEL_RESTRICTION;
+    public static boolean NOBLESSE_ITEM_SUBCLASS_RESTRICTION;
+    public static boolean NOBLESSE_ITEM_ENABLED;
+    
     // Packet information
     /** Count the amount of packets per minute ? */
     public static boolean  COUNT_PACKETS           = false;
@@ -1858,7 +1863,11 @@
                 L2JMOD_WEDDING_SAMESEX                  = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingAllowSameSex", "False"));
                 L2JMOD_WEDDING_FORMALWEAR               = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingFormalWear", "True"));
                 L2JMOD_WEDDING_DIVORCE_COSTS            = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20"));
-
+                NOBLESSE_ITEM_ID						= Integer.parseInt(L2JModSettings.getProperty("NoblesseItemId", "6673"));
+                NOBLESSE_ITEM_LEVEL_RESTRICTION			= Boolean.parseBoolean(L2JModSettings.getProperty("NoblesseItemLvlRestriction", "True"));
+                NOBLESSE_ITEM_SUBCLASS_RESTRICTION		= Boolean.parseBoolean(L2JModSettings.getProperty("NoblesseItemSubRestriction", "True"));
+                NOBLESSE_ITEM_ENABLED					= Boolean.parseBoolean(L2JModSettings.getProperty("NoblesseItemEnabled", "False"));
+                
                 if (TVT_EVENT_PARTICIPATION_NPC_ID == 0)
                 {
                     TVT_EVENT_ENABLED = false;
Index: java/net/sf/l2j/gameserver/GameServer.java
===================================================================
--- java/net/sf/l2j/gameserver/GameServer.java	(revision 4307)
+++ java/net/sf/l2j/gameserver/GameServer.java	(working copy)
@@ -136,6 +136,7 @@
import net.sf.l2j.gameserver.handler.itemhandlers.Harvester;
import net.sf.l2j.gameserver.handler.itemhandlers.MercTicket;
import net.sf.l2j.gameserver.handler.itemhandlers.MysteryPotion;
+import net.sf.l2j.gameserver.handler.itemhandlers.NoblesseItem;
import net.sf.l2j.gameserver.handler.itemhandlers.PaganKeys;
import net.sf.l2j.gameserver.handler.itemhandlers.Potions;
import net.sf.l2j.gameserver.handler.itemhandlers.Recipes;
@@ -476,6 +477,10 @@
		_itemHandler.registerItemHandler(new SpecialXMas());
		_itemHandler.registerItemHandler(new SummonItems());
		_itemHandler.registerItemHandler(new BeastSpice());
+		
+		if (Config.NOBLESSE_ITEM_ENABLED)
+		_itemHandler.registerItemHandler(new NoblesseItem());
+		
         _log.config("ItemHandler: Loaded " + _itemHandler.size() + " handlers.");

		_skillHandler = SkillHandler.getInstance();
Index: java/net/sf/l2j/gameserver/handler/itemhandlers/NoblesseItem.java
===================================================================
--- java/net/sf/l2j/gameserver/handler/itemhandlers/NoblesseItem.java	(revision 0)
+++ java/net/sf/l2j/gameserver/handler/itemhandlers/NoblesseItem.java	(revision 0)
@@ -0,0 +1,54 @@
+package net.sf.l2j.gameserver.handler.itemhandlers;
+
+import net.sf.l2j.Config;
+import net.sf.l2j.gameserver.handler.IItemHandler;
+import net.sf.l2j.gameserver.model.L2ItemInstance;
+import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
+import net.sf.l2j.gameserver.model.actor.instance.L2PlayableInstance;
+import net.sf.l2j.gameserver.serverpackets.MagicSkillUser;
+
+public class NoblesseItem implements IItemHandler
+{
+    private static final int ITEM_IDS[] = 
+    {
+        Config.NOBLESSE_ITEM_ID
+    };
+    
+    public void useItem(L2PlayableInstance playable, L2ItemInstance item)
+    {
+            if(!(playable instanceof L2PcInstance))
+                return;
+            L2PcInstance activeChar = (L2PcInstance)playable;
+            if(activeChar.isNoble())
+            {
+                activeChar.sendMessage("You Are Already A Noblesse!");
+                return;
+            } 
+            if (activeChar.getLevel() < 76 && Config.NOBLESSE_ITEM_LEVEL_RESTRICTION)
+            {
+            	activeChar.sendMessage("You Must Be Over 76 Level To Use This Item!");
+            	return;
+            }
+            if (!activeChar.isSubClassActive() && Config.NOBLESSE_ITEM_SUBCLASS_RESTRICTION)
+            {
+            	activeChar.sendMessage("You Must Be With Your Subclass To Use This Item!");
+            	return;
+            }
+            else
+            {
+                MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2023, 1, 1, 0);
+                activeChar.sendPacket(MSU);
+                activeChar.broadcastPacket(MSU);
+                activeChar.setNoble(true);
+                activeChar.sendMessage("You Are Now a Noble,You Are Granted With Noblesse Status , And Noblesse Skills.");
+                activeChar.broadcastUserInfo();
+                activeChar.getInventory().addItem("Noblesse Tiara",7694, 1, activeChar, playable);
+                playable.destroyItem("Consume", item.getObjectId(), 1, null, false);
+            }
+        }
+
+    public int[] getItemIds()
+    {
+        return ITEM_IDS;
+    }
+}
\ No newline at end of file

 

Enjoy.

Posted

Stefoulis is back ? :o Niceeee

Can i ask?What do you mean new version?What difference this custom item have?

 

 

well , the last version i've shared

hadn't any restrictions about level and active subclass.

eh , this gives you noblesse tiara when u click the item

also , when u clicked appeared the social action that appears when you become a hero. now its just a firework effect.

last one, the other wasnt that configurable. the only config was enable/disable.

now it has configs about the restrictions , the item id and enable/disable.

Posted

well , the last version i've shared

hadn't any restrictions about level and active subclass.

eh , this gives you noblesse tiara when u click the item

also , when u clicked appeared the social action that appears when you become a hero. now its just a firework effect.

last one, the other wasnt that configurable. the only config was enable/disable.

now it has configs about the restrictions , the item id and enable/disable.

too nice.

Thnx for sharing.

Keep up :D

Posted

WOOOOOOW!

I'm soo excited, Stef is BACK!

I hope you make the forum full of shares mate!

Jeus are u that... god..

 

Anyway, nice to have u back stef.

  • 2 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Posts

    • Doesn't respond to DM on discord, I need the source to implement. He only gave me a compiled version with a bad script, I didn't want to complain here but it's a fact.
    • Hello friend, did you do it? Please send the link to the topic, please ❤️
    • ✨ We believe that technology is worthless without a human touch. A service can be fast, convenient, and modern, but if users are not treated with respect, not listened to, and their problems are not solved, all of this loses its meaning. We believe that respect should go both ways. And that’s why we want to build an audience that’s a pleasure to work with— people who respect us just as much as we respect them (at least a little).   Website: vibe-sms.com Telegram: https://t.me/vibe_sms  
    • 价格更新 – TikTok 账号与新产品. 在流量套利中,TikTok 账号起着关键作用。广告活动的成功以及套利者的收益直接取决于账号的质量。可靠且高质量的账号能够在推广中提供稳定性、信任和长期效果。 在我们这里,您只会找到经过验证的 TikTok 账号,适合开展广告投放、扩展受众和扩大收益。正确选择账号是高效套利的基础! 我们网上商店的完整产品目录: 账号: Telegram、Facebook、Reddit、Twitter (X)、Instagram、YouTube、TikTok、Discord、VK、LinkedIn、GitHub、Snapchat、Gmail、邮箱账号 (Outlook、Firstmail、Rambler、Onet、Gazeta、GMX、Yahoo、Proton、Web.de)、Google Voice、Google Ads 高级订阅: Telegram Premium、Twitter Premium X、YouTube Premium、Spotify Premium、Netflix Premium、Discord Nitro、ChatGPT Plus/PRO、XBOX Game Pass 附加服务: Telegram Stars、代理 (IPv4、IPv6、ISP、移动)、VPN (Outline、WireGuard 等)、VDS/RDP 服务器 优惠码: AUGUST2025 (九折优惠) 支付方式: 银行卡 · 加密货币 · 其他常用方式 相关链接: ➡ 网店: 点击 ➡ Telegram 机器人: 点击 ➡ SMM 面板: 点击 – 推广您的社交媒体账号 使用我们的 SMM 面板 可提升 Facebook、Instagram、Telegram、Spotify、Soundcloud、YouTube、Reddit、Threads、Kick、Discord、LinkedIn、Likee、VK、Twitch、Kwai、Reddit、网站流量、TikTok、Trust Pilot、Apple Music、Tripadvisor、Snapchat 及其他数字产品。 首次体验 SMM 面板可获得 1 美元:只需在 我们的网站 (支持) 提交工单,主题填写 “Get Trial Bonus”。 更新后的TikTok 账号种类与价格调整: TIKTOK 新账号 TikTok 蓝 V 认证账号 | 真实账号,拥有真实粉丝与互动 | 官方认证 | 当前价格: $2500 TikTok 高质量新自动注册账号 | 国家:美国和欧洲 | 完整访问权限 (包含邮箱) | 起价 $0.2 TIKTOK – 空号自动注册 II 通过 @RAMBLER.RU/@FIRSTMAIL 验证 II 包含邮箱,使用 RU IP 注册 | 起价 $0.1 自动注册 TikTok 账号 II 通过 rambler.ru 邮箱验证,包含邮箱 II 性别混合 II 拉丁名 II 空白资料 II 使用混合 IP 注册 | 起价 $0.1 粉丝账号 自动注册 TikTok 账号 II 100+ 粉丝 II 通过邮箱验证 @hotmail/@outlook/@firstmail/@rambler,包含有效邮箱 II 性别混合 II 拉丁名 II 使用混合 IP 注册 | 起价 $0.39 自动注册 TikTok 账号 II 1000+ 粉丝 II 邮箱验证,包含有效邮箱 II 性别混合 II 拉丁名 II 支持开播+可加链接 II 使用混合 IP 注册 | 起价 $2.5 自动注册 TikTok 账号 II 5000 粉丝 II 邮箱验证,包含有效邮箱 II 性别混合 II 拉丁名 II 支持开播+可加链接 II 使用混合 IP 注册 | 起价 $10 自动注册 TikTok 账号 II 10,000+ 粉丝 II 邮箱验证,包含有效邮箱 II 性别混合 II 拉丁名 II 支持开播+可加链接 II 使用混合 IP 注册 | 起价 $19 老号 (有/无粉丝) TikTok 高质量老号 | 年份:2022-2024 | 国家:混合 | 完整访问权限 (包含邮箱) | 起价 $0.35 TikTok 高质量老号 (粉丝数量 100-10,000 可选) | 年份:2022-2024 | 国家:混合 | 完整访问权限 (包含邮箱) | 起价 $0.89 TIKTOK 广告账号 TIKTOK 广告账号 | 区域:欧洲 | 预付 | 手工注册 | 邮箱访问 + Cookies + VAT 信息 | 起价 $1 TIKTOK 广告账号 | 区域:美国 | 预付 | 手工注册 | 邮箱访问 + Cookies + VAT 信息 | 起价 $1 TIKTOK 广告账号 | 区域:美国 | 企业认证 + 后付 | 手工注册 | 邮箱访问 + Cookies + VAT 信息 | 起价 $3.5 TIKTOK 广告账号 | 区域:欧洲 | 企业认证 + 后付 | 手工注册 | 邮箱访问 + Cookies + VAT 信息 | 起价 $3.5 TIKTOK 广告账号 | 区域:欧洲 | 后付+企业中心 | 3 个广告账户 + 1 个个人账户 | 可能包含 $20-$100 广告优惠券 | 手工注册 | 邮箱访问 + Cookies + VAT 信息 | 起价 $8 TIKTOK 广告账号 | 区域:美国 | 后付+企业中心 | 3 个广告账户 + 1 个个人账户 | 可能包含 $20-$100 广告优惠券 | 手工注册 | 邮箱访问 + Cookies + VAT 信息 | 起价 $8 老客户 – 额外 折扣 和 优惠码! 9–8 折 或 注册赠送 $1 如果您想获得注册赠送 $1 或首次购买享受 9–8 折优惠,可以留言: "SEND ME BONUS, MY USERNAME IS..." 您也可以在首次购买时使用优惠码: SOCNET (85 折优惠) 联系方式与支持: ➡ Telegram: https://t.me/socnet_support ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp: https://wa.me/79051904467 ➡ WhatsApp 频道: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n ➡ Discord: socnet_support ➡ Discord 服务器: https://discord.gg/y9AStFFsrh ➡ ✉ 邮箱: solomonbog@socnet.store 通过以上联系方式您还可以: — 咨询批发采购 — 建立合作关系 (当前合作伙伴: https://socnet.bgng.io/partners) — 成为我们的供应商 SocNet – 数字商品与高级订阅商店
    • 价格更新 – TikTok 账号与新产品. 在流量套利中,TikTok 账号起着关键作用。广告活动的成功以及套利者的收益直接取决于账号的质量。可靠且高质量的账号能够在推广中提供稳定性、信任和长期效果。 在我们这里,您只会找到经过验证的 TikTok 账号,适合开展广告投放、扩展受众和扩大收益。正确选择账号是高效套利的基础! 我们网上商店的完整产品目录: 账号: Telegram、Facebook、Reddit、Twitter (X)、Instagram、YouTube、TikTok、Discord、VK、LinkedIn、GitHub、Snapchat、Gmail、邮箱账号 (Outlook、Firstmail、Rambler、Onet、Gazeta、GMX、Yahoo、Proton、Web.de)、Google Voice、Google Ads 高级订阅: Telegram Premium、Twitter Premium X、YouTube Premium、Spotify Premium、Netflix Premium、Discord Nitro、ChatGPT Plus/PRO、XBOX Game Pass 附加服务: Telegram Stars、代理 (IPv4、IPv6、ISP、移动)、VPN (Outline、WireGuard 等)、VDS/RDP 服务器 优惠码: AUGUST2025 (九折优惠) 支付方式: 银行卡 · 加密货币 · 其他常用方式 相关链接: ➡ 网店: 点击 ➡ Telegram 机器人: 点击 ➡ SMM 面板: 点击 – 推广您的社交媒体账号 使用我们的 SMM 面板 可提升 Facebook、Instagram、Telegram、Spotify、Soundcloud、YouTube、Reddit、Threads、Kick、Discord、LinkedIn、Likee、VK、Twitch、Kwai、Reddit、网站流量、TikTok、Trust Pilot、Apple Music、Tripadvisor、Snapchat 及其他数字产品。 首次体验 SMM 面板可获得 1 美元:只需在 我们的网站 (支持) 提交工单,主题填写 “Get Trial Bonus”。 更新后的TikTok 账号种类与价格调整: TIKTOK 新账号 TikTok 蓝 V 认证账号 | 真实账号,拥有真实粉丝与互动 | 官方认证 | 当前价格: $2500 TikTok 高质量新自动注册账号 | 国家:美国和欧洲 | 完整访问权限 (包含邮箱) | 起价 $0.2 TIKTOK – 空号自动注册 II 通过 @RAMBLER.RU/@FIRSTMAIL 验证 II 包含邮箱,使用 RU IP 注册 | 起价 $0.1 自动注册 TikTok 账号 II 通过 rambler.ru 邮箱验证,包含邮箱 II 性别混合 II 拉丁名 II 空白资料 II 使用混合 IP 注册 | 起价 $0.1 粉丝账号 自动注册 TikTok 账号 II 100+ 粉丝 II 通过邮箱验证 @hotmail/@outlook/@firstmail/@rambler,包含有效邮箱 II 性别混合 II 拉丁名 II 使用混合 IP 注册 | 起价 $0.39 自动注册 TikTok 账号 II 1000+ 粉丝 II 邮箱验证,包含有效邮箱 II 性别混合 II 拉丁名 II 支持开播+可加链接 II 使用混合 IP 注册 | 起价 $2.5 自动注册 TikTok 账号 II 5000 粉丝 II 邮箱验证,包含有效邮箱 II 性别混合 II 拉丁名 II 支持开播+可加链接 II 使用混合 IP 注册 | 起价 $10 自动注册 TikTok 账号 II 10,000+ 粉丝 II 邮箱验证,包含有效邮箱 II 性别混合 II 拉丁名 II 支持开播+可加链接 II 使用混合 IP 注册 | 起价 $19 老号 (有/无粉丝) TikTok 高质量老号 | 年份:2022-2024 | 国家:混合 | 完整访问权限 (包含邮箱) | 起价 $0.35 TikTok 高质量老号 (粉丝数量 100-10,000 可选) | 年份:2022-2024 | 国家:混合 | 完整访问权限 (包含邮箱) | 起价 $0.89 TIKTOK 广告账号 TIKTOK 广告账号 | 区域:欧洲 | 预付 | 手工注册 | 邮箱访问 + Cookies + VAT 信息 | 起价 $1 TIKTOK 广告账号 | 区域:美国 | 预付 | 手工注册 | 邮箱访问 + Cookies + VAT 信息 | 起价 $1 TIKTOK 广告账号 | 区域:美国 | 企业认证 + 后付 | 手工注册 | 邮箱访问 + Cookies + VAT 信息 | 起价 $3.5 TIKTOK 广告账号 | 区域:欧洲 | 企业认证 + 后付 | 手工注册 | 邮箱访问 + Cookies + VAT 信息 | 起价 $3.5 TIKTOK 广告账号 | 区域:欧洲 | 后付+企业中心 | 3 个广告账户 + 1 个个人账户 | 可能包含 $20-$100 广告优惠券 | 手工注册 | 邮箱访问 + Cookies + VAT 信息 | 起价 $8 TIKTOK 广告账号 | 区域:美国 | 后付+企业中心 | 3 个广告账户 + 1 个个人账户 | 可能包含 $20-$100 广告优惠券 | 手工注册 | 邮箱访问 + Cookies + VAT 信息 | 起价 $8 老客户 – 额外 折扣 和 优惠码! 9–8 折 或 注册赠送 $1 如果您想获得注册赠送 $1 或首次购买享受 9–8 折优惠,可以留言: "SEND ME BONUS, MY USERNAME IS..." 您也可以在首次购买时使用优惠码: SOCNET (85 折优惠) 联系方式与支持: ➡ Telegram: https://t.me/socnet_support ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp: https://wa.me/79051904467 ➡ WhatsApp 频道: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n ➡ Discord: socnet_support ➡ Discord 服务器: https://discord.gg/y9AStFFsrh ➡ ✉ 邮箱: solomonbog@socnet.store 通过以上联系方式您还可以: — 咨询批发采购 — 建立合作关系 (当前合作伙伴: https://socnet.bgng.io/partners) — 成为我们的供应商 SocNet – 数字商品与高级订阅商店
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock