R> MVP Hunting Points..

Zalbahis

New member
Messages
26
Points
0
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
default_happy.png
..

 
Last edited by a moderator:
Code:
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;	}
 
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.

 
Oh thanks for pointing that out
default_biggrin.png


anyway

This is account based.

set #MVPPOINTS, #MVPPOINTS + 1;

And this is character based.

Code:
set MVPPOINTS, MVPPOINTS + 1;
 
Note: onnpckillevent won't work for monsters with their own event (like thanatos summoned by quest)
 

 
Back
Top