I have found some similar topics, and I managed to get this working:
- script MVPAnnouncer -1,{
OnNPCKillEvent:
if ( getmonsterinfo(killedrid,MOB_MVPEXP) )
announce strcharinfo(0)+" has defeated "+getmonsterinfo(killedrid,0)+" at "+strcharinfo(3),0,0xFF0101;
end;
}
The problem with this script is that it announces @clones with "null" name, and another problem that it is not announcing NPC spawned mvps, like Lord of Death, Thanatos, Nydhogg's Shadow.
Additionally, I want to extend the script, to only display kills below gmlvl 99, but I think I got this part. So how do I modify the script to counter the above problems?
My script currently:
- script MVPAnnouncer -1,{
OnNPCKillEvent:
if ( getmonsterinfo(killedrid,MOB_MVPEXP) && (getgmlevel() < 99) )
announce strcharinfo(0)+" has defeated "+getmonsterinfo(killedrid,0)+" at "+strcharinfo(3),0,0xFF0101;
end;
}
Another question: What are the default OnEvents? I was thinking about using OnMobKill, but I'm not sure if it's a default event... I'm also unsure if it's wise to run a ckeck on every mobkill... isn't there any other option to announce MVP kills (npc and player spawned ones as well)?
Question
Antares
Hello,
I have found some similar topics, and I managed to get this working:
The problem with this script is that it announces @clones with "null" name, and another problem that it is not announcing NPC spawned mvps, like Lord of Death, Thanatos, Nydhogg's Shadow.
Additionally, I want to extend the script, to only display kills below gmlvl 99, but I think I got this part. So how do I modify the script to counter the above problems?
My script currently:
Another question: What are the default OnEvents? I was thinking about using OnMobKill, but I'm not sure if it's a default event...
I'm also unsure if it's wise to run a ckeck on every mobkill... isn't there any other option to announce MVP kills (npc and player spawned ones as well)?
Link to comment
Share on other sites
6 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.