-
Posts
446 -
Credits
0 -
Joined
-
Last visited
-
Days Won
4 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by ScRaB4ever
-
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....
-
[request] symbol of something core and datapack code
ScRaB4ever replied to ScRaB4ever's question in Request Server Development Help [Greek]
bump? -
WTB [WTB] pack:Full Anti Hack pm me
ScRaB4ever replied to doumitseri's topic in Marketplace [L2Packs & Files]
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.... -
[request] symbol of something core and datapack code
ScRaB4ever replied to ScRaB4ever's question in Request Server Development Help [Greek]
bump -
[request] symbol of something core and datapack code
ScRaB4ever replied to ScRaB4ever's question in Request Server Development Help [Greek]
bump -
[boh8eia] akyrwsh twn buffs otan allazeis subclass
ScRaB4ever replied to ScRaB4ever's question in Request Server Development Help [Greek]
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 -
[Help] No heal from buffer in PvP mode!!!
ScRaB4ever replied to xdem's question in Request Server Development Help [L2J]
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": -
[boh8eia] akyrwsh twn buffs otan allazeis subclass
ScRaB4ever replied to ScRaB4ever's question in Request Server Development Help [Greek]
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 -
[boh8eia] akyrwsh twn buffs otan allazeis subclass
ScRaB4ever replied to ScRaB4ever's question in Request Server Development Help [Greek]
nai to pack m einai compile xrhshmopoiw IL L2J -
[boh8eia] akyrwsh twn buffs otan allazeis subclass
ScRaB4ever replied to ScRaB4ever's question in Request Server Development Help [Greek]
bump -
im using l2j il
-
well i have a problem with getActiveChar(). it shows me its wrong
-
WTS [WTS] Interlude GEODATA FixeD
ScRaB4ever replied to JoyLennOn's topic in Marketplace [L2Packs & Files]
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..... -
[Share]some fixes about enchant (IL)update!
ScRaB4ever replied to AbsolutePower's topic in Server Shares & Files [L2J]
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 -
hahaha im glad that i help you!!!
-
[share] Allow hero weapons enchantment
ScRaB4ever replied to ScRaB4ever's topic in Server Shares & Files [L2J]
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.... -
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!