Jump to content

An4rchy

Legendary Member
  • Posts

    2,656
  • Credits

  • Joined

  • Last visited

  • Days Won

    26
  • Feedback

    100%

Everything posted by An4rchy

  1. Lol gamates einai oi times. 65 euro 16 gb ram, k gamato pc.
  2. Thank you mate. Also video with the event uploaded.
  3. Hello everyone. I want to sell an event, Strider Race event. It is coded 100% by me. Explanation: Registrations open every x minutes(configurable). All players can register by typing .striderrace_join and leave by typing .striderrace_leave. After the registrations are closed, they all are teleported to event starting place and paralised for 20 seconds, also -beep-t strider. Then event starts and they have to go and double click on event ending npc. Then event ends and winner is announced. They can't un-beep-t their strider, exit or restart while event runs. Also they can't target anyone else or be targeted. If they try, they will just target their selves. If x minutes pass(configurable) and no winner is found, event ends in a tie. Configs: # Strider race event. AllowStriderRaceEvent = True # Delay between event(eg. you put 60 the event will start every 60 minutes). StriderRaceDelay = 60 # Registration time(in minutes). StriderRaceRegistrationTime = 5 # Event running time. # If this time passes and there is no winner, the event ends in a tie. # Note: In minutes. StriderRaceRunningTime = 5 # Winner reward. StriderRaceWinnerRewards = 57,1000000;3470,5; (About starting and ending place, i will add configs if someone decides to buy it, it's 1 min ;p.) YOU have to spawn ending npc, i didn't code it to be auto spawned. Payment methods: - PayPal. - PaySafe Card. Payment way: You give me the money, i give you the files. Price: 5 euros. (PaySafe Card 10 euros) A video of the event:
  4. Not bad :) Though i didn't exactly understand how the first one works, because i thought russian rullete is not a fighting event...
  5. I don't think it's forbidden. Anyway, since you can code noone can say you code easy stuff ;)
  6. Well, since i don't really player interlude+ servers, could you explain exactly how does this work? @AbsolutePower I don't think it will be some checks, since you need to add coords where it will fly(from x,y,z to x,y,z to x,y,z etc).
  7. I have to say it's kinda strange... Have you disabled reset password option?
  8. Noone will make it just for free for you. I can give you instructions though: 1) Make an item handler(that will just send a html). 2) In html there should be your text(eg. gk, top pvp/pk, symbol maker), with the bypasses. 3) Go to RequestBypassToServer and make your bypasses. Well, i know i don't give much info, but this should do if you know 1-2 things...
  9. Is ping 9999? If yes try to change min protocol rev to 1 and max to 999...
  10. Replace these 2: if (effect != null) effect.getEffects(character, character); with these: if (effect != null) { if (character.getFirstEffect(effect) == null) { effect.getEffects(character, character); } }
  11. Find the line i told you in my reply and replace it with Tryskell's lines.
  12. I don't really think he got it o.O... If i got it, this happens if anti pk paralises you or something right? If so, check what EnterWorld contains about this message and give the code related to this that is in there... You could also try adding in EnterWorld these lines: activeChar.setIsParalized(false); activeChar.stopAbnormalEffect(0x0400);
  13. On onEnter() method in your zone type, find the line: SkillTable.getInstance().getInfo(NOBLE_ID, 1).getEffects(character, character); and make it look like(note that in place of character you should put the L2PcInstance object you may have created after the character instanceof L2PcInstance check you should have made): (where i put character replace it with L2PcInstance object i mentioned above) boolean doNoble = true; for (L2Effect e : character.getAllEffects()) { if (e.getSkill().getId() == NOBLE_ID) { doNoble = false; } } if (doNoble) { SkillTable.getInstance().getInfo(NOBLE_ID, 1).getEffects(character, character); } This just checks if the character has already nobless and if he doesn't it gives him. P.S. I saw Tryskell replied with a better way, maybe you should use this.
  14. /* 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 2, 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, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * http://www.gnu.org/copyleft/gpl.html */ package net.sf.l2j.gameserver.handler.admincommandhandlers; import java.util.Collection; import java.util.StringTokenizer; import javolution.util.FastList; import net.sf.l2j.gameserver.datatables.ItemTable; import net.sf.l2j.gameserver.handler.IAdminCommandHandler; import net.sf.l2j.gameserver.model.L2World; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; /** * * @author Anarchy * Gia JustBeatIt */ public class AdminMassReward implements IAdminCommandHandler { private static final String[] ADMIN_COMMANDS = { "admin_massreward" }; private static FastList<String> ips = new FastList<String>(); public boolean useAdminCommand(String command, L2PcInstance activeChar) { if (command.startsWith("admin_massreward")) { String cmd = command.substring(17); StringTokenizer st = new StringTokenizer(cmd); if (st.countTokens() != 2) { activeChar.sendMessage("Usage: //massreward id count."); return false; } int id = Integer.parseInt(st.nextToken()); int count = Integer.parseInt(st.nextToken()); Collection<L2PcInstance> pls = L2World.getInstance().getAllPlayers().values(); for (L2PcInstance p : pls) { String pIp = p.getClient().getConnection().getInetAddress().getHostAddress(); if (!ips.contains(pIp)) { ips.add(pIp); p.addItem("Mass reward.", id, count, p, true); } else { p.sendMessage("This character is a dualbox, so he wasn't rewarded."); } } activeChar.sendMessage("You have rewarded everyone with "+count+" "+ItemTable.getInstance().getTemplate(id).getName()+"."); ips.clear(); } return true; } public String[] getAdminCommandList() { return ADMIN_COMMANDS; } } Prepei na to kaneis kai register sto AdminCommandHandler, etsi: registerAdminCommandHandler(new AdminMassReward()); Elpizw na boithisa.
  15. In ChatAll chat handler, you need to add the 1 pvp kill check after the voiced commands check, because players without 1 pvp kill can't use anti buff shield or other vcommands.
  16. Well, you must put it under each call of increasePvpKills() method. So search(ctf+f) for line: increasePvpKills(); and under each you find add what i gave you. It could be done in another, better way too, but this works too. For pk kills the method is increasePkKillsAndKarma() (if i am not mistaken). But you need to do some changes to the code.
  17. You really are dumb, aren't you? Anyway, post here your buffer script and on which pack you are trying to add it.
×
×
  • Create New...