Teleporting Item
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 74
- Joined: Wed Mar 10, 2010 1:53 am
Teleporting Item
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.
» 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.
-
- Posts: 1160
- Joined: Thu Aug 30, 2007 5:17 pm
Re: Teleporting Item
L2J Revision Number:
L2JDP Revision Number
L2JDP Revision Number
-
- Posts: 74
- Joined: Wed Mar 10, 2010 1:53 am
Re: Teleporting Item
i dont remember the revision number, but its Interlude (not the latest one). do you know where can i find the number?hope wrote:L2J Revision Number:
L2JDP Revision Number
-
- Posts: 74
- Joined: Wed Mar 10, 2010 1:53 am
Re: Teleporting Item
right. l2j version 1434 - interlude.
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Teleporting Item
nobody uses interlude.. there is nobody to help you here..Abyssal wrote:so? nobody to help?
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 74
- Joined: Wed Mar 10, 2010 1:53 am
Re: Teleporting Item
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.
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Teleporting Item
if there are any l2j admins using interlude, then they are not every day on l2j forum because interlude doesnt have (much) support anymore.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 74
- Joined: Wed Mar 10, 2010 1:53 am
Re: Teleporting Item
im sure someone will help. Interlude is not dead. the support shouldnt be limited since interlude servers are still on top.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.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Teleporting Item
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
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
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 74
- Joined: Wed Mar 10, 2010 1:53 am
Re: Teleporting Item
really i wouldnt post anything here if i hadnt try already to change the code many times.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
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; }}
maybe someone could give me a useful advise instead of giving me a full code or something.
thank you again.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Teleporting Item
viewtopic.php?f=73&t=14551
maybe this helps...
maybe this helps...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 74
- Joined: Wed Mar 10, 2010 1:53 am
Re: Teleporting Item
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.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Teleporting Item
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
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
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.