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  :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock