Page 1 of 4
Teleporting Item
Posted: Wed Mar 10, 2010 2:06 am
by Abyssal
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision
Number:
L2JDP Revision
Number:
Hello there.
im sure many guys have already asked this but i need a teleporting item (new item - not tutorial guide etc.).
well actually my problem is that when i register a new item which shows a html text actions cannot be added in it. no teleport, no shop, nothing. it can only show text. my question is simple (though i guess the answer wont be that simple):
how do i create a custom item - gatekeeper?
btw i found many of these (in other forums not in here) but i couldn't adopt any of them for interlude and thats why im asking your help, im not a newbie (i think...).
if you didnt understand something i can explain it again.
thank you in advance. last i remember in the old forum you were too helpful, i hope you are going to do the same here.
Re: Teleporting Item
Posted: Wed Mar 10, 2010 4:21 am
by hope
L2J Revision Number:
L2JDP Revision Number
Re: Teleporting Item
Posted: Wed Mar 10, 2010 2:01 pm
by Abyssal
hope wrote:L2J Revision Number:
L2JDP Revision Number
i dont remember the revision number, but its Interlude (not the latest one). do you know where can i find the number?
Re: Teleporting Item
Posted: Wed Mar 10, 2010 7:13 pm
by hope
check configs
Re: Teleporting Item
Posted: Wed Mar 10, 2010 8:49 pm
by Abyssal
right. l2j version 1434 - interlude.
Re: Teleporting Item
Posted: Thu Mar 11, 2010 2:31 pm
by Abyssal
so? nobody to help?
Re: Teleporting Item
Posted: Thu Mar 11, 2010 3:09 pm
by janiii
Abyssal wrote:so? nobody to help?
nobody uses interlude.. there is nobody to help you here..
Re: Teleporting Item
Posted: Thu Mar 11, 2010 4:33 pm
by Abyssal
come on... in the old forum they always helped me. if there were people using interlude then there must be now too. check hopzone, there are too many interlude servers, so there is always someone who can help.
Re: Teleporting Item
Posted: Thu Mar 11, 2010 4:35 pm
by janiii
if there are any l2j admins using interlude, then they are not every day on l2j forum because interlude doesnt have (much) support anymore.
Re: Teleporting Item
Posted: Thu Mar 11, 2010 8:02 pm
by Abyssal
janiii wrote:if there are any l2j admins using interlude, then they are not every day on l2j forum because interlude doesnt have (much) support anymore.
im sure someone will help. Interlude is not dead. the support shouldnt be limited since interlude servers are still on top.
Re: Teleporting Item
Posted: Thu Mar 11, 2010 8:46 pm
by jurchiks
many, if not most IL servers are l2off...
and janiii is right, in this forum you will get practically no help with interlude unless someone REALLY REALLY wants to help you
anyway, AFAIK you need to make your own bypasses for that purpose
Re: Teleporting Item
Posted: Thu Mar 11, 2010 11:03 pm
by Abyssal
jurchiks wrote:many, if not most IL servers are l2off...
and janiii is right, in this forum you will get practically no help with interlude unless someone REALLY REALLY wants to help you
anyway, AFAIK you need to make your own bypasses for that purpose
really i wouldnt post anything here if i hadnt try already to change the code many times.
i actually tried this code:
Code: Select all
package com.l2jfree.gameserver.handler.itemhandlers; import com.l2jfree.Config;import com.l2jfree.gameserver.handler.IItemHandler;import com.l2jfree.gameserver.GameServer;import com.l2jfree.gameserver.cache.HtmCache;import com.l2jfree.gameserver.model.actor.instance.L2PcInstance;import com.l2jfree.gameserver.network.serverpackets.NpcHtmlMessage;import com.l2jfree.gameserver.handler.IItemHandler;import com.l2jfree.gameserver.model.L2ItemInstance;import com.l2jfree.gameserver.model.actor.instance.L2PcInstance;import com.l2jfree.gameserver.model.actor.instance.L2PlayableInstance; /** * @author Cobra * */public class Balloni implements IItemHandler{ private static final int[] ITEM_IDS = { 10639 }; public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if (!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance)playable; int itemId = item.getItemId(); if (itemId == 10639) { String htmFile = "data/html/Teleport/Balloni.htm"; String htmContent = HtmCache.getInstance().getHtm(htmFile); NpcHtmlMessage infoHtml = new NpcHtmlMessage(1); infoHtml.setHtml(htmContent); activeChar.sendPacket(infoHtml); } } public int[] getItemIds() { return ITEM_IDS; }}
but i cant add teleports or anything else. it shows only text.
maybe someone could give me a useful advise instead of giving me a full code or something.
thank you again.
Re: Teleporting Item
Posted: Fri Mar 12, 2010 9:34 am
by jurchiks
Re: Teleporting Item
Posted: Fri Mar 12, 2010 6:25 pm
by Abyssal
is this item only for gracia final and epiloge? because there are many differences between the files i see in the file and my files. for example i dont even have this file named ItemBypass.java in gameserver/model.
Re: Teleporting Item
Posted: Sat Mar 13, 2010 2:38 pm
by jurchiks
methinks the itembypass is a part of the mod...
i didn't check it, if you want it that bad you should read it thoroughly and try to figure it out yourself
also, the 1st post in that topic should have the info needed, and if you read the comments, maybe someone has shared a GF version too