event script help

Skilled Illusionist
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
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
 

Attachments

  • Untitled - event script help - RaGEZONE Forums
    Untitled.webp
    18.6 KB · Views: 85
well i've thought of that, but no, since it affects the whole server. and also i'd want to make it to change the hp/exp when it meets certain requirements
 
Upvote 0
I copied this exactly from the BossQuestHard except the fact that in BossQuest its in another function while i put this in the setup function. Perhaps someone can help me recode it? Have been trying to tweak around hoping i can fix it but no it didn't work :(
 
Upvote 0
Back