LioNa Posted September 14, 2012 Posted September 14, 2012 Wenas this effect is to put the players who are selling or buying or Offline Crafteando. Effects that can be placed -> #-1 BLEEDING #-2 POISON #-3 REDCIRCLE #-4 ICE #-5 WIND #-6 FEAR #-7 STUN #-8 SLEEP #-9 MUTED #-10 ROOT #-11 HOLD_1 #-12 HOLD_2 #-13 BIG_HEAD #-14 FLAME #-15 GROW #-16 FLOATING_ROOT #-17 DANCE_STUNNED #-18 FIREROOT_STUN #-19 STEALTH #-20 IMPRISIONING_1 #-21 IMPRISIONING_2 #-22 MAGIC_CIRCLE #-23 ICE2 #-24 VITALITY #-25 REAL_TARGET #-26 DEATH_MARK #-27 SKULL_FEAR #-28 S_INVINCIBLE #-29 S_AIR_STUN #-30 S_AIR_ROOT #-31 S_BAGUETTE_SWORD #-32 S_YELLOW_AFFRO #-33 S_PINK_AFFRO #-34 S_BLACK_AFFRO #-35 S_STIGMA_SHILIEN #-36 S_STAKATOROOT #-37 S_FREEZING #-38 S_VESPER #-39 E_AFRO_1 #-40 E_AFRO_2 #-41 E_AFRO_3 #-42 E_EVASWRATH #-43 E_HEADPHONE #-44 E_VESPER_1 #-45 E_VESPER_2 #-46 E_VESPER_3 Ruta del archivo --> \game\config\l2jmods.properties # ----------------------------------------- # Offline Effecto - # ----------------------------------------- # Add effect when entering offline mode. # Default: False OfflineTradeEffecto = True #-1 BLEEDING |#-16 FLOATING_ROOT |#-31 S_BAGUETTE_SWORD |#-46 E_VESPER_3 #-2 POISON |#-17 DANCE_STUNNED |#-32 S_YELLOW_AFFRO #-3 REDCIRCLE |#-18 FIREROOT_STUN |#-33 S_PINK_AFFRO #-4 ICE |#-19 STEALTH |#-34 S_BLACK_AFFRO #-5 WIND |#-20 IMPRISIONING_1 |#-35 S_STIGMA_SHILIEN #-6 FEAR |#-21 IMPRISIONING_2 |#-36 S_STAKATOROOT #-7 STUN |#-22 MAGIC_CIRCLE |#-37 S_FREEZING #-8 SLEEP |#-23 ICE2 |#-38 S_VESPER #-9 MUTED |#-24 VITALITY |#-39 E_AFRO_1 #-10 ROOT |#-25 REAL_TARGET |#-40 E_AFRO_2 #-11 HOLD_1 |#-26 DEATH_MARK |#-41 E_AFRO_3 #-12 HOLD_2 |#-27 SKULL_FEAR |#-42 E_EVASWRATH #-13 BIG_HEAD |#-28 S_INVINCIBLE |#-43 E_HEADPHONE #-14 FLAME |#-29 S_AIR_STUN |#-44 E_VESPER_1 #-15 GROW |#-30 S_AIR_ROOT |#-45 E_VESPER_2 OfflineEffectoId = 24 Ruta --> java/com/l2jserver/Config.java public static boolean L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE; + public static boolean OFFLINE_TRADE_EFFECTO; + public static int OFFLINE_EFFECTO_ID; L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE = Boolean.valueOf(L2JModSettings.getProperty("EnableWarehouseSortingPrivate", "False")); + OFFLINE_TRADE_EFFECTO = Boolean.parseBoolean(smartCB.getProperty("OfflineTradeEffecto", "False")); + OFFLINE_EFFECTO_ID = Integer.parseInt(smartCB.getProperty("OfflineEffectoId", "1")); Ruta --> java/com/l2jserver/gameserver/datatables/OfflineTradeTable.java player.setOfflineStartTime(time); + if (Config.OFFLINE_TRADE_EFFECTO) + { + switch(Config.OFFLINE_EFFECTO_ID) + { + case 1: + player.startAbnormalEffect(AbnormalEffect.BLEEDING); + break; + case 2: + player.startAbnormalEffect(AbnormalEffect.POISON); + break; + case 3: + player.startAbnormalEffect(AbnormalEffect.REDCIRCLE); + break; + case 4: + player.startAbnormalEffect(AbnormalEffect.ICE); + break; + case 5: + player.startAbnormalEffect(AbnormalEffect.WIND); + break; + case 6: + player.startAbnormalEffect(AbnormalEffect.FEAR); + break; + case 7: + player.startAbnormalEffect(AbnormalEffect.STUN); + break; + case 8: + player.startAbnormalEffect(AbnormalEffect.SLEEP); + break; + case 9: + player.startAbnormalEffect(AbnormalEffect.MUTED); + break; + case 10: + player.startAbnormalEffect(AbnormalEffect.ROOT); + break; + case 11: + player.startAbnormalEffect(AbnormalEffect.HOLD_1); + break; + case 12: + player.startAbnormalEffect(AbnormalEffect.HOLD_2); + break; + case 13: + player.startAbnormalEffect(AbnormalEffect.BIG_HEAD); + break; + case 14: + player.startAbnormalEffect(AbnormalEffect.FLAME); + break; + case 15: + player.startAbnormalEffect(AbnormalEffect.GROW); + break; + case 16: + player.startAbnormalEffect(AbnormalEffect.FLOATING_ROOT); + break; + case 17: + player.startAbnormalEffect(AbnormalEffect.DANCE_STUNNED); + break; + case 18: + player.startAbnormalEffect(AbnormalEffect.FIREROOT_STUN); + break; + case 19: + player.startAbnormalEffect(AbnormalEffect.STEALTH); + break; + case 20: + player.startAbnormalEffect(AbnormalEffect.IMPRISIONING_1); + break; + case 21: + player.startAbnormalEffect(AbnormalEffect.IMPRISIONING_2); + break; + case 22: + player.startAbnormalEffect(AbnormalEffect.MAGIC_CIRCLE); + break; + case 23: + player.startAbnormalEffect(AbnormalEffect.ICE2); + break; + case 24: + player.startAbnormalEffect(AbnormalEffect.VITALITY); + break; + case 25: + player.startAbnormalEffect(AbnormalEffect.REAL_TARGET); + break; + case 26: + player.startAbnormalEffect(AbnormalEffect.DEATH_MARK); + break; + case 27: + player.startAbnormalEffect(AbnormalEffect.SKULL_FEAR); + break; + case 28: + player.startAbnormalEffect(AbnormalEffect.S_INVINCIBLE); + break; + case 29: + player.startAbnormalEffect(AbnormalEffect.S_AIR_STUN); + break; + case 30: + player.startAbnormalEffect(AbnormalEffect.S_AIR_ROOT); + break; + case 31: + player.startAbnormalEffect(AbnormalEffect.S_BAGUETTE_SWORD); + break; + case 32: + player.startAbnormalEffect(AbnormalEffect.S_YELLOW_AFFRO); + break; + case 33: + player.startAbnormalEffect(AbnormalEffect.S_PINK_AFFRO); + break; + case 34: + player.startAbnormalEffect(AbnormalEffect.S_BLACK_AFFRO); + break; + case 35: + player.startAbnormalEffect(AbnormalEffect.S_STIGMA_SHILIEN); + break; + case 36: + player.startAbnormalEffect(AbnormalEffect.S_STAKATOROOT); + break; + case 37: + player.startAbnormalEffect(AbnormalEffect.S_FREEZING); + break; + case 38: + player.startAbnormalEffect(AbnormalEffect.S_VESPER); + break; + case 39: + player.startAbnormalEffect(AbnormalEffect.E_AFRO_1); + break; + case 40: + player.startAbnormalEffect(AbnormalEffect.E_AFRO_2); + break; + case 41: + player.startAbnormalEffect(AbnormalEffect.E_AFRO_3); + break; + case 42: + player.startAbnormalEffect(AbnormalEffect.E_EVASWRATH); + break; + case 43: + player.startAbnormalEffect(AbnormalEffect.E_HEADPHONE); + break; + case 44: + player.startAbnormalEffect(AbnormalEffect.E_VESPER_1); + break; + case 45: + player.startAbnormalEffect(AbnormalEffect.E_VESPER_2); + break; + case 46: + player.startAbnormalEffect(AbnormalEffect.E_VESPER_3); + break; + + } + } Ruta --> java/com/l2jserver/gameserver/network/L2GameClient.java player.getAppearance().setNameColor(Config.OFFLINE_NAME_COLOR); player.broadcastUserInfo(); } + if (Config.OFFLINE_TRADE_EFFECTO) + { + switch(Config.OFFLINE_EFFECTO_ID) + { + case 1: + player.startAbnormalEffect(AbnormalEffect.BLEEDING); + break; + case 2: + player.startAbnormalEffect(AbnormalEffect.POISON); + break; + case 3: + player.startAbnormalEffect(AbnormalEffect.REDCIRCLE); + break; + case 4: + player.startAbnormalEffect(AbnormalEffect.ICE); + break; + case 5: + player.startAbnormalEffect(AbnormalEffect.WIND); + break; + case 6: + player.startAbnormalEffect(AbnormalEffect.FEAR); + break; + case 7: + player.startAbnormalEffect(AbnormalEffect.STUN); + break; + case 8: + player.startAbnormalEffect(AbnormalEffect.SLEEP); + break; + case 9: + player.startAbnormalEffect(AbnormalEffect.MUTED); + break; + case 10: + player.startAbnormalEffect(AbnormalEffect.ROOT); + break; + case 11: + player.startAbnormalEffect(AbnormalEffect.HOLD_1); + break; + case 12: + player.startAbnormalEffect(AbnormalEffect.HOLD_2); + break; + case 13: + player.startAbnormalEffect(AbnormalEffect.BIG_HEAD); + break; + case 14: + player.startAbnormalEffect(AbnormalEffect.FLAME); + break; + case 15: + player.startAbnormalEffect(AbnormalEffect.GROW); + break; + case 16: + player.startAbnormalEffect(AbnormalEffect.FLOATING_ROOT); + break; + case 17: + player.startAbnormalEffect(AbnormalEffect.DANCE_STUNNED); + break; + case 18: + player.startAbnormalEffect(AbnormalEffect.FIREROOT_STUN); + break; + case 19: + player.startAbnormalEffect(AbnormalEffect.STEALTH); + break; + case 20: + player.startAbnormalEffect(AbnormalEffect.IMPRISIONING_1); + break; + case 21: + player.startAbnormalEffect(AbnormalEffect.IMPRISIONING_2); + break; + case 22: + player.startAbnormalEffect(AbnormalEffect.MAGIC_CIRCLE); + break; + case 23: + player.startAbnormalEffect(AbnormalEffect.ICE2); + break; + case 24: + player.startAbnormalEffect(AbnormalEffect.VITALITY); + break; + case 25: + player.startAbnormalEffect(AbnormalEffect.REAL_TARGET); + break; + case 26: + player.startAbnormalEffect(AbnormalEffect.DEATH_MARK); + break; + case 27: + player.startAbnormalEffect(AbnormalEffect.SKULL_FEAR); + break; + case 28: + player.startAbnormalEffect(AbnormalEffect.S_INVINCIBLE); + break; + case 29: + player.startAbnormalEffect(AbnormalEffect.S_AIR_STUN); + break; + case 30: + player.startAbnormalEffect(AbnormalEffect.S_AIR_ROOT); + break; + case 31: + player.startAbnormalEffect(AbnormalEffect.S_BAGUETTE_SWORD); + break; + case 32: + player.startAbnormalEffect(AbnormalEffect.S_YELLOW_AFFRO); + break; + case 33: + player.startAbnormalEffect(AbnormalEffect.S_PINK_AFFRO); + break; + case 34: + player.startAbnormalEffect(AbnormalEffect.S_BLACK_AFFRO); + break; + case 35: + player.startAbnormalEffect(AbnormalEffect.S_STIGMA_SHILIEN); + break; + case 36: + player.startAbnormalEffect(AbnormalEffect.S_STAKATOROOT); + break; + case 37: + player.startAbnormalEffect(AbnormalEffect.S_FREEZING); + break; + case 38: + player.startAbnormalEffect(AbnormalEffect.S_VESPER); + break; + case 39: + player.startAbnormalEffect(AbnormalEffect.E_AFRO_1); + break; + case 40: + player.startAbnormalEffect(AbnormalEffect.E_AFRO_2); + break; + case 41: + player.startAbnormalEffect(AbnormalEffect.E_AFRO_3); + break; + case 42: + player.startAbnormalEffect(AbnormalEffect.E_EVASWRATH); + break; + case 43: + player.startAbnormalEffect(AbnormalEffect.E_HEADPHONE); + break; + case 44: + player.startAbnormalEffect(AbnormalEffect.E_VESPER_1); + break; + case 45: + player.startAbnormalEffect(AbnormalEffect.E_VESPER_2); + break; + case 46: + player.startAbnormalEffect(AbnormalEffect.E_VESPER_3); + break; + + } + } I've adapted to Freya and add more effects and Nothing but the credits for RedHot.
Recommended Posts