Musika Posted February 18, 2014 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 55 Reputation: 0 Joined: 08/23/12 Last Seen: March 31, 2016 Share 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 Link to comment Share on other sites More sharing options...
sandbox Posted February 18, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Yesterday at 12:25 PM Share 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 Link to comment Share on other sites More sharing options...
Musika Posted February 18, 2014 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 55 Reputation: 0 Joined: 08/23/12 Last Seen: March 31, 2016 Author Share Posted February 18, 2014 Thanks Mr.Sandbox, emma try this out..... Quote Link to comment Share on other sites More sharing options...
Skorm Posted February 18, 2014 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted February 18, 2014 I'm getting an error when I try. rid2name(killedrid) Replace it with... getmonsterinfo(killedrid,0) Quote Link to comment Share on other sites More sharing options...
Musika Posted February 18, 2014 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 55 Reputation: 0 Joined: 08/23/12 Last Seen: March 31, 2016 Author Share Posted February 18, 2014 Ok ill give that a try, having problem with the rid2name.. thanks mr.Skorm!.. Quote Link to comment Share on other sites More sharing options...
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?
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.