Jump to content

Recommended Posts

Posted

Description

Allows you to configure the effect to Trade Players in Offline Mode.

 

Effects (the same order of images):

1 Bleed

2 Poison

3 Confusion

4 Silence

5 Sleep

6 Root

7 Petrification

8 Big Head

9 Flame

10 Fire Root Stun

11 Stealth

12 Imprisioning

 

5KXf9.jpg

 

Index: config/fun/offline.properties

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

--- config/fun/offline.properties (revision 7)

+++ config/fun/offline.properties (working copy)

@@ -12,6 +12,7 @@

 

# If set to True, name color will be changed then entering offline mode

OfflineNameColorEnable = False

+

# Color of the name in offline mode (if OfflineNameColorEnable = True)

OfflineNameColor = ff00ff

 

@@ -18,8 +19,27 @@

# After Server Restart or Shutdown, all players in Offline mode will be auto logged.

# Enable -> true, Disable -> false

RestoreOffliners=false

+

# Max Days after no auto relog.

OfflineMaxDays=0

+

# If a player finish to sell/buy he will be kicked from the Server.

# Enable -> true, Disable -> false

-OfflineDisconnectFinished=false

\ No newline at end of file

+OfflineDisconnectFinished=false

+

+# -----------------------------------------

+# Offline Effect -

+# -----------------------------------------

+# Add effect when entering offline mode.

+# Default: False

+OfflineTradeEffect = False

+

+# The effect that will be shown by players in offline mode.

+# Use:

+# - 1 Bleed      | 7  Petrification  - #

+# - 2 Poison      | 8  Big Head      - #

+# - 3 Confusion  | 9  Flame          - #

+# - 4 Silence    | 10 Fire Root Stun - #

+# - 5 Sleep      | 11 Stealth        - #

+# - 6 Root        | 12 Imprisioning  - #

+OfflineEffectId = 5

Index: head-src/com/l2jfrozen/Config.java

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

--- head-src/com/l2jfrozen/Config.java (revision 7)

+++ head-src/com/l2jfrozen/Config.java (working copy)

@@ -2402,6 +2413,9 @@

public static int OFFLINE_MAX_DAYS;

public static boolean OFFLINE_DISCONNECT_FINISHED;

 

+    public static boolean OFFLINE_TRADE_EFFECT;

+ public static int OFFLINE_EFFECT_ID;

+

//============================================================

public static void loadOfflineConfig()

{

@@ -2422,7 +2436,9 @@

RESTORE_OFFLINERS = Boolean.parseBoolean(OfflineSettings.getProperty("RestoreOffliners", "false"));

OFFLINE_MAX_DAYS = Integer.parseInt(OfflineSettings.getProperty("OfflineMaxDays", "10"));

OFFLINE_DISCONNECT_FINISHED = Boolean.parseBoolean(OfflineSettings.getProperty("OfflineDisconnectFinished", "true"));

-

+

+ OFFLINE_TRADE_EFFECT = Boolean.parseBoolean(OfflineSettings.getProperty("OfflineTradeEffect", "False"));

+ OFFLINE_EFFECT_ID = Integer.parseInt(OfflineSettings.getProperty("OfflineEffectId", "1"));

}

catch(Exception e)

{

Index: head-src/com/l2jfrozen/gameserver/datatables/OfflineTradeTable.java

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

--- head-src/com/l2jfrozen/gameserver/datatables/OfflineTradeTable.java (revision 7)

+++ head-src/com/l2jfrozen/gameserver/datatables/OfflineTradeTable.java (working copy)

@@ -19,8 +19,6 @@

package com.l2jfrozen.gameserver.datatables;

 

/**

- *

- *

  * @author Enzo

  */

 

@@ -32,6 +30,7 @@

import java.util.logging.Logger;

 

import com.l2jfrozen.Config;

+import com.l2jfrozen.gameserver.model.L2Character;

import com.l2jfrozen.gameserver.model.L2ManufactureItem;

import com.l2jfrozen.gameserver.model.L2ManufactureList;

import com.l2jfrozen.gameserver.model.L2World;

@@ -44,8 +43,6 @@

import com.l2jfrozen.util.CloseUtil;

import com.l2jfrozen.util.database.L2DatabaseFactory;

 

-

-

public class OfflineTradeTable

{

private static Logger _log = Logger.getLogger(OfflineTradeTable.class.getName());

@@ -213,6 +210,50 @@

player.setClient(client);

player.setOffline(true);

player.setOfflineStartTime(time);

+

+ if(Config.OFFLINE_TRADE_EFFECT)

+ {

+ switch(Config.OFFLINE_EFFECT_ID)

+ {

+ case 1:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_BLEEDING);

+ break;

+ case 2:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_POISON);

+ break;

+ case 3:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_CONFUSED);

+ break;

+ case 4:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_MUTED);

+ break;

+ case 5:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_SLEEP);

+ break;

+ case 6:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_ROOT);

+ break;

+ case 7:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_2);

+ break;

+ case 8:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_BIG_HEAD);

+ break;

+ case 9:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_FLAME);

+ break;

+ case 10:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_FIREROOT_STUN);

+ break;

+ case 11:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_STEALTH);

+ break;

+ case 12:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_IMPRISIONING_2);

+ break;

+ }

+ }

+

player.spawnMe(player.getX(), player.getY(), player.getZ());

LoginServerThread.getInstance().addGameServerLogin(player.getAccountName(), client);

PreparedStatement stm_items = con.prepareStatement(LOAD_OFFLINE_ITEMS);

Index: head-src/com/l2jfrozen/gameserver/network/L2GameClient.java

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

--- head-src/com/l2jfrozen/gameserver/network/L2GameClient.java (revision 7)

+++ head-src/com/l2jfrozen/gameserver/network/L2GameClient.java (working copy)

@@ -41,6 +41,7 @@

import com.l2jfrozen.gameserver.datatables.sql.ClanTable;

import com.l2jfrozen.gameserver.managers.AwayManager;

import com.l2jfrozen.gameserver.model.CharSelectInfoPackage;

+import com.l2jfrozen.gameserver.model.L2Character;

import com.l2jfrozen.gameserver.model.L2Clan;

import com.l2jfrozen.gameserver.model.L2World;

import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;

@@ -1001,6 +1002,49 @@

player.broadcastUserInfo();

}

 

+ if(Config.OFFLINE_TRADE_EFFECT)

+ {

+ switch(Config.OFFLINE_EFFECT_ID)

+ {

+ case 1:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_BLEEDING);

+ break;

+ case 2:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_POISON);

+ break;

+ case 3:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_CONFUSED);

+ break;

+ case 4:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_MUTED);

+ break;

+ case 5:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_SLEEP);

+ break;

+ case 6:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_ROOT);

+ break;

+ case 7:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_2);

+ break;

+ case 8:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_BIG_HEAD);

+ break;

+ case 9:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_FLAME);

+ break;

+ case 10:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_FIREROOT_STUN);

+ break;

+ case 11:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_STEALTH);

+ break;

+ case 12:

+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_IMPRISIONING_2);

+ break;

+ }

+ }

+

if (player.getOfflineStartTime() == 0)

player.setOfflineStartTime(System.currentTimeMillis());

 

Creditos : RedHot

Posted

can it be done to make the offline traders to transform into one or more transformations? Like Rabbit, pig, etc.

 

Ofc yes, you can use polyself/polymorph packages.

Guest
This topic is now closed to further replies.

  • Posts

    • Server mid rate craft PvP   CLIENTE INTERLUDE Website server Discord olympus x25  server 🇧🇷🇦🇷🇨🇱🇬🇷🇲🇽🇵🇪🇸🇰🇪🇸🇺🇾 Server mid rate craft PvP 🔱CLIENTE INTERLUDE🔱 🔅xpx25 🔅Sp x25 🔅Adena x15 🔅Droop x2 🔅Spoil x2 🔅Raidboss xp x2 🔅Raidboss sp x2 🔅Raidboss droop x1 🔅All Rate quest reward  x1 ⚠️All Quest drop reward. x1 🔅Manor x 3 🔅Seal stone x1 🛡️🗡️INFO GRADO S🗡️🛡️ ⚠️Inicia desabilitado drop/spoil/quest. 🔱PROFESIONES/SUBCLASS🔱 🛡️1st profession - 50medal 🛡️2nd profession - 500 medal 🛡️3rd profession - 1k medal +30kk adena 🛡️Sub class - Quest. No necesita matar raids. ⚙️Configuraciones⚙️ 🛡️Gmshop  grade - B. 🛡️Grade A-S Craft - yes x1 chance 🛡️Globlal teleport - yes 🛡️Buffer 1hora. 🛡️Buffer slot 24(+4divine)+12 dances-song 🛡️Auto learn skils - yes 🛡️Autoloot - yes 🛡️Mana potion recarga 1000 ,9segundos delay. 🛡️Champions system:     ▫️lvl 30 - 76     ▫️chance respawn 0.5%.     ▫️adena x20 🛡️Max lvl party 14 lvl. 🛡️Festive sweeper on. 🛡️Max client pc 2. 🛡️Raid boss respawn retail. 🛡️Nobleza quest - yes. 🛡️Barakiel respawn 6 horas + -30 min. 🛡️Olimpiada duracion 14 dias. 🛡️Olimpiada de 18:00 a 00:00 🛡️Safe enchant +3 🛡️Normal enchant scroll 50% ⚠️+11-16 chance 30% 🛡️Bleesed enchant scroll 55% ⚠️+11-16 chance 35% 🛡️Rate dinamico x1 lvl 77-80   🛡️🗡️CLANES INFO🗡️🛡️ 🔅Crear clan min. level 20 🔅Max Alianzas 1 🔅Duracion penalidades clan / alianzas 8 horas. 🔅Cambio de lider 24 horas. 🛡️⚔️ ASEDIOS ⚔️🛡️ 🔅Cada 2 semanas. 🔅Proteccion hwid 1 pc. 🔅Clanes registrados. acceden a zona de asedio. 🔅Castillo asediable Aden. 🔅Reward 1000 FA 🔅Horario 16:00 GMT-3 🎊PACK DE INICIO🎊 🔅Start set - armor\weapon no grade. 🔅Level 20  - 5 shadow cuppon grado D 🔅Level 40 - 5 shadow cuppon grado C 🔅Free Autofarm 24 horas. 💰 INFO PREMIUM 💰 🔅Free autofarm. 🔅xp x30 🔅sp x30 🔅adena x17 🔅drop x4 🔅spoil x4 🔅enchant +2% 🔅seal stone x1 🔅Altb Gk-Gmshop/buffe ⚔️ RAID  BOSS INFO ⚔️ 🔅Raid boss 70 ++ respawn 5 días despues. 🔅Raid boss 75 ++ respawn 15 días despues 🔅Drop LETTER L2DAY para tradear en GMshop. ⚔️ INFO SEVEN SING ⚔️ 🔅Inicio del drop Seal stones dia 5 de iniciado el server. 🎊 EPIC RAID INFO 🎊 🔅Queen Ant (lvl 40)respawn Lunes a Viernes 22:00 GMT-3 drop chance 30%. 🔅Core (lvl 80)respawn Martes-miercoles 20:20 GMT-3 drop chance 100%. 🔅Orfen (lvl 80)respawn Martes-miercoles 21:00 GMT-3 drop chance 100%. 🔅Zaken (lvl 80)respawn Jueves 23:00 GMT-3 drop chance 100%. 🔅Frintezza (lvl 80)respawn Viernes 23:00 GMT-3 drop chance 100%. 🔅Baium (lvl 80)respawn Sabado 22:00 GMT-3 drop chance 100%. 🔅Valakas (lvl 80)respawn Domingo 20:00 GMT-3 drop chance 100%. 🔅Antharas (lvl 80)respawn Domingo 22:00 GMT-3 drop chance 100%.
    • The server is running in l2house.com.ar with C4 mode and in L2Tekila within the same login you can also test it in C5, if you want me to raise another chronicle to test, just let me know.
    • video nice song TopGear  gaming 1990    ....  
    • I have a system where Accounts are saved on login screen for fast login. I am playing a server where this feature is not on the logic screen. How I can try to add this feature to the system? I don't know what files I would have to touch.   Thanks!!
  • Topics

×
×
  • Create New...