Jump to content

ScRaB4ever

Members
  • Posts

    446
  • Credits

  • Joined

  • Last visited

  • Days Won

    4
  • Feedback

    0%

Everything posted by ScRaB4ever

  1. kalhspera!! exw ftiaksei ena away system (bsk pira ena p hparxei sto site kai to allaksa) kai exw ena prob apo8ikebete to title kai to xrwma t title se kapies me tablhtes kai meta otan pathsei o allos back pernei aytes tis times poy einai to problhma twra? oi times gia to xroma kai to title den apo8ikeyete ksexwrista gia ton ka8e paixth alla oi metablhtes pernoyn tis times toy teleftaioy paixth p ekane away otan meta kaneis back perneis tis times toy teleytaioy kai oxi tis dikes s oriste to code: package net.sf.l2j.gameserver.handler.voicedcommandhandlers; import net.sf.l2j.gameserver.ai.CtrlIntention; import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; public class away implements IVoicedCommandHandler { private static final String[] VOICED_COMMANDS = { "away", "back" }; private String chartitle; private int charcolor; public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if (command.equalsIgnoreCase("away")) { if (activeChar.isInJail()) { activeChar.sendMessage("You cannot use this command while you are in Jail!"); return false; } else if(activeChar.isInOlympiadMode()) { activeChar.sendMessage("You cannot use this command while you are in the Olympiad now."); return false; } else if(activeChar.atEvent) { activeChar.sendMessage("You cannot use this command while you are in an event."); return false; } else if (activeChar.isInDuel()) { activeChar.sendMessage("You cannot use this command while you are in a duel!"); return false; } else if (activeChar.inObserverMode()) { activeChar.sendMessage("You cannot use this command while you are in Observer Mode."); } else if (activeChar.isFestivalParticipant()) { activeChar.sendMessage("You cannot use this command while you are in a festival."); return false; } else if (activeChar.isInParty() && activeChar.getParty().isInDimensionalRift()) { activeChar.sendMessage("You cannot use this command while you are in the dimensional rift."); return false; } else if (activeChar.isParalyzed()) { activeChar.sendMessage("You are already away from keyboard."); return false; } chartitle = activeChar.getTitle(); charcolor = activeChar.getAppearance().getTitleColor(); activeChar.sendMessage("You are away from keyboard."); activeChar.setTitle("*Away*"); // Title text when somebody is away. activeChar.getAppearance().setTitleColor(0xFF000); activeChar.setIsParalyzed(true); activeChar.broadcastUserInfo(); } else if (command.equalsIgnoreCase("back")) { if (activeChar.isInJail()) { activeChar.sendMessage("You cannot use this command while you are in Jail!"); return false; } else if(activeChar.isInOlympiadMode()) { activeChar.sendMessage("You cannot use this command while you are in the Olympiad."); return false; } else if(activeChar.atEvent) { activeChar.sendMessage("You cannot use this command while you are in an event."); return false; } else if (activeChar.isInDuel()) { activeChar.sendMessage("You cannot use this command while you are in a duel!"); return false; } else if (activeChar.inObserverMode()) { activeChar.sendMessage("You cannot use this command while you are in Observer Mode."); } else if (activeChar.isFestivalParticipant()) { activeChar.sendMessage("You cannot use this command while you are in a festival."); return false; } else if (activeChar.isInParty() && activeChar.getParty().isInDimensionalRift()) { activeChar.sendMessage("You cannot use this command while you are in the dimensional rift."); return false; } activeChar.sendMessage("Welcome back, have fun!"); activeChar.setTitle(chartitle); activeChar.getAppearance().setTitleColor(charcolor); activeChar.setIsParalyzed(false); activeChar.broadcastUserInfo(); } return true; } public String[] getVoicedCommandList() { return VOICED_COMMANDS; } } an mporei kaoios na me boh8hsei 8a to ekthmoysa poly....
  2. well this dudes asked to buy my pack 1 week ago... if he has his full anti hack pack why did he request mine? fail....
  3. exw dokimasei na balw to stopalleffects sto change kai sto add alla den doylebei:/ [edit] brhka ayto p h8ela sto L2NpcInstance sth gramh 8829 regiveTemporarySkills(); rewardSkills(); - restoreEffects(); kante ena lock plz
  4. diko sou def onEvent(self,event,st): htmltext = event if st.getPlayer().getPvpFlag() > 0 or st.getPlayer().getKarma() > 0: htmltext = "<html><head><body><center><br><br>Im not gonna help you unless<br> you stop fighting....<center></body></html>" else: st.getPlayer().setTarget(st.getPlayer()) #Wind Walk if event == "1":
  5. to pack m leei many bug fixes oxi full bug fixes am deis sta fix p grafw sto post den anaferw poy8ena ena tetoio fix.... meine on topic plz
  6. nai to pack m einai compile xrhshmopoiw IL L2J
  7. kelhpsera se oloys mporei kapoios na m stile oti xreiazete gia na ftiaksw sta symbols skills? 8a to ektimoysa poly, eyxarhstw L2J IL compile
  8. yes i did 2 ppl joined server to play and then they have asked me to sell the pack... maybe i do it to adverise my pack?
  9. what does it have to do with the pack?? i said you can check server at l2sting.eu not go play.... check for bugs try attack server etc....
  10. well i have a problem with getActiveChar(). it shows me its wrong
  11. well as Hellish said.... wtf man?? i think that the files you sell (i havent understand what do u sell but anyway) are not working or are full of bugs i hope im wrong but with the "information" you give that the less offensive i can say.....
  12. well i think its not usefull since there is no problem that needs to be fixed with enchanting while moving, paralized etc.... anyway keep sharing:D
  13. hahaha im glad that i help you!!!
  14. i know!!!! DominiQue had just delete a line the prob is that every time you wanna activate - disactivate it you should add -delete the line and recompile.... so i thought that it will be an interesting share....
  15. In many servers you can not enchant a hero weapon here is the code in order to enable this feature! at net/sf/l2j/Config.java line ~1065 public static int ENCHANT_CHANCE_WEAPON_BLESSED; public static int ENCHANT_CHANCE_ARMOR_BLESSED; public static int ENCHANT_CHANCE_JEWELRY_BLESSED; + /** Enable/disable Hero Weapons Enchantment */ + public static boolean ALLOW_HERO_ENCHANTMENT; // Character multipliers /** Multiplier for character HP regeneration */ public static double HP_REGEN_MULTIPLIER; line ~1627 ENCHANT_CHANCE_ARMOR_BLESSED = Integer.parseInt(otherSettings.getProperty("EnchantChanceArmorBlessed", "85")); ENCHANT_CHANCE_JEWELRY_BLESSED = Integer.parseInt(otherSettings.getProperty("EnchantChanceJewelryBlessed", "85")); + ALLOW_HERO_ENCHANTMENT = Boolean.parseBoolean(otherSettings.getProperty("EnchantHeroAllow", "True")); -------------------------------------- at net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java line ~74 activeChar.setActiveEnchantItem(null); if (item == null || scroll == null) return; - // can't enchant rods, hero weapons and shadow items + // can't enchant rods, and shadow items if(item.getItem().getItemType() == L2WeaponType.ROD - || item.getItemId() >= 6611 && item.getItemId() <= 6621 || item.isShadowItem() ) + // can't enchant Hero Weapons + if(item.getItemId() >= 6611 && item.getItemId() <= 6621 && !Config.ALLOW_HERO_ENCHANTMENT) + { + activeChar.sendPacket(new SystemMessage(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION)); + return; + } if(item.getItem().getType2() == L2Item.TYPE2_ACCESSORY && item.getEnchantLevel() >= Config.ENCHANT_MAX_JEWELRY ------------------------------------ At other.properties + #Allow hero weapons enchantment? + EnchantHeroAllow = True Not something special but its a good start for me Credits: to me PS: Its not tested but it shall be fine. If you find somethink wrong please let me know!
×
×
  • Create New...