getmapxy( .@map$,.@x,.@y,1 );
that 1 at the end is to get the location on the npc (which yours does not have a location)
look at the documentation for this script function
http://ea.dj-yhn.com/index.php?c=getmapxy
If you want to add MvP points taking account of the killed MvP ID, use quesoph's formula and repeat it with each MvP. To avoid some useless processing time you can use that or if you want some more code efficiency you could use a huge switch statement.
In case you want to add MvP points regardless of the MvP killed, you could use something like this:
OnNpcKillEvent: if ( getmonsterinfo(killedrid,MOB_MVPEXP) > 0 ) { // Mob MVP exp > 0 means MvP dispbottom "You killed "+rid2name(killedrid)+"!"; set #MVPPOINTS, #MVPPOINTS + 1; // +1 MVP Points if you kill a MVP. end; }
P.S.: Quesoph, you have a typo in your script, check the 4th line.