Limestone Posted July 23, 2016 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Share Posted July 23, 2016 As the title says, how can script like this? Thanks! Quote Link to comment Share on other sites More sharing options...
1 Technoken Posted July 23, 2016 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 505 Reputation: 127 Joined: 04/04/16 Last Seen: April 13 Share 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 Link to comment Share on other sites More sharing options...
0 Technoken Posted July 23, 2016 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 505 Reputation: 127 Joined: 04/04/16 Last Seen: April 13 Share 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 Link to comment Share on other sites More sharing options...
0 Limestone Posted July 23, 2016 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
0 Limestone Posted July 23, 2016 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share Posted July 23, 2016 Thank you! Quote Link to comment Share on other sites More sharing options...
Question
Limestone
As the title says, how can script like this? Thanks!
Link to comment
Share on other sites
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.