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...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • (3241-100)/9 = 349 online xD     WHAT I WILL SEE ON NEW SEASON ? *Free VIP characters for everyone for first 3 days after opening ! Unique augmentation trade/sell system (NEW PATCH V3.2). Improved server stability. No more lagg / dc. Pvp map area HIDE Names/clans unique system. Big changes on augmentation system.  rotfl Lucky fortune monsters on levelling area with 10min spawn. Also we will try to push longer seasons ever !  HAHAHAHAHAHA XD Increased giran trading area for sell. New raid boss events in coliseum. Fixed reflect damage skills. New raid boss banshee. Fixed pvp area flag issues. Fixed castle siege pray issues. New pvp map in sea of spores. Increased all mob drops rate by +20%. And much more...   Augment diammond 100% 3x winter xDD   And now the best part   HAHAHAH 1-10 random level LS Augment Also we will try to push longer seasons ever !  HAHAHAHAHAHA XD   GRAND START FROM - 15/08/2025, FRIDAY, 20:00 +3 GMT ! GRAND OPENING FROM - 10/10/2025, FRIDAY, 20:00 +3 GRAND OPENING FROM - 05 DECEMBER 2025, FRIDAY, 20:00 +2 GMT ! GRAND OPENING FROM - 12/052025, FRIDAY, 20:00 +3 GMT ! GRAND OPENING FROM - 23 JANUARY 2026, FRIDAY, 20:00 +2 GMT ! WIPE ! NEW SEASON GRAND OPENING FROM TODAY ! - 23/01/2026, FRIDAY, 20:00 +3 GMT ! OPENING TODAY !!! FROM - 06/03/2026, FRIDAY, 20:00 +3 GMT !   1. When wipe?  2. When will there be any response to the allegations? 3. When will they stop deceiving players with the actual number of players online? 4. When change server name to L2][Wipe the best waste Time][Money?
    • Don't spam my post again. Do you need attention? That guy doesn't work at L2Devs, he's not a programmer, and I've never spoken to him. You should respond to the people you scammed. Regards!
    • “WRONG EMAIL – AND EVERYTHING FALLS APART.” ▪ Requests are different. Sometimes a task takes three days, sometimes thirty minutes. ▪ Recently a regular client contacted us. The account had one e-mail, but another one was required for a specific service. ▪ The screenshot was sent immediately. Task – carefully replace the e-mail in the document so that everything looks natural and leaves no editing traces. ▪ Small details like this are often underestimated. › What usually happens: – one symbol in the e-mail doesn’t match – the system starts checking metadata – questions appear about the file origin – the document goes to additional verification ▪ We simply did it properly: the e-mail matches, the file structure remained intact, the document looks original. ▪ Sometimes a good result is not “magic”, but precision in details. ▪ If your document were checked right now – are you sure there are no small details that could ruin everything? › TG: https://t.me/mustang_service ( https:// t.me/ mustang_service ) › Channel: https://t.me/+JPpJCETg-xM1NjNl ( https:// t.me/ +JPpJCETg-xM1NjNl ) #documentdesign #verification #documents #case #antifraud
    • Skylord  = L2Gold.eu ;   Skylord is the programmer at L2Devs. Look what he posted in my thread. I reported him, and they automatically deleted his post and closed my thread.   They need to trick people into buying this garbage.   You can safely use this extender:   https://maxcheaters.com/topic/253977-%F0%9F%94%A5-l2ext-custom-interlude-vang-%E2%80%93-2026-release/  
    • 💙 PRIDE ESSENCE X1  ✅ Start: 14.03.2026  ✅ UPDATE: SAMURAI CROW  ✅ ONLINE: 2000+  💜 NO P2W / BIG CLANS / INTERNATIONAL COMMUNITY / STAGE SYSTEM  🎮 Discord bonus: https://discord.gg/prideessence Pride Essence Official Server Wiki Here you can find all features, systems, and detailed information to fully understand the server.   - General Features - https://prideessence.club/general-features - Road Map - https://prideessence.club/roadmap/ - Class Balance – 14/03 - https://prideessence.club/class-balance-14-03/ - Referral System - https://prideessence.club/referral-system/ - Party Synergy System - https://prideessence.club/party-synergy-system/ - Dual Class System - https://prideessence.club/dual-class-system-3/ - Premium Account - https://prideessence.club/premium-account/ - Game Store - https://prideessence.club/game-store/ - L-Coin Store - https://prideessence.club/l-coin-store/ - Command Channel Skill Availability - https://prideessence.club/command-channel-skill-availability/ - Clan DKP System - https://prideessence.club/clan-dkp-system/ - Target Priority System - https://prideessence.club/target-priority-system/ - Skins - https://prideessence.club/skins/ - Players Inspect - https://prideessence.club/players-inspect/ - Gear Score Ranking - https://prideessence.club/gear-score-ranking/ - Guaranteed Enchant System - https://prideessence.club/guaranteed-enchant-system/ - Account Shield - https://prideessence.club/account-shield/ - VIP Level Ranking - https://prideessence.club/vip-level-ranking/ - Tournament - https://prideessence.club/tournament-2/ - Fortress Siege - https://prideessence.club/fortress-siege/ - Olympiad - https://prideessence.club/olympiad/ - Enchant and Compound Limit - https://prideessence.club/enchant-and-compound-limit/ - Enchant Rates - https://prideessence.club/enchant-rates/ - Pride World Marketplace - https://prideessence.club/pride-world-marketplace/ - Raid Boss Lootbox - https://prideessence.club/raid-boss-lootbox/
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..