I've been hoping someone would release this (or re-release). Been looking for a while.
I don't use moopledev, I use an older revision of shootsource. I'm constantly wondering why the two differ from int or byte, amongst many other things.
So...
Added everything to NPCConversation manager, added the imports, everything going well.
PHP:public int getPlayerCount(int mapid) { //DstroyerDev, from Thane Krios return c.getChannelServer().getMapFactory().getMap(mapid).getCharacters().size(); } public int countMonster (int map) { //countMonster in MapleMap not getCountMonster return c.getChannelServer().getMapFactory().getMap(map).countMonster(); }
The error I'm getting is with the countMonster:
return c.getChannelServer().getMapFactory().getMap(map).countMonster();
required: int, found: no arguments, reason: actual and formal arguments differ in length
here is my MapleMap method this it is referring to:
PHP:public int countMonster(int id) { int count = 0; for (MapleMapObject m : getMapObjectsInRange(new Point(0, 0), Double.POSITIVE_INFINITY, Arrays.asList(MapleMapObjectType.MONSTER))) { if (((MapleMonster) m).getId() == id) { count++; } } return count; }
I've messed around a bit, but I can't resolve the issue. I'll promptly admit to being more experienced with java scripts opposed to classes, and any education on why the error is happening, and how to go about fixing it (I do work, no need to spoonfeed), please shed some light my way!
countMonster(int id) as declared in your MapleMap file takes an integer parameter (presumably the ID of the monster you want to count the occurrence of in your map), you have called it with no parameters in your NPCConversationManager's countMonster() function.
@OP This is so cool! I really respect how it was all done with essentially just NPCs. Sweet job.