Jump to content

Recommended Posts

Posted

den kserw an yparxei kai allo share den epsaksa na sas pw thn alh8eia, kseskoniza to pc mou kai to vrhka :P

package handlers.itemhandlers;

import com.l2jserver.gameserver.handler.IItemHandler;
import com.l2jserver.gameserver.model.actor.L2Playable;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.items.instance.L2ItemInstance;
import com.l2jserver.gameserver.network.SystemMessageId;

/**
* @author -=DoctorNo=-
*/
public class ClanReputation implements IItemHandler
{
// --------------------------------------------------
// Interval configs.
// --------------------------------------------------
private static final int ITEM_IDS = 1515; // item id here.
private static final int Rep_Score = 10000; // reputation points here.

@Override
public boolean useItem(L2Playable playable, L2ItemInstance item, boolean forceUse){
	if (!playable.isPlayer())
	{
		playable.sendPacket(SystemMessageId.ITEM_NOT_FOR_PETS);
		return false;
	}

	L2PcInstance activeChar = playable.getActingPlayer();

	if ((activeChar.getClan() == null) || !activeChar.isClanLeader()){
		activeChar.sendPacket(SystemMessageId.YOU_ARE_NOT_AUTHORIZED_TO_DO_THAT);
		return false;
	}
	activeChar.getClan().addReputationScore(Rep_Score, true);
	activeChar.destroyItemByItemId("clan", ITEM_IDS, 1, activeChar, true);
	activeChar.sendMessage("You have successfully add "+Rep_Score+" reputation point(s) to your clan.");
	return true;
    }

public int getItemIds(){
	return ITEM_IDS;
}
}

logika den 8a exei provlhmata to eixa dokimasei se H5 prin poluuuu kairo :P

Guest Elfocrash
Posted

Come up with new ideas people

Posted

It's already shared dude, but good job!

 

Keep sharing new ideas!

Oute kaseta na isoun esu

Valantis :den kserw an yparxei kai allo share den epsaksa na sas pw thn alh8eia, kseskoniza to pc mou kai to vrhka

 

 

Elfo :Come up with new ideas people

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock