- Joined
- Feb 19, 2009
- Messages
- 16
- Reaction score
- 1
Hey,
I just started my private server with Bubbles dev 111 and I found out that NPC could not spawn monsters so I added the command!
Here is how to do it:
1. Open Netbeans
2. Open NPCConversationManager.java (in scripting.npc source package!)
3.Add import server.life.MapleLifeFactory; where all the other imports are.
4.At the end, add
right before the last }
5 The end of the script should look like that :
6.Compile and there you go XD
You now have the the NPCcommand cm.spawnmonster(mobID) EDIT: unless you used another name for spawnmonster
Sorry if my tut is bad, It's my first one so....
Hope I helped
I just started my private server with Bubbles dev 111 and I found out that NPC could not spawn monsters so I added the command!
Here is how to do it:
1. Open Netbeans
2. Open NPCConversationManager.java (in scripting.npc source package!)
3.Add import server.life.MapleLifeFactory; where all the other imports are.
4.At the end, add
Code:
public void spawnmonster(int mobid){
getPlayer().getMap().spawnMonsterOnGroudBelow(MapleLifeFactory.getMonster(mobid), getPlayer().getPosition());
}
5 The end of the script should look like that :
Code:
public void saveGetFlorina(int a) {
if (a == 0)
getPlayer().saveLocation(SavedLocationType.FLORINA);
else
getPlayer().getSavedLocation(SavedLocationType.FLORINA);
}
public void spawnmonster(int mobid){
getPlayer().getMap().spawnMonsterOnGroudBelow(MapleLifeFactory.getMonster(mobid), getPlayer().getPosition());
}
}
You now have the the NPCcommand cm.spawnmonster(mobID) EDIT: unless you used another name for spawnmonster
Sorry if my tut is bad, It's my first one so....
Hope I helped
Last edited:


