Jump to content
  • 0

[help] adding java codes


Question

Posted

hello,

 

i'm using l2jserver and i try to add some  java codes from this forum which i think are usefull for my server but... i dont know

 

as example this http://www.maxcheaters.com/forum/index.php?topic=124847.0

 

but when i compile i get error - i create other file with name "L2PVPInstance.java" adding code from above

 

 

and other codes which i have to add but in files which exist - i dont understand smth here from guides which i read....   to which lines i have to add codes if i add to end file these codes i get error....

 

example this : http://www.maxcheaters.com/forum/index.php?topic=160623.0

 

i know its smth what i dont understand can anyone explain me a bit .....  Thanks :P

Recommended Posts

  • 0
Posted

so what i have to do ? :P

 

i just create a file in com/l2jserver/gameserver/model/actor/ L2PVPInstance.java  added the code which i found here..

 

what i have to do ? :P

  • 0
Posted

so what i have to do ? :P

 

i just create a file in com/l2jserver/gameserver/model/actor/ L2PVPInstance.java  added the code which i found here..

 

what i have to do ? :P

 

import it...use your eclipse man it has everything you need

  • 0
Posted

ok ok.. asking cause i dont know...  1st time with eclipse..

 

i dont know how to import  ...

 

moce your mouse over the highlighted part and a quick fix box will appear than its easy

  • 0
Posted

o was still try with  this code and i found smth....

 

check here

 

package com.l2jserver.gameserver.model.actor.instance;

import java.util.StringTokenizer;

import com.l2jserver.gameserver.TradeController;
import com.l2jserver.gameserver.model.L2Multisell;
import com.l2jserver.gameserver.model.L2TradeList;
import com.l2jserver.gameserver.network.serverpackets.ActionFailed;
import com.l2jserver.gameserver.network.serverpackets.ExBuySellListPacket;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
import com.l2jserver.gameserver.templates.chars.L2NpcTemplate;
import com.l2jserver.gameserver.util.StringUtil;

 

import com.l2jserver.gameserver.util.StringUtil;  - this part.. i search in this location and this file doesent exist.. what i have to do ? :P

 

 

 

 

  • 0
Posted

[javac] C:\server Source\srv\L2_GameServer\java\com\l2jserver\gameserver\model\actor\instance\L2PVPInstance.java:89: cannot find symbol
    [javac] symbol  : variable StringUtil
    [javac] location: class com.l2jserver.gameserver.model.actor.instance.L2PVPInstance
    [javac] 			final StringBuilder html1 = StringUtil.startAppend(2000, 
    [javac] 	

that lane isnt finished

  • 0
Posted

[javac] C:\server Source\srv\L2_GameServer\java\com\l2jserver\gameserver\model\actor\instance\L2PVPInstance.java:89: cannot find symbol
    [javac] symbol  : variable StringUtil
    [javac] location: class com.l2jserver.gameserver.model.actor.instance.L2PVPInstance
    [javac] 			final StringBuilder html1 = StringUtil.startAppend(2000, 
    [javac] 	

that lane isnt finished

 

 

whats mean that

  • 0
Posted

 

whats mean that

i want to say that you cant have a line

final StringBuilder html1 = StringUtil.startAppend(2000, 

because its not finished.

Anyway, im wrong, your problem is that eclipse do not recognizes the import, if its good written try to copy the same line from another file that use the same import, it can sound stupid, but worked for me more that once  :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...