Teleporting Item
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- Cobra
- Posts: 18
- Joined: Thu Sep 11, 2008 4:46 pm
Re: Teleporting Item
I made this long time ago so take care of it...
http://www.4shared.com/file/240660997/6 ... orter.html
http://www.4shared.com/file/240660997/6 ... orter.html
-
- Posts: 74
- Joined: Wed Mar 10, 2010 1:53 am
Re: Teleporting Item
thank you Cobra i will try it.
Customs.properties is not supposed to be in my config files already right? its a new file isnt it?
edit: i tried it but there are many differences between your files and my files. multicommandhandlers.java and IMultiCommandHandler.java doesnt exist in my files and there isnt this "NPC Settings..." thing in my config.java (and maybe many more i didnt check).
what should i do?
Customs.properties is not supposed to be in my config files already right? its a new file isnt it?
edit: i tried it but there are many differences between your files and my files. multicommandhandlers.java and IMultiCommandHandler.java doesnt exist in my files and there isnt this "NPC Settings..." thing in my config.java (and maybe many more i didnt check).
what should i do?
- Cobra
- Posts: 18
- Joined: Thu Sep 11, 2008 4:46 pm
Re: Teleporting Item
well you should learn how to c/p a code first T.T
those file that you said are "missing"
You must create them also some imports are changed like the L2PlayebleInstance must be to L2Playable.
those file that you said are "missing"
You must create them also some imports are changed like the L2PlayebleInstance must be to L2Playable.
-
- Posts: 74
- Joined: Wed Mar 10, 2010 1:53 am
Re: Teleporting Item
Cobra thank you for your help i tried again and i think everything fits well except this NPC Settings -Begin thing in config.java. Look, i mean this:Cobra wrote:well you should learn how to c/p a code first T.T
those file that you said are "missing"
You must create them also some imports are changed like the L2PlayebleInstance must be to L2Playable.
Code: Select all
+ /** ************************************************** **/+ /** Customs Settings -Begin **/+ /** ************************************************** **/++ public static boolean ENABLE_FREE_TELEPORT_SPELLBOOK;+ + /** ************************************************** **/ /** NPC Settings -Begin **/ <------ there is no such thing in my file /** ************************************************** **/
euxaristo kai pali cobra...
- Cobra
- Posts: 18
- Joined: Thu Sep 11, 2008 4:46 pm
Re: Teleporting Item
whats wrong ? is only dublicated explanation code... delete the one or delete both theres no problem ;]Abyssal wrote:Cobra thank you for your help i tried again and i think everything fits well except this NPC Settings -Begin thing in config.java. Look, i mean this:Cobra wrote:well you should learn how to c/p a code first T.T
those file that you said are "missing"
You must create them also some imports are changed like the L2PlayebleInstance must be to L2Playable.
i searched many times but i didnt find it so if you could tell me where else can i add this code i would appreciate it.Code: Select all
+ /** ************************************************** **/+ /** Customs Settings -Begin **/+ /** ************************************************** **/++ public static boolean ENABLE_FREE_TELEPORT_SPELLBOOK;+ + /** ************************************************** **/ /** NPC Settings -Begin **/ <------ there is no such thing in my file /** ************************************************** **/
euxaristo kai pali cobra...
Code: Select all
+ /** ************************************************** **/+ /** Customs Settings -Begin **/+ /** ************************************************** **/++ public static boolean ENABLE_FREE_TELEPORT_SPELLBOOK;+
-
- Posts: 74
- Joined: Wed Mar 10, 2010 1:53 am
Re: Teleporting Item
no man i mean the code should be added above NPC Settings -Begin, but there is no such thing in my file, so i dont know where else this code fits. i mean if i cant add it above NPC Settings -Begin then where should i add it?
i know its an explanation code but dont you think it should be added in the right place?
i know its an explanation code but dont you think it should be added in the right place?
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Teleporting Item
are the no line numbers in your patch?
°besides it doesn't matter where in file it is as long as it's in the right file
(and in the right order according to config.java, but i don't think this one means much)
°besides it doesn't matter where in file it is as long as it's in the right file
(and in the right order according to config.java, but i don't think this one means much)
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
hello again.
i tried to add the codes anyway and this is the error i get when i compile it with eclipse:
now?
(thank you in advance ... again)
i tried to add the codes anyway and this is the error i get when i compile it with eclipse:
Code: Select all
compile: [javac] Compiling 1224 source files to C:\workspace\L2_GameServer_It\build\classes [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\Config.java:2000: cannot find symbol [javac] symbol : variable is [javac] location: class net.sf.l2j.Config [javac] is = new FileInputStream(new File(CUSTOMS_FILE)); [javac] ^ [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\Config.java:2001: cannot find symbol [javac] symbol : variable is [javac] location: class net.sf.l2j.Config [javac] CustomSettings.load(is); [javac] ^ [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\handler\itemhandlers\FreeTeleportItem.java:53: cannot find symbol [javac] symbol : variable STATIC_PACKET [javac] location: class net.sf.l2j.gameserver.serverpackets.ActionFailed [javac] activeChar.sendPacket( ActionFailed.STATIC_PACKET ); [javac] ^ [javac] Note: C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\GeoEngine.java uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 3 errors BUILD FAILEDC:\workspace\L2_GameServer_It\build.xml:67: Compile failed; see the compiler error output for details. Total time: 5 seconds
(thank you in advance ... again)
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: Teleporting Item
try something else instead if "is"
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
Like...?jurchiks wrote:try something else instead if "is"
- BiggBoss
- L2j Veteran
- Posts: 1104
- Joined: Wed Apr 15, 2009 3:11 pm
- Location: Spain
Re: Teleporting Item
is its an input stream and im quite sure it isnt declared.
Example which would work
Prolly, you will have
Example which would work
Code: Select all
FileInputStream is = null;try { is = new FileInputStream(...);}
Code: Select all
try { is = new FileInputStream(...);}
-
- Posts: 74
- Joined: Wed Mar 10, 2010 1:53 am
Re: Teleporting Item
the only difference i see between the old code and your code is that you want me to delete the space between is and =
thats what i did and...
thank you for your help btw
thats what i did and...
Code: Select all
[javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\Config.java:2000: cannot find symbol [javac] symbol : variable is [javac] location: class net.sf.l2j.Config [javac] is = new FileInputStream(new File(CUSTOMS_FILE)); [javac] ^ [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\Config.java:2001: cannot find symbol [javac] symbol : variable is [javac] location: class net.sf.l2j.Config [javac] CustomSettings.load(is); [javac] ^ [javac] C:\workspace\L2_GameServer_It\java\net\sf\l2j\gameserver\handler\itemhandlers\FreeTeleportItem.java:53: cannot find symbol [javac] symbol : variable STATIC_PACKET [javac] location: class net.sf.l2j.gameserver.serverpackets.ActionFailed [javac] activeChar.sendPacket( ActionFailed.STATIC_PACKET );
- BiggBoss
- L2j Veteran
- Posts: 1104
- Joined: Wed Apr 15, 2009 3:11 pm
- Location: Spain
-
- Posts: 74
- Joined: Wed Mar 10, 2010 1:53 am
Re: Teleporting Item
nothing i just said your help wasnt that useful but i thank you anyway.BiggBoss wrote:what?
- BiggBoss
- L2j Veteran
- Posts: 1104
- Joined: Wed Apr 15, 2009 3:11 pm
- Location: Spain