Clan item .

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
repxl
Posts: 207
Joined: Wed May 20, 2009 8:29 pm

Re: Clan item .

Post 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.
"Code is exactly like shit - you don't mind cleaning it when its yours, but when it isn't... fuck its annoying." - By the Almighty ZaKaX
repxl
Posts: 207
Joined: Wed May 20, 2009 8:29 pm

Re: Clan item .

Post 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 :(
"Code is exactly like shit - you don't mind cleaning it when its yours, but when it isn't... fuck its annoying." - By the Almighty ZaKaX
User avatar
denser
Posts: 1392
Joined: Wed May 30, 2007 9:13 pm
Location: Russia
Contact:

Re: Clan item .

Post 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!
Tiger, once tasted human flesh, will want to taste it again
L2J - the place where glad to see you any time!
repxl
Posts: 207
Joined: Wed May 20, 2009 8:29 pm

Re: Clan item .

Post 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.
"Code is exactly like shit - you don't mind cleaning it when its yours, but when it isn't... fuck its annoying." - By the Almighty ZaKaX
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Clan item .

Post by UnAfraid »

See your etcitem table last 2 rows
Image
Post Reply