Jump to content

12 Anos Online! 🎂


⭐ Parcerias





⚔️ Servers Apoiadores



🎁 Ofertas







  • 0

SVN L2J FROZEN 1118 V1


Question

9 answers to this question

Recommended Posts

  • 0
Em 29/03/2018 at 14:37, ploploki disse:

como assim ?

Pode verificar no site oficial kkk
https://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-dug-checkout.html

Checkout.png

Deixando DICADO a opção "HEAD revision" ira fazer download da revisão, sempre atual.
Deixando DICADO a opção "Revision" tente colocar na caixa ao lado 1118
Clique em OK seja feliz com a REVISION desejada.

Acho que era mais ou menos isto que um profissional e entendedor sobre o assunto iria tentar te mostrar para uma maior
compreensão como o @Tayran.JavaDev

Edited by VoraDor

Si vis pacem, para bellum!

Link to post
Share on other sites
  • 0

como criar um repository gratuito o meu n parece a revisao 1118

nao encontro o TortoiseSVN nao consigo add um repository

VoicedCommandHandler.java pra pode add o

head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java

fala revision 1118 no meu so vai ate o 1117

https://i.imgur.com/0JLSSKk.png

### Eclipse Workspace Patch 1.0
#P GameServer
Index: head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java    (revision 1118)
+++ head-src/com/l2jfrozen/gameserver/handler/VoicedCommandHandler.java    (working copy)
@@ -31,10 +31,13 @@
 import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.AwayCmd;
 import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.BankingCmd;
 import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.CTFCmd;
+import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.CastleManagersVCmd;
 import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.DMCmd;
 import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.FarmPvpCmd;
+import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Menu;
 import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.OfflineShop;
 import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Online;
+import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.Raid;
 import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.StatsCmd;
 import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.TvTCmd;
 import com.l2jfrozen.gameserver.handler.voicedcommandhandlers.VersionCmd;
@@ -121,6 +124,10 @@
             registerVoicedCommandHandler(new OfflineShop());
         }
         
+        registerVoicedCommandHandler(new Raid());
+        registerVoicedCommandHandler(new CastleManagersVCmd());
+        registerVoicedCommandHandler(new Menu());
+        
         LOGGER.info("VoicedCommandHandler: Loaded " + _datatable.size() + " handlers.");
         
     }
Index: head-src/com/l2jfrozen/gameserver/model/actor/stat/PcStat.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/model/actor/stat/PcStat.java    (revision 1118)
+++ head-src/com/l2jfrozen/gameserver/model/actor/stat/PcStat.java    (working copy)
@@ -60,7 +60,10 @@
         // Player is Gm and access level is below or equal to canGainExp and is in party, don't give Xp
         if (!getActiveChar().getAccessLevel().canGainExp() && getActiveChar().isInParty())
             return false;
-        
+
+        if (activeChar.cantGainXP())
+            return false;

         if (!super.addExp(value))
             return false;
         
@@ -105,7 +108,10 @@
         L2PcInstance activeChar = getActiveChar();
         if (!activeChar.getAccessLevel().canGainExp() && activeChar.isInParty())
             return false;
-        
+
+        if (activeChar.cantGainXP())
+            return false;

         // if this player has a pet that takes from the owner's Exp, give the pet Exp now
         
         if (activeChar.getPet() instanceof L2PetInstance)
Index: head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BlessedSpiritShot.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BlessedSpiritShot.java    (revision 1118)
+++ head-src/com/l2jfrozen/gameserver/handler/itemhandlers/BlessedSpiritShot.java    (working copy)
@@ -141,8 +141,9 @@
         
         // Send message to client
         activeChar.sendPacket(new SystemMessage(SystemMessageId.ENABLED_SPIRITSHOT));
-        Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, activeChar, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/* 600 */);
-        
+        if (!activeChar.isSSDisabled())
+            Broadcast.toSelfAndKnownPlayersInRadius(activeChar, new MagicSkillUser(activeChar, activeChar, SKILL_IDS[weaponGrade], 1, 0, 0), 360000/*600*/);
+             
         activeChar = null;
         weaponInst = null;
         weaponItem = null;
Index: head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestJoinParty.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestJoinParty.java    (revision 1118)
+++ head-src/com/l2jfrozen/gameserver/network/clientpackets/RequestJoinParty.java    (working copy)
@@ -79,7 +79,13 @@
             requestor.sendMessage("You can't invite that player in party: you or your target are in Event");
             return;
         }
-        
+         
+        if (target.isPartyInvProt())
+        {
+            requestor.sendMessage("You can't invite that player because he is in party protection.");
+            return;
+        }
+              
         if (target.isInParty())
         {
             final SystemMessage msg = new SystemMessage(SystemMessageId.S1_IS_ALREADY_IN_PARTY);
Index: head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/Raid.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/Raid.java    (revision 0)
+++ head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers/Raid.java    (working copy)
@@ -0,0 +1,92 @@
+package com.l2jfrozen.gameserver.handler.voicedcommandhandlers;
+
+import javolution.text.TextBuilder;
+
+import org.apache.log4j.Logger;
+
+import com.l2jfrozen.Config;
+import com.l2jfrozen.gameserver.datatables.sql.NpcTable;
+import com.l2jfrozen.gameserver.handler.IVoicedCommandHandler;
+import com.l2jfrozen.gameserver.managers.GrandBossManager;
+import com.l2jfrozen.gameserver.managers.RaidBossSpawnManager;
+import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
+import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage;
+import com.l2jfrozen.gameserver.powerpak.RaidInfo.RaidInfoHandler;
+import com.l2jfrozen.gameserver.templates.L2NpcTemplate;
+import com.l2jfrozen.gameserver.templates.StatsSet;
+
+public class Raid implements IVoicedCommandHandler
+{
+    private static Logger LOGGER = Logger.getLogger(RaidInfoHandler.class);
+    private static final String[] _voicedCommands = 
+    {
+        "Raids"
+    };
+    
+    @Override
+    public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
+    {
+        TextBuilder tb = new TextBuilder();
+        NpcHtmlMessage msg = new NpcHtmlMessage(5);
+        tb.append("<html><title>Grand Boss</title><body><br><center>");
+        tb.append("<img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><br>");
+
+        for (final int boss : Config.RAID_INFO_IDS_LIST)
+        {
+            String name = "";
+            L2NpcTemplate template = null;
+            if ((template = NpcTable.getInstance().getTemplate(boss)) != null)
+            {
+                name = template.getName();
+            }
+            else
+            {
+                LOGGER.warn("[RaidInfoHandler][sendInfo] Raid Boss with ID " + boss + " is not defined into NpcTable");
+                continue;
+            }
+            
+            StatsSet actual_boss_stat = null;
+            GrandBossManager.getInstance().getStatsSet(boss);
+            long delay = 0;
+            
+            if (NpcTable.getInstance().getTemplate(boss).type.equals("L2RaidBoss"))
+            {
+                actual_boss_stat = RaidBossSpawnManager.getInstance().getStatsSet(boss);
+                if (actual_boss_stat != null)
+                    delay = actual_boss_stat.getLong("respawnTime");
+            }
+            else if (NpcTable.getInstance().getTemplate(boss).type.equals("L2GrandBoss"))
+            {
+                actual_boss_stat = GrandBossManager.getInstance().getStatsSet(boss);
+                if (actual_boss_stat != null)
+                    delay = actual_boss_stat.getLong("respawn_time");
+            }
+            else
+                continue;
+            
+            if (delay <= System.currentTimeMillis())
+            {
+                tb.append("<font color=\"00C3FF\">" + name + "</color>: " + "<font color=\"9CC300\">Is Alive</color>" + "<br1>");
+            }
+            else
+            {
+                final int hours = (int) ((delay - System.currentTimeMillis()) / 1000 / 60 / 60);
+                final int mins = (int) (((delay - (hours * 60 * 60 * 1000)) - System.currentTimeMillis()) / 1000 / 60);
+                final int seconts = (int) (((delay - ((hours * 60 * 60 * 1000) + (mins * 60 * 1000))) - System.currentTimeMillis()) / 1000);
+                tb.append("<font color=\"00C3FF\">" + name + "</color>" + "<font color=\"FFFFFF\">" + " " + "Respawn in :</color>" + " " + " <font color=\"32C332\">" + hours + " : " + mins + " : " + seconts + "</color><br1>");
+            }
+        }
+                
+        tb.append("<br><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br>");
+        tb.append("</center></body></html>

Edited by tutucaleandro
Link to post
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
Answer this question...

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

Loading...
×
×
  • Create New...