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

    • hello everyone! I am wanting to save the files (Ini. - Data - ) of the EP5 Client: Salvation... But they generate the error "corrupt files"... I tried several versions of L2FileEditor without good results. I need help! Thank you!
    • Opening December 6th at 19:00 (GMT +3)! Open Beta Test from November 30th!   https://l2soe.com/   🌟 Introducing L2 Saga of Eternia: A Revolution in Lineage 2 High Five! 🌟   Dear Lineage 2 enthusiasts, Prepare to witness the future of private servers! L2 Saga of Eternia is not just another High Five project—it’s a game-changing experience designed to compete with the giants of the Lineage 2 private server scene. Built for the community, by the community, we’re here to raise the bar in quality, innovation, and longevity. What Sets Us Apart? 💎 No Wipes, Ever Say goodbye to the fear of losing your progress. Our server is built to last and will never close. Stability and consistency are our promises to you. ⚔️ Weekly New Content Our dedicated development team ensures fresh challenges, events, and updates every week. From custom quests to exclusive features, there will always be something exciting to explore. 💰 No Pay-to-Win Skill and strategy matter most here. Enjoy a balanced gameplay environment where your achievements come from effort, not your wallet. 🌍 A Massive Community With 2000+ players expected, join a vibrant and active community of like-minded adventurers ready to conquer the world of Aden. 🏆 Fair and Competitive Gameplay Our systems are designed to promote healthy competition while avoiding abusive mechanics and exploits. 🔧 Professional Development From advanced bug fixes to carefully curated content, we pride ourselves on smooth performance, no lag, and unparalleled server quality. Key Features Chronicle: High Five with unique interface Rate: Dynamic x10 rates Class Balance: Carefully fine-tuned for a fair experience PvP Focused: PvP Ranking & aura display effect for 3 Top PvPers every week Custom Events: Seasonal and permanent events to keep you engaged Additional Features:   Custom Endgame Content: Introduce unique dungeons, raids, or zones unavailable in other servers. Player-Driven Economy: Implement a strong market system and avoid overinflated drops or rewards. Epic Siege Battles: Announce special large-scale sieges and PvP events. Incentives for Streamers and Clans: Attract influencers and big clans to boost server publicity. Roadmap Transparency: Share a public roadmap of planned updates to build trust and excitemen   Here you can read all the features: https://l2soe.com/features   Video preview: Join the Revolution! This is your chance to be part of something legendary. L2 Saga of Eternia is not just a server; it’s a movement to redefine what Lineage 2 can be. Whether you’re a seasoned veteran or a newcomer to the world of Aden, we invite you to experience Lineage 2 at its finest.   Official Launch Date: December 6th 2024 Website: https://l2soe.com/ Facebook: https://www.facebook.com/l2soe Discord: https://discord.com/invite/l2eternia   Let’s build the ultimate Lineage 2 experience together. See you in-game! 🎮
    • That's like a tutorial on how to run l2 on MacOS Xd but good job for the investigation. 
    • small update: dc robe set sold   wts adena 1kk = 1.5$ 
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hood-services https://campsite.bio/utchihaamkt
  • Topics

×
×
  • Create New...