Jump to content
  • 0

PSaxnw code gia mass reward me ip


JustBeatIt

Question

Recommended Posts

  • 0

Δεν νομίζω πως είναι τόσο δύσκολο να το καταλάβεις σου έδωσε καθαρά την λύση ο anarchy

 

axaxaxaxaxxaa ok a8ou to les se parakalwww!! kanto mou gia mena mia edw asap :)
Link to comment
Share on other sites

  • 0

/* 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.

Link to comment
Share on other sites

  • 0

/* 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.

 

euxaristw polu file mou!!! kapoios na lock ;)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • I didn't even want to touch on your name Celestine, but it took a while to want to protect it, right? But then I say, everyone knows that you and your group helped Vraekar in deobfuscating the interfaces, do you want me to post here the dates and videos of the releases of the OMG and Silence interfaces?, and then see Vraekar's?, do you want?, a blatant copy, even their variable names, the theft is blatant, and you who are an admin here at Max and say you are the right one, helped him decrypt and remove the code obfuscation, everyone knows that, and now you come and tell me that his code is not copied?, if you want I can put all the evidence here and this will be very ugly even for you, since those you helped Vraekar and the interface dev community know this, they know about the thefts, very ugly indeed my friend that you still come and tell such a lie.   ps. And just one more thing, did you say that all the code he wrote? you became a joker? Vraekar doesn't program a single line of code, the guy works as a data analyst, what he learned was to copy and paste ready-made codes, but he doesn't write a single line of code.
    • I'd like to join aCis community but i can't handle the contributions that often due to my job. I'm returning to L2 development after a few years away and it would be awesome getting this source to work. I can (and would like to) contribute with reviews and code now and then (i'm software engineer for global companies), but sadly i can't commit the time.   I have a hard sense of ethical to not not leak anything (my current web project is paid from nkdev even when there's a leaked version floating around.)   Please let me know when/if acceptance through donations is available again. @Tryskell   In the mean time, gl on your project. Sounds amazing.
    • I don't understand why you're judging Vraekar at all. He did nothing wrong. I've checked the code from that interface, and all the code inside the UC was written by Vraekar. Nothing was copy-pasted. It's the people who stole this patch and are reselling it at a higher price so who's the scammer here, Vraekar or them?
    • Greetings! I'm looking for someone that knows how to improve the movements on the gameplay and to create a mod for awsd movement so camera won't move with the character on L2 Classic, more info pm and if you already know how to do these, pm with your price, thank you!
    • não é grátis? não consigo ver o link 😞
  • Topics

×
×
  • Create New...