Jump to content
  • 0

Simple Script Request


Musika

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  55
  • Reputation:   0
  • Joined:  08/23/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  



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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  55
  • Reputation:   0
  • Joined:  08/23/12
  • Last Seen:  

Thanks Mr.Sandbox, emma try this out.../ok../thx

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

I'm getting an error when I try.

rid2name(killedrid)

Replace it with...

getmonsterinfo(killedrid,0)
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  55
  • Reputation:   0
  • Joined:  08/23/12
  • Last Seen:  

Ok ill give that a try, having problem with the rid2name../heh

thanks mr.Skorm!../no1

Link to comment
Share on other sites

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.

×
×
  • Create New...