Page 2 of 4

Re: Teleporting Item

Posted: Sun Mar 14, 2010 12:05 am
by Cobra
I made this long time ago so take care of it...

http://www.4shared.com/file/240660997/6 ... orter.html

Re: Teleporting Item

Posted: Sun Mar 14, 2010 2:51 pm
by Abyssal
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?

Re: Teleporting Item

Posted: Sun Mar 14, 2010 3:51 pm
by Cobra
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.

Re: Teleporting Item

Posted: Mon Mar 15, 2010 1:11 am
by Abyssal
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.
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:

Code: Select all

+    /** ************************************************** **/+    /** Customs Settings -Begin **/+    /** ************************************************** **/++    public static boolean 	ENABLE_FREE_TELEPORT_SPELLBOOK;+    +      /** ************************************************** **/     /** NPC Settings -Begin                                **/     <------ there is no such thing in my file     /** ************************************************** **/
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.

euxaristo kai pali cobra...

Re: Teleporting Item

Posted: Mon Mar 15, 2010 3:13 am
by Cobra
Abyssal wrote:
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.
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:

Code: Select all

+    /** ************************************************** **/+    /** Customs Settings -Begin **/+    /** ************************************************** **/++    public static boolean 	ENABLE_FREE_TELEPORT_SPELLBOOK;+    +      /** ************************************************** **/     /** NPC Settings -Begin                                **/     <------ there is no such thing in my file     /** ************************************************** **/
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.

euxaristo kai pali cobra...
whats wrong ? is only dublicated explanation code... delete the one or delete both theres no problem ;]

Code: Select all

+    /** ************************************************** **/+    /** Customs Settings -Begin **/+    /** ************************************************** **/++    public static boolean 	ENABLE_FREE_TELEPORT_SPELLBOOK;+     

Re: Teleporting Item

Posted: Mon Mar 15, 2010 1:37 pm
by Abyssal
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?

Re: Teleporting Item

Posted: Mon Mar 15, 2010 6:06 pm
by jurchiks
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)

Re: Teleporting Item

Posted: Mon Mar 15, 2010 7:00 pm
by Abyssal
hello 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
now?

(thank you in advance ... again)

Re: Teleporting Item

Posted: Tue Mar 16, 2010 5:44 pm
by jurchiks
try something else instead if "is"

Re: Teleporting Item

Posted: Tue Mar 16, 2010 8:42 pm
by Abyssal
jurchiks wrote:try something else instead if "is"
Like...?

Re: Teleporting Item

Posted: Tue Mar 16, 2010 10:05 pm
by BiggBoss
is its an input stream and im quite sure it isnt declared.

Example which would work

Code: Select all

 FileInputStream is = null;try {        is = new FileInputStream(...);}
Prolly, you will have

Code: Select all

try {       is = new FileInputStream(...);}

Re: Teleporting Item

Posted: Tue Mar 16, 2010 10:49 pm
by Abyssal
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...

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 ); 
thank you for your help btw

Re: Teleporting Item

Posted: Tue Mar 16, 2010 10:52 pm
by BiggBoss
what? :shock:

Re: Teleporting Item

Posted: Wed Mar 17, 2010 2:28 pm
by Abyssal
BiggBoss wrote:what? :shock:
nothing i just said your help wasnt that useful but i thank you anyway.

Re: Teleporting Item

Posted: Wed Mar 17, 2010 2:43 pm
by BiggBoss
no, what i mean is that you are not understanding what i wrote :roll: