Page 1 of 1

Making the Code Execute

Posted: Tue Apr 08, 2014 10:44 pm
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

Re: Making the Code Execute

Posted: Wed Apr 09, 2014 9:42 am
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.