Page 2 of 2

Re: Clan item .

Posted: Tue Dec 08, 2009 12:43 pm
by repxl
Ok Thank,s very mutch :)
-200 no work !!!! i tryed it it no give rep points it just take my item and clan reps are no in my clan :(

i need create a new item handler can someone help me with it ? :( i dont know what i need modify.

Re: Clan item .

Posted: Thu Dec 10, 2009 10:22 pm
by repxl

Code: Select all

 package handlers.itemhandlers; import net.sf.l2j.gameserver.datatables.SkillTable;import net.sf.l2j.gameserver.handler.IItemHandler;import net.sf.l2j.gameserver.model.L2Effect;import net.sf.l2j.gameserver.model.L2ItemInstance;import net.sf.l2j.gameserver.model.L2Skill;import net.sf.l2j.gameserver.model.actor.L2Playable;import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;import net.sf.l2j.gameserver.model.actor.instance.L2PetInstance;import net.sf.l2j.gameserver.model.entity.TvTEvent;import net.sf.l2j.gameserver.network.SystemMessageId;import net.sf.l2j.gameserver.network.serverpackets.ActionFailed;import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;import net.sf.l2j.gameserver.templates.skills.L2EffectType; int itemId = item.getItemId(); 		switch (itemId)		{ 			case 999999: // Clan Badge, xml: 999991				if (!isEffectReplaceable(playable, L2EffectType.HEAL_OVER_TIME, itemId))					usePotion(activeChar, 999991, 1);				else					playable.sendPacket(new SystemMessage(SystemMessageId.NOTHING_HAPPENED));				break;		}
i created this but i dont think it will give me rep points plz zakax or some other ppl can u help me make my item = 999999 when ppl click it that it give rep points :(

Re: Clan item .

Posted: Sun Dec 13, 2009 11:54 am
by denser
you can use xml of Rune NPC who exchange Epolets to Clan-points ..... no? just change id of epolets to GB..
it is ON THE SURFACE!

Re: Clan item .

Posted: Sat May 22, 2010 6:49 pm
by repxl
denser wrote:you can use xml of Rune NPC who exchange Epolets to Clan-points ..... no? just change id of epolets to GB..
it is ON THE SURFACE!
plz can you tell me the npc id or name ? :/ i cant find him ... :(


= solved i found him . but it sux becuase 100 knights for 20 rep points pff . the ppl can click this 20 days and they still have not enought reps.

Re: Clan item .

Posted: Sun May 23, 2010 2:52 pm
by UnAfraid
See your etcitem table last 2 rows