valanths1990 Posted July 10, 2012 Posted July 10, 2012 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
Dulens. Posted July 10, 2012 Posted July 10, 2012 It's already shared dude, but good job! Keep sharing new ideas!
SkySkase Posted July 10, 2012 Posted July 10, 2012 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
SkySkase Posted July 17, 2012 Posted July 17, 2012 Ti akribos einai file moy o Kodikos ? ama enois o kodikas... Einai ena Item pou tha sou dinei Clan replu points
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now