Teleporting Item

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
User avatar
Cobra
Posts: 18
Joined: Thu Sep 11, 2008 4:46 pm

Re: Teleporting Item

Post by Cobra »

I made this long time ago so take care of it...

http://www.4shared.com/file/240660997/6 ... orter.html
Image
Abyssal
Posts: 74
Joined: Wed Mar 10, 2010 1:53 am

Re: Teleporting Item

Post 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?
User avatar
Cobra
Posts: 18
Joined: Thu Sep 11, 2008 4:46 pm

Re: Teleporting Item

Post 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.
Image
Abyssal
Posts: 74
Joined: Wed Mar 10, 2010 1:53 am

Re: Teleporting Item

Post 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...
User avatar
Cobra
Posts: 18
Joined: Thu Sep 11, 2008 4:46 pm

Re: Teleporting Item

Post 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;+     
Image
Abyssal
Posts: 74
Joined: Wed Mar 10, 2010 1:53 am

Re: Teleporting Item

Post 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?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Teleporting Item

Post 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)
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.
Abyssal
Posts: 74
Joined: Wed Mar 10, 2010 1:53 am

Re: Teleporting Item

Post 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)
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Teleporting Item

Post by jurchiks »

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.
Abyssal
Posts: 74
Joined: Wed Mar 10, 2010 1:53 am

Re: Teleporting Item

Post by Abyssal »

jurchiks wrote:try something else instead if "is"
Like...?
User avatar
BiggBoss
L2j Veteran
L2j Veteran
Posts: 1104
Joined: Wed Apr 15, 2009 3:11 pm
Location: Spain

Re: Teleporting Item

Post 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(...);}
Image
Abyssal
Posts: 74
Joined: Wed Mar 10, 2010 1:53 am

Re: Teleporting Item

Post 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
User avatar
BiggBoss
L2j Veteran
L2j Veteran
Posts: 1104
Joined: Wed Apr 15, 2009 3:11 pm
Location: Spain

Re: Teleporting Item

Post by BiggBoss »

what? :shock:
Image
Abyssal
Posts: 74
Joined: Wed Mar 10, 2010 1:53 am

Re: Teleporting Item

Post by Abyssal »

BiggBoss wrote:what? :shock:
nothing i just said your help wasnt that useful but i thank you anyway.
User avatar
BiggBoss
L2j Veteran
L2j Veteran
Posts: 1104
Joined: Wed Apr 15, 2009 3:11 pm
Location: Spain

Re: Teleporting Item

Post by BiggBoss »

no, what i mean is that you are not understanding what i wrote :roll:
Image
Post Reply