Jump to content
  • 0

Simple Script Request


Question

Posted

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

Posted (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 by sandbox

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...