Jump to content

[Share][IL]Fireworks & Social Action (victory) When Login! & Enchant Announce...


Recommended Posts

Posted

Hey MxC Iam Newbie On Java And I Make Two Easy Codes... I Dont Know If The Codes is sucks..But Work! Or Already Posted..

Lets Start


Fireworks & Social Action (victory) When Login ->


Config.java


public static boolean SOCIAL_ACTION_ON_LOGIN;


SOCIAL_ACTION_ON_LOGIN = Boolean.parseBoolean(configname.getProperty("SocialActionOnLogin", "False"));


EnterWorld.java


				if (Config.SOCIAL_ACTION_ON_LOGIN)
	{
	activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));
	MagicSkillUser MSU = new MagicSkillUser(activeChar, activeChar, 2025, 1, 1, 0);
	activeChar.sendPacket(MSU);
	activeChar.broadcastPacket(MSU);
	}


configname.Properties


# On Login Players get social action (victory) & Fire Works when login
# Default: False
SocialActionOnLogin = False


Enchant Level Announce... This Code Announce When One Player Enchant A Item By The Config in enchant level


Config.java


public static int ENCHANT_LEVEL_ANNOUNCE;
public static int ENCHANT_ANNOUNCE;


		ENCHANT_LEVEL_ANNOUNCE = Integer.parseInt(ENCHANTSetting.getProperty("EnchantLevelAnnounce", "15"));
		ENCHANT_ANNOUNCE = Integer.parseInt(ENCHANTSetting.getProperty("EnchantAnnounce", "16"));


RequestEnchantItem.java


net.sf.l2j.gameserver.Announcements;



if(item.getEnchantLevel() == 0)
			{
				sm = new SystemMessage(SystemMessageId.S1_SUCCESSFULLY_ENCHANTED);
				sm.addItemName(item.getItemId());
				activeChar.sendPacket(sm);
+										{
+											if (item.getEnchantLevel() == Config.ENCHANT_LEVEL_ANNOUNCE)
+										    {
+												
+											
+													Announcements.getInstance().announceToAll("Congratulations," + +activeChar.getName() + " successful enchanted " + item.getItem() + " + " + Config.ENCHANT_ANNOUNCE);
+												
+						
+											 
+								        }
+											}
+}



sm = new SystemMessage(SystemMessageId.S1_S2_SUCCESSFULLY_ENCHANTED);
				sm.addNumber(item.getEnchantLevel());
				sm.addItemName(item.getItemId());
				activeChar.sendPacket(sm);
+										{
+												if (item.getEnchantLevel() == Config.ENCHANT_LEVEL_ANNOUNCE)
+											    {
+																										
+				Announcements.getInstance().announceToAll("Congratulations, " + activeChar.getName() + " successful enchanted " + +item.getItem() + " + " + Config.ENCHANT_ANNOUNCE);													
+																		 
+										        }
+
+										}
+				}

			item.setEnchantLevel(item.getEnchantLevel() + Config.CUSTOM_ENCHANT_VALUE);
			item.updateDatabase();
		}


configname.Properties


# Announce When a Item Will Be Enchanted By The Config!
# HOW WORKS: if you set EnchantLevelAnnounce it to 15, and EnchantAnnounce to 16
# Will Be ANNOUNCE Congratulations,*Players Name* successful enchated  *itemname* + 16
# When Player Will Be Enchated +16 One Item...
EnchantLevelAnnounce = 15
EnchantAnnounce = 16

Some Pictures Here....


11cfodi.jpg


156tzza.jpg


Credits Me

Sorry For My Bad English

Guest Elfocrash
Posted

The Fireworks and social action is already shared but the announcement on enchant is not and it's a cool code.

 

Thanks for sharing.Keep it up

Posted

The Fireworks and social action is already shared but the announcement on enchant is not and it's a cool code.

 

Thanks for sharing.Keep it up

Oh I Say The True I Dont Search For The Code "already shared" but never mind!

Thnx! Very Much

Posted

Where did you find it's not yours.

O_O Try To Spam and Flame More and More and More i dont find it anywhere its not hard to make this codes ....

and as i say

Credits Me

 

Posted

O_O Try To Spam and Flame More and More and More i dont find it anywhere its not hard to make this codes ....

and as i say

I don't care what you write since all of yours share's are stolen.
Posted

I don't care what you write since all of yours share's are stolen.

+ 1 I Dont Care About What You Say :) Out of My Topic.. You Just Spam IF YOU BELIEVE Its Stolen Just you can say it one time and then shut the fack up!

Posted

Stop it guys. Mele if it isn't yours you should put the correct credits.

First i dont start anything and I Made This codes LoL! Becuase krash is immature Its not my fault!

Posted

I had some problems . But now i it works :

 

1. I think you must add import com.l2jserver.gameserver.Announcements;

 

2. There is an error : Announcements.getInstance().announceToAll("Congratulations," + +activeChar.getName() + " successful enchanted " + item.getItem() + " + " + Config.ENCHANT_ANNOUNCE);

 

You must cut this + .

 

Nice share !

Posted

Right. The code is from L2J Frozen and the fireworks and crap are included features on it.

Some Moderator  Punish Spammers & Clean Topic :S

L2JFrozen Have A Different Code And Only The First Log Character Have Effects of Firework *only*

:) so you can stop spam!

I had some problems . But now i it works :

 

1. I think you must add import com.l2jserver.gameserver.Announcements;

 

2. There is an error : Announcements.getInstance().announceToAll("Congratulations," + +activeChar.getName() + " successful enchanted " + item.getItem() + " + " + Config.ENCHANT_ANNOUNCE);

 

You must cut this + .

 

Nice share !

yep you have right!

Sorry Import Added!

  • 3 weeks later...
Posted

I did the social action and fireworks about 1 year ago...

Where , here?

I Dont Know Man..

I Dont Know If The Codes is sucks..But Work! Or Already Posted..

And i Dont copy / paste.. yours if you have share it dunno :D

  • 1 month 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

    • Same account Shillien Knight lvl 57 , AVADON HEAVY SET , JEWLERY B. Prophet lvl 57 , C grade armor. I sell both because on same email , different subaccounts   190E  
    • ⚡️ Fast onboarding without compliance; 💰 Clear fees, no RR; 📆 Weekly payouts in USDT. ✅ We accept: adult, dating, nutra, IPTV, VPN, and other stable projects; ❌ We do not work with startups, showcase sites, or black-hat schemes.   https://laucharge.com/creditcard  
    • 亲爱的 SocNet 服务用户! 我们正在积极寻找以下商品的供应商: — Snapchat 旧的和新的账号 | 带分数 (snapscores) | 地区:欧洲/美国 | 邮箱/手机号完全访问 — Reddit 旧账号(暴力破解或被盗来源,自注册)| 拥有帖子和评论业力 100 到 100,000+ | 附带邮箱完全访问 — LinkedIn 旧账号,带真实连接 (connections) | 地区:欧洲/美国 | 邮箱完全访问 + 有效的双重验证密码 — Instagram 旧账号 (2010-2023 年) | 邮箱完全访问(可能还包含已连接的双重验证密码) — Facebook 旧账号 (2010-2023 年) | 邮箱完全访问(可能还包含已连接的双重验证密码) | 有好友或无好友 | 地区:欧洲/美国/亚洲 — Threads 账号 | 邮箱完全访问(可能还包含已连接的双重验证密码) — TikTok/Facebook/Google ADS 广告代理账号 请通过以下联系方式联系我们 —— 我们将讨论合作条件! 我们也始终欢迎其他合作伙伴关系的提议。 联系方式和支持: ➡ Telegram: https://t.me/socnet_support ✅ ➡ WhatsApp: https://wa.me/79051904467 ✅ ➡ Discord: socnet_support ✅ ➡ ✉ 邮箱: solomonbog@socnet.store ✅ 相关链接: 数字商品商店 (网站): 前往 购买 Telegram Stars 的 Telegram 机器人: 前往 SMM 面板: 前往 – 推广您的社交媒体账号。 商店 Telegram 机器人: 前往 我们想向您介绍当前在我们服务中购买商品和服务的促销和特价优惠清单: 1. 使用优惠码 SEPTEMBER2025 (9 月份购物 9 折)在我们的商店(网站、机器人)购买!首次购买还可使用优惠码 SOCNET (85 折)。 2. 获得 $1 商店余额或 10-20% 折扣,只需在我们网站注册后写下您的用户名,格式如下:"SEND ME BONUS, MY USERNAME IS..." —— 需要在我们的论坛帖子中提交! 3. 获得 $1 SMM 面板首次试用奖励:只需在我们的网站(支持)提交一个主题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和购买星星的机器人中发放 Telegram Stars! 新闻资源: ➡ Telegram 频道: https://t.me/accsforyou_shop ✅ ➡ WhatsApp 频道: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n ✅ ➡ Discord 服务器: https://discord.gg/y9AStFFsrh ✅ 通过这些联系方式您还可以: — 获取批发采购咨询 — 建立合作伙伴关系(现有合作伙伴: https://socnet.bgng.io/partners) — 成为我们的供应商 SocNet —— 数字商品和高级订阅商店
    • 亲爱的 SocNet 服务用户! 我们正在积极寻找以下商品的供应商: — Snapchat 旧的和新的账号 | 带分数 (snapscores) | 地区:欧洲/美国 | 邮箱/手机号完全访问 — Reddit 旧账号(暴力破解或被盗来源,自注册)| 拥有帖子和评论业力 100 到 100,000+ | 附带邮箱完全访问 — LinkedIn 旧账号,带真实连接 (connections) | 地区:欧洲/美国 | 邮箱完全访问 + 有效的双重验证密码 — Instagram 旧账号 (2010-2023 年) | 邮箱完全访问(可能还包含已连接的双重验证密码) — Facebook 旧账号 (2010-2023 年) | 邮箱完全访问(可能还包含已连接的双重验证密码) | 有好友或无好友 | 地区:欧洲/美国/亚洲 — Threads 账号 | 邮箱完全访问(可能还包含已连接的双重验证密码) — TikTok/Facebook/Google ADS 广告代理账号 请通过以下联系方式联系我们 —— 我们将讨论合作条件! 我们也始终欢迎其他合作伙伴关系的提议。 联系方式和支持: ➡ Telegram: https://t.me/socnet_support ✅ ➡ WhatsApp: https://wa.me/79051904467 ✅ ➡ Discord: socnet_support ✅ ➡ ✉ 邮箱: solomonbog@socnet.store ✅ 相关链接: 数字商品商店 (网站): 前往 购买 Telegram Stars 的 Telegram 机器人: 前往 SMM 面板: 前往 – 推广您的社交媒体账号。 商店 Telegram 机器人: 前往 我们想向您介绍当前在我们服务中购买商品和服务的促销和特价优惠清单: 1. 使用优惠码 SEPTEMBER2025 (9 月份购物 9 折)在我们的商店(网站、机器人)购买!首次购买还可使用优惠码 SOCNET (85 折)。 2. 获得 $1 商店余额或 10-20% 折扣,只需在我们网站注册后写下您的用户名,格式如下:"SEND ME BONUS, MY USERNAME IS..." —— 需要在我们的论坛帖子中提交! 3. 获得 $1 SMM 面板首次试用奖励:只需在我们的网站(支持)提交一个主题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和购买星星的机器人中发放 Telegram Stars! 新闻资源: ➡ Telegram 频道: https://t.me/accsforyou_shop ✅ ➡ WhatsApp 频道: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n ✅ ➡ Discord 服务器: https://discord.gg/y9AStFFsrh ✅ 通过这些联系方式您还可以: — 获取批发采购咨询 — 建立合作伙伴关系(现有合作伙伴: https://socnet.bgng.io/partners) — 成为我们的供应商 SocNet —— 数字商品和高级订阅商店
    • 亲爱的 SocNet 服务用户! 我们正在积极寻找以下商品的供应商: — Snapchat 旧的和新的账号 | 带分数 (snapscores) | 地区:欧洲/美国 | 邮箱/手机号完全访问 — Reddit 旧账号(暴力破解或被盗来源,自注册)| 拥有帖子和评论业力 100 到 100,000+ | 附带邮箱完全访问 — LinkedIn 旧账号,带真实连接 (connections) | 地区:欧洲/美国 | 邮箱完全访问 + 有效的双重验证密码 — Instagram 旧账号 (2010-2023 年) | 邮箱完全访问(可能还包含已连接的双重验证密码) — Facebook 旧账号 (2010-2023 年) | 邮箱完全访问(可能还包含已连接的双重验证密码) | 有好友或无好友 | 地区:欧洲/美国/亚洲 — Threads 账号 | 邮箱完全访问(可能还包含已连接的双重验证密码) — TikTok/Facebook/Google ADS 广告代理账号 请通过以下联系方式联系我们 —— 我们将讨论合作条件! 我们也始终欢迎其他合作伙伴关系的提议。 联系方式和支持: ➡ Telegram: https://t.me/socnet_support ✅ ➡ WhatsApp: https://wa.me/79051904467 ✅ ➡ Discord: socnet_support ✅ ➡ ✉ 邮箱: solomonbog@socnet.store ✅ 相关链接: 数字商品商店 (网站): 前往 购买 Telegram Stars 的 Telegram 机器人: 前往 SMM 面板: 前往 – 推广您的社交媒体账号。 商店 Telegram 机器人: 前往 我们想向您介绍当前在我们服务中购买商品和服务的促销和特价优惠清单: 1. 使用优惠码 SEPTEMBER2025 (9 月份购物 9 折)在我们的商店(网站、机器人)购买!首次购买还可使用优惠码 SOCNET (85 折)。 2. 获得 $1 商店余额或 10-20% 折扣,只需在我们网站注册后写下您的用户名,格式如下:"SEND ME BONUS, MY USERNAME IS..." —— 需要在我们的论坛帖子中提交! 3. 获得 $1 SMM 面板首次试用奖励:只需在我们的网站(支持)提交一个主题为 “Get Trial Bonus” 的工单。 4. 每周在我们的 Telegram 频道和购买星星的机器人中发放 Telegram Stars! 新闻资源: ➡ Telegram 频道: https://t.me/accsforyou_shop ✅ ➡ WhatsApp 频道: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n ✅ ➡ Discord 服务器: https://discord.gg/y9AStFFsrh ✅ 通过这些联系方式您还可以: — 获取批发采购咨询 — 建立合作伙伴关系(现有合作伙伴: 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