Limestone Posted July 23, 2016 Posted July 23, 2016 As the title says, how can script like this? Thanks! Quote
1 Technoken Posted July 23, 2016 Posted July 23, 2016 (edited) Try this - script mvp_chest -1,{ OnNPCKillEvent: if ( getmonsterinfo( killedrid, MOB_MVPEXP ) ) { getmapxy(.@map$,.@x,.@y,0); monster .@map$,rand(.@x,.@x-3),rand(.@y-3,.@y),"--ja--",1324,1; } end; } Idk if there's a script that get the killed monster coordinates. But this script will summon the treasure chest near the killer. EDIT: If you want it to be dropped spawned exactly where the monster was killed maybe you can use this patch LINK Edited July 23, 2016 by Technoken 3 Quote
0 Technoken Posted July 23, 2016 Posted July 23, 2016 (edited) - script mvp_chest -1,{ OnNPCKillEvent: if ( getmonsterinfo( killedrid, MOB_MVPEXP ) ) { monster "prontera",0,0,"--ja--",1324,1; } end; } Edited July 23, 2016 by Technoken Quote
0 Limestone Posted July 23, 2016 Author Posted July 23, 2016 - script mvp_chest -1,{ OnNPCKillEvent: if ( getmonsterinfo( killedrid, MOB_MVPEXP ) ) { monster "prontera",0,0,"--ja--",1324,1; } end; } Hi! How about spawn of the treasure box beside the mvp? Quote
Question
Limestone
As the title says, how can script like this? Thanks!
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.