Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

cm.openNpc

Initiate Mage
Joined
Jun 12, 2011
Messages
73
Reaction score
5
Does anyone know how to add cm.openNpc to Lithium

I tried adding this from my v62 repack

public void openNpc(int id) {
dispose();
NPCScriptManager.getInstance().start(getClient(), id);
}

then it said it needs override command so I added thi

@override
public void openNpc(int id) {
dispose();
NPCScriptManager.getInstance().start(getClient(), id);
}

then is says
"Create missing javadoc"

and I click it and it makes this

/**
*
* @param id
*/
@Override
public void openNpc(int id) {
dispose();
NPCScriptManager.getInstance().start(getClient(), id);
}

I have no Idea what to do help please :)
 
Junior Spellweaver
Joined
Apr 18, 2009
Messages
158
Reaction score
8
An example how you can make a NPC open when you reach level 10 as a beginner
PHP:
        if (GameConstants.isBeginnerJob(job) && level == 10) {
            NPCScriptManager.getInstance().start(getClient(), 9200000);
        }
You have to put this in the levelUp function in MapleCharacter, I don't know what you want to use it with so modify it.
 
Upvote 0
Have Fun!
Joined
Nov 2, 2008
Messages
481
Reaction score
70
You don't JavaDoc for it to work. Are you getting any other compilation error?

-Sent from my mobile-
 
Upvote 0
Initiate Mage
Joined
Jun 12, 2011
Messages
73
Reaction score
5
An example how you can make a NPC open when you reach level 10 as a beginner
PHP:
        if (GameConstants.isBeginnerJob(job) && level == 10) {
            NPCScriptManager.getInstance().start(getClient(), 9200000);
        }
You have to put this in the levelUp function in MapleCharacter, I don't know what you want to use it with so modify it.

this works lool thanks a lot !
 
Upvote 0
Back
Top