find wherever the player get ported to the throne and replace with:
1) A teleport to the waiting room (you have to add the coords of each castle for such position)
2) Once teleported inside:
a) There are no players inside: schedule a teleport of the players inside. On teleported inside that zone, they are added into a list which the scheduled executor takes to teleport players
b) Theres players alredy: add the player into the list
Hi guys, i have been searching for a nice gif image at google about l2, but couldnt find a nice one. If anyone got some, could you share it with me?
Thanks
you have to increase the java heap memory size for that process (gameserver)
min heap size = Xms
max heap size = Xmx
you can find those parameters by opening startGameServer.bat with notepad
and be sure your ram isnt full when you run gameserver
make the skill that gives noblesse blessing as pasive, and then, add it into armor -> find the tiara -> add the skill in the skill column with the format skillid-skilllevel;
probably, you are adding it on EnterWorld
find
L2PcInstance activeChar = getClient().getActiveChar();
and make it like
final L2PcInstance activeChar = getClient().getActiveChar();
on enter to server:
activeChar.disableAllSkills();
long delay = 60000; //in millis
ThreadPoolManager.getInstance().scheduleGeneral(new Runnable()
{
@Override
public void run()
{
activeChar.enableAllSkills();
}
}, delay);
red name color for pks is hardcoded in client and appear once a server send the packet to the client containing the karma info. You can try to set the name color to white and send again the packet after player gain karma
First of all: GS wont start if C3P0 does not exist (will throw an error and will
end abnormally)
didnt understood the question clarify, but here we go:
check if the library exists:
try
{
File mainjar = new File("l2jserver.jar");
String libpath = mainjar.getAbsolutePath().split("gameserver")[0];
File c3p0 = new File(libpath + "lib/c3p0jarname.jar");
return c3p0.exists();
}
catch(Exception e)
{ }
return false;
check if any class inside c3p0 exists:
try
{
Class<?> func = Class.forName("package.path.here");
Object obj = func.newInstance();
return obj != null;
}
catch(ClassNotFoundException cnfe)
{
}
return false;
go to ColorNameManager.java
find the method called public static void loadValues()
at the end of the method (before the last " } " ), add the
code i posted
nop, theres an unclosed connecton in my code. go to ColorNameManager.loadValues and at the botton of the method add
try{ if(con != null) con.close(); } catch(Exception e){ if(Config.DEBUG) e.printStackTrace(); }
People like you GoDofAdeN (you can all those people leechers, brainless, stealz0rs, newbies and so on) shouldnt be download and/or use any L2J emulator
player.getInventory().unEquipItemInSlot(int slot)
You can get all slots numbers from com.l2jserver.gameserver.itemcontainer.Inventory (they are final int fields)
you may need to broadcast char & userinfo
compare with and applying changes to your project. Those sites where you added custom mods there will be sync problems, so you will have to add it manually, which means, remove the lines preceeded by - in the l2j diff, and add the lines preceeded by +