Jump to content

Thelasthero

Members
  • Posts

    1,486
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Thelasthero

  1. Tested. It makes you hero and takes item of your choise. 1) Go to java.com.it.br.config.java and search for: public static int OFFLINE_NAME_COLOR; 2)After it add: public static boolean ALLOW_HERO_COMMAND; public static int HERO_ITEM_ID; public static int HERO_ITEM_COUNT; 3)Search for: OFFLINE_NAME_COLOR = Integer.decode("0x" + L2JModSettings.getProperty("OfflineNameColor", "808080")); 4)After it add: ALLOW_HERO_COMMAND = Boolean.parseBoolean(L2JModSettings.getProperty("AllowHeroCommand", "false")); HERO_ITEM_ID = Integer.parseInt(L2JModSettings.getProperty("HeroItemId", "3481")); HERO_ITEM_COUNT = Integer.parseInt(L2JModSettings.getProperty("HeroItemCount", "1")); 5)Go to java.com.it.br.gameserver.gameserver.java and search for: import com.it.br.gameserver.handler.voicedcommandhandlers.info; 6)After it add: import com.it.br.gameserver.handler.voicedcommandhandlers.hero; 7)Search for: _voicedCommandHandler.registerVoicedCommandHandler(new VoicedAIOCmd()); 8)After it add: if (Config.ALLOW_HERO_COMMAND) _voicedCommandHandler.registerVoicedCommandHandler(new hero()); 9)Go to java.com.it.br.gameserver.handler.voicedcommandhandlers and make a new file called: hero.java, and paste in it: /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package com.it.br.gameserver.handler.voicedcommandhandlers; import com.it.br.gameserver.handler.IVoicedCommandHandler; import com.it.br.gameserver.model.actor.instance.L2PlayableInstance; import com.it.br.gameserver.model.actor.instance.L2PcInstance; import com.it.br.gameserver.model.L2ItemInstance; import com.it.br.gameserver.serverpackets.ActionFailed; import com.it.br.gameserver.serverpackets.SocialAction; /** * @author Rayder */ public class hero implements IVoicedCommandHandler { private static final String[] VOICED_COMMANDS = {"hero"}; public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if (command.equalsIgnoreCase("hero")) { if(activeChar.getInventory().getItemByItemId(Config.HERO_ITEM_ID) != null && activeChar.getInventory().getItemByItemId(Config.HERO_ITEM_ID).getCount() >= Config.HERO_ITEM_COUNT) { activeChar.getInventory().destroyItemByItemId("GoldDragon", Config.HERO_ITEM_ID, Config.HERO_ITEM_COUNT, activeChar, activeChar.getTarget()); activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 16)); activeChar.setHero(true); activeChar.sendMessage("You became hero untill restart and gave 1 gold dragon"); activeChar.broadcastUserInfo(); } else { activeChar.sendMessage("You need 1 gold dragon to become hero."); return true; } } return false; } public String[] getVoicedCommandList() { return VOICED_COMMANDS; } } 10)Go to config.l2jmods.properties, and at the end paste: # ---------------------------- # .hero custom command by TheLastHero # ---------------------------- # Set this to True to enable .hero voiced command AllowHeroCommand = False # Item id that it will take and make you hero HeroItemId = 3481 # How many of this item will it take? HeroItemCount = 1 11)Compile it and you are done Old hardocded version: /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package com.it.br.gameserver.handler.voicedcommandhandlers; import com.it.br.gameserver.handler.IVoicedCommandHandler; import com.it.br.gameserver.model.actor.instance.L2PlayableInstance; import com.it.br.gameserver.model.actor.instance.L2PcInstance; import com.it.br.gameserver.model.L2ItemInstance; import com.it.br.gameserver.serverpackets.ActionFailed; import com.it.br.gameserver.serverpackets.SocialAction; /** * @author Rayder */ public class hero implements IVoicedCommandHandler { private static final String[] VOICED_COMMANDS = {"hero"}; public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if (command.equalsIgnoreCase("hero")) { if(activeChar.getInventory().getItemByItemId(3481) != null && activeChar.getInventory().getItemByItemId(3481).getCount() >= 1) { activeChar.getInventory().destroyItemByItemId("GoldDragon", 3481, 1, activeChar, activeChar.getTarget()); activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 16)); activeChar.setHero(true); activeChar.sendMessage("You became hero untill restart and gave 1 gold dragon"); activeChar.broadcastUserInfo(); } else { activeChar.sendMessage("You need 1 gold dragon to become hero."); return true; } } return false; } public String[] getVoicedCommandList() { return VOICED_COMMANDS; } }
  2. Hi guys, i want to share with you a nice (for me at least) modification i made yesterday, at quake pvp system. Tested in l2jbrasil and works 100%. Example: When character reaches Holy Shit! (24 pvps without dieing), he will become hero untill server restart. 1)Add quake pvp system to you core. 2)Open java.com.it.br.gameserver.model.actor.instance.l2pcinstance.java (for l2j java.net.sf.l2j.gameserver.model.actor.instance.l2pcinstance.java), and find(ctrl+f): Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Holy Shit!"); 3)After the Holy Shit!, add: , and became hero untill he retart! So it will look like: Announcements.getInstance().announceToAll("" + this.getName()+ " is on a Holy Shit!, and became hero until he restart!"); 4)After these line, add these 4 lines: activeChar.broadcastPacket(new SocialAction(activeChar.getObjectId(), 16)); activeChar.setHero(true); activeChar.sendMessage("You Are Now a Hero,You Are Granted With Hero Status , Skills ,Aura. This Effect Will Stop When You Restart."); activeChar.broadcastUserInfo(); 5)Close&Save it. 6)Compile it and you are done. Congrats! I have tested as i mentioned above, so i don't really need feedback. Thanks!
  3. Guys, i registered in www.no-ip.com , but i can't make a domain .servegame.com ... How to make one? And is it paid?
  4. dude, if you can't answer my question, ..... DON"T REPLY!!!!! ok? that was the only thing i asked. thanks you man. problem solved. thanks again, locked.
  5. well i know the rules. i didn't make bump before. that was the first bump i made......
  6. alithia einai poli spastiko p lete oloi xoris donate. alithia omos. pos tha bgaloun afta p dinoun ama dn baloun donates gia pes m.
  7. Interlude. High Rate - Mid Rate (x500) PvP enoeite.
  8. I need a code, that when server restart, it will say the seconds on player's screen (on the right side, down). L2jTeon has this, but other projects not... Thanks!
  9. thanks! another error, i stuck in select server, i press ok and nothing.
  10. 1) The L\SQLEXPRESS is correct 100%, because that's how i connect with my studio managment (mssql). 2) It is the username i put to open l2server.exe and others. It is correct 75%. 3) That's the pass i put to open l2server.exe and others. It is correct 75%. Can't connect. Why? P.S I am using 32-bit smeli's version, interlude.
  11. eh, sorry i didn't see that another 32-bit is posted. sorry again. locked.
  12. Guys, i found this, but links are dead. Can someone tell me where to find it with working links? Thanks! P.S... Or tell me where to find another for 32 bit.
  13. well nice features, too low enchant rates for x1500 :( going to try it out.
  14. topic's title must not include rates. fix it pls. good luck.
  15. lol you believe you can find stucksub off? haha you are funny. man try l2j...
  16. Well good luck with your server. Hmm, i suggest you go to l2off. But free web hosting? Anyway gl.
  17. +50 not +1 only. ncsoft will be really carefull and they won't manage to steal files again. so.
×
×
  • Create New...