Musika Posted February 18, 2014 Posted February 18, 2014 Sup rathena.. Just wanted to request a script like this: When a certain monster is killed, it will announce the map location and x,y coordinates.. Can seem to get it right.. The map is "+.Map$+" and the coordinates are "+.x$+"????? "+.y$+"???../e18.. Help? Quote
sandbox Posted February 18, 2014 Posted February 18, 2014 (edited) OnNPCKillEvent: if(killedrid == 1234) { //Needed or else every monster killed will be announced. getmapxy(.@map$,.@x,.@y,0); announce rid2name(killedrid)+" was killed in "+.@map$+" "+.@x+" "+.@y,bc_all; } end; Edited February 18, 2014 by sandbox Quote
Musika Posted February 18, 2014 Author Posted February 18, 2014 Thanks Mr.Sandbox, emma try this out..... Quote
Skorm Posted February 18, 2014 Posted February 18, 2014 I'm getting an error when I try. rid2name(killedrid) Replace it with... getmonsterinfo(killedrid,0) Quote
Musika Posted February 18, 2014 Author Posted February 18, 2014 Ok ill give that a try, having problem with the rid2name.. thanks mr.Skorm!.. Quote
Question
Musika
Sup rathena..
Just wanted to request a script like this:
When a certain monster is killed, it will announce the map location and x,y coordinates..
Can seem to get it right..
The map is "+.Map$+" and the coordinates are "+.x$+"????? "+.y$+"???../e18..
Help?
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.