Making the Code Execute

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
ofelin
Posts: 3
Joined: Tue Jun 11, 2013 6:06 pm

Making the Code Execute

Post by ofelin »

Greetings l2j community,

This is will be the most silly question that you'd ever heard from someone and apologize for that. :(

I will try to demonstrate my issue so you guys can clearly understand it.

Let's say that i have the following class inside one package

Code: Select all

public class Demonstration {   public Demonstration() {    }    public void doStuff() {    //code    }
Normally i'd create a new Demonstration object inside the Main class to call its method. However, when it comes to l2j i dont know how to actually execute the code from inside the game.

I can write newbie code but i cant even test if it is actually working!

Any help would be highly appreciated

Thank you
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Making the Code Execute

Post by jurchiks »

Where is the code located in? Core or datapack? If core, then check the GameServer class, if datapack, see how scripts are loaded.
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.
Post Reply