- Joined
- Jul 19, 2012
- Messages
- 313
- Reaction score
- 11
okay, so i was scripting a event script similar to the mini dungeon, and for some reason, I couldn't edit the monster's hp and exp. so here's the script
this is just part of the script (which is all about the monster spawns etc. . the rest is just all about playerEntry, playerExit which i didnt touch yet, at all)
can someone please help me fix this. as you can see, i've already increased the mob exp and hp drastically, but the exp nor hp does change. here's a screenshot of the exp gain (which is the original unchanged exp)
any help/fix is greatly appreciated. thanks
PHP:
function setup(eim, partyid) {
var mob = em.getMonster(xxxxxxx);
var modified = em.newMonsterStats();
modified.setOExp(mob.getMobExp() * 100);
modified.setOHp(mob.getMobMaxHp() * 10);
modified.setOMp(mob.getMobMaxMp());
mob.setOverrideStats(modified);
eim.registerMonster(mob);
var instanceName = "xxx" + partyid;
var eim = em.newInstance(instanceName);
var map = eim.createInstanceMapS(eventmapid);
map.resetAllSpawnPoint(xxxxxxx, 1);
map.resetFully();
eim.startEventTimer(600000); // 10min
return eim;
}
this is just part of the script (which is all about the monster spawns etc. . the rest is just all about playerEntry, playerExit which i didnt touch yet, at all)
can someone please help me fix this. as you can see, i've already increased the mob exp and hp drastically, but the exp nor hp does change. here's a screenshot of the exp gain (which is the original unchanged exp)
any help/fix is greatly appreciated. thanks

