Zalbahis 0 Posted July 17, 2013 (edited) I'm requesting for a MVP Hunting Points.. Every MVP gives points to its killer depending on the MVP difficulty.. Example: Phreeoni = 1 Point Baphomet = 2 Points Thanatos = 5 Points etc.... I hope that, it explains well.. Thank you in advance and more power to Hercules Devs. PS: Or just 1 Point per MVP kill if you don't have the script above .. Edited July 17, 2013 by Zalbahis Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted July 17, 2013 OnNpcKillEvent: if ( killedrid == 1159 ) { // 1159 is phreeoni's monster ID. dispbottom "You killed Phreeoni"; set #MVPPOINTS, #MVPOINTS + 1; // +1 MVP Points if you kill phreeoni. end; } 1 Zalbahis reacted to this Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted July 17, 2013 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. 1 Zalbahis reacted to this Quote Share this post Link to post Share on other sites
0 quesoph 105 Posted July 17, 2013 Oh thanks for pointing that out anyway This is account based. set #MVPPOINTS, #MVPPOINTS + 1; And this is character based. set MVPPOINTS, MVPPOINTS + 1; 1 Zalbahis reacted to this Quote Share this post Link to post Share on other sites
0 Capuche 9 Posted July 18, 2013 Note: onnpckillevent won't work for monsters with their own event (like thanatos summoned by quest) Quote Share this post Link to post Share on other sites
0 Zalbahis 0 Posted July 19, 2013 Thanks guys!, it's fully working now .. Quote Share this post Link to post Share on other sites
0 youtube 0 Posted July 19, 2013 if i try this for EA only is work? if is work can you make a NPC MVP points? Quote Share this post Link to post Share on other sites
I'm requesting for a MVP Hunting Points..
Every MVP gives points to its killer depending on the MVP difficulty..
Example:
Phreeoni = 1 Point
Baphomet = 2 Points
Thanatos = 5 Points
etc....
I hope that, it explains well..
Thank you in advance and more power to Hercules Devs.
PS: Or just 1 Point per MVP kill if you don't have the script above ..
Edited by ZalbahisShare this post
Link to post
Share on other sites