Jump to content

[Share]Enterworld with social action and fireworks


DominiQue

Recommended Posts

Index: java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java

===================================================================

--- java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (revision 73)

+++ java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java (working copy)

@@ -64,6 +64,7 @@

import net.sf.l2j.gameserver.network.serverpackets.GameGuardQuery;

import net.sf.l2j.gameserver.network.serverpackets.HennaInfo;

import net.sf.l2j.gameserver.network.serverpackets.ItemList;

+import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUser;

import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage;

import net.sf.l2j.gameserver.network.serverpackets.PledgeShowMemberListAll;

import net.sf.l2j.gameserver.network.serverpackets.PledgeShowMemberListUpdate;

@@ -72,6 +73,7 @@

import net.sf.l2j.gameserver.network.serverpackets.QuestList;

import net.sf.l2j.gameserver.network.serverpackets.ShortCutInit;

import net.sf.l2j.gameserver.network.serverpackets.SignsSky;

+import net.sf.l2j.gameserver.network.serverpackets.SocialAction;

import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;

import net.sf.l2j.gameserver.network.serverpackets.UserInfo;

import net.sf.l2j.gameserver.util.FloodProtector;

@@ -262,7 +264,21 @@

        {

        activeChar.getAppearance().setTitleColor(Config.TITLE_COLOR);

        }

+       

+ activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));//Victory Social Action.

+ MagicSkillUser  MSU = new MagicSkillUser(activeChar, activeChar, 2024, 1, 1, 0);//Fireworks Display

+ activeChar.broadcastPacket(MSU);

+            

        SevenSigns.getInstance().sendCurrentPeriodMsg(activeChar);

        Announcements.getInstance().showAnnouncements(activeChar);

Credits : me

Link to comment
Share on other sites

Bad idea for servers with big online count, for example think about people in giran with low hardware.

here u are right,but for pvp servers with 50-100pll its ok :P

Link to comment
Share on other sites

Bad idea for servers with big online count, for example think about people in giran with low hardware.

Yes, but it will be nice for the new chars!

example:      

  if (activeChar.getLevel() <= 40 )
       			{
           activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));//Victory Social Action.
           MagicSkillUser  MSU = new MagicSkillUser(activeChar, activeChar, 2024, 1, 1, 0);//Fireworks Display
           activeChar.broadcastPacket(MSU);
       			}

Link to comment
Share on other sites

Yes, but it will be nice for the new chars!

example:     

  if (activeChar.getLevel() <= 40 )
        			{
            activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));//Victory Social Action.
            MagicSkillUser  MSU = new MagicSkillUser(activeChar, activeChar, 2024, 1, 1, 0);//Fireworks Display
            activeChar.broadcastPacket(MSU);
        			}

That will be nice ;D

Link to comment
Share on other sites

Yes, but it will be nice for the new chars!

example:      

  if (activeChar.getLevel() <= 40 )
       			{
           activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));//Victory Social Action.
           MagicSkillUser  MSU = new MagicSkillUser(activeChar, activeChar, 2024, 1, 1, 0);//Fireworks Display
           activeChar.broadcastPacket(MSU);
       			}

 

Hmm now its better idea, but in my opinion it would be the best only for players with newbie status.

 

But never mind, everyone can do it as they wish.

Link to comment
Share on other sites

Nice share, will add on my server :>

OMG!! NICE SHARE.... I will put in my server OFC! I love you!!!

 

BTW i will put something like

 

+       

+      activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 1));

+      activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 2));

+      activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 3));//Victory Social Action.

+      activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 4));

+      activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 5));

+      activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 6));

+      MagicSkillUser  MSU = new MagicSkillUser(activeChar, activeChar, 2024, 1, 1, 0);//Fireworks Display

+      activeChar.broadcastPacket(MSU);

 

 

Link to comment
Share on other sites

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.




×
×
  • Create New...