Jump to content
  • 0

[Question] Lets Say That Im Adapting From L2J To L2Emu


Question

Posted (edited)

This for example







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

import com.l2jserver.gameserver.ai.CtrlIntention;
import com.l2jserver.gameserver.datatables.NpcTable;
import com.l2jserver.gameserver.instancemanager.GrandBossManager;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.templates.L2NpcTemplate;
import com.l2jserver.gameserver.network.serverpackets.ActionFailed;
import com.l2jserver.gameserver.network.serverpackets.MyTargetSelected;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
import com.l2jserver.gameserver.network.serverpackets.ValidateLocation;

import javolution.text.TextBuilder;

public class L2GrandBossManagerInstance extends L2Npc
{
	private static final int[] BOSSES =
	{
		29001, 29006, 29014, 29019, 29020, 29022, 29028, 29045
	};
	
	public L2GrandBossManagerInstance(int objectId, L2NpcTemplate template)
	{
		super(objectId, template);
	}
	
	@Override
	public void onAction(L2PcInstance player)

How it would be easier to make it work?

 

 

a. Create the coms (copy-paste from l2j to l2emu) but this could interact with the original java from emu i guess?... 

b. Just change from com to l2ft or whatever and check it well to make it right (but then again ,if theres something deleted from emu pack like variables and etc,it could lead to trouble and harder adaption for newbies [me = example],this would confuse me already since i lack the knowledge)

c. tell me urs xD

Edited by Karasu

1 answer to this question

Recommended Posts

  • 0
Posted

Delete all imports, rename the package to fit with the location of the class in your pack (cp the name of a class "from same hierarchy" if you got doubt), save the file (should fix imports) and then fix following :

  • class already exists, but under another name ;  search it (ctrl+f over your project).
  • introduce the missing class (happens rarely, but can happen for missing packets / features). Generally you have many things to add, because class to add depends about others classes for save/load/inheriting stuff.
  • search another way to do it, happens only in really particular occasions (TextBuilder can be replaced by StringBuilder, for example, if L2Emu hasn't Javolution).

I'm not sure L2JFree got a centralized grandbossmanager system... From what I rem they got managers for each GB.

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...