Jump to content
  • 0

Broadcast when a specific monster(s) is/are killed


Question

Posted (edited)

Hi! Here I am once again asking for your help guys, I hope you don't mind.

 

Well I am planning to add custom MVP Bosses on our server, and since they're quite strong and hard to kill, can I request for a script that when a player defeats them, it will automatically announce it thru the whole server. For bragging rights of course :D

(and for security purpose as well, preventing GMs to spawn feed players, because I plan for them to drop quest requirements as well)

 

Example:

<player_name> of <guild_name> has slain <defeated_monster_name> at <map_name>!

(if possible, with an option where I can change the color of the message)

(and something where I could just input the mob IDs of the mob I want this to take effect on)

 

Thanks in advance!

Edited by orochimakoto

3 answers to this question

Recommended Posts

Posted (edited)

^how to I add that to my server? (Sorry I am very noobish when it comes to this)

edit: nvm, figured this one out myself

 

and what are the other ways? :o

 

Thanks! I modified the script you gave me to fit our server. You were a great help, thanks again! :D

Edited by orochimakoto
  • 0
Posted
On 4/26/2013 at 12:22 AM, Emistry said:

OnNPCKillEvent:
if( killedrid == mob_id )
	announce strcharinfo(0)+" of "+strcharinfo(2)+" slained "+getmonsterinfo( killedrid,MOB_NAME )+" at "+strcharinfo(3),bc_all,0xFF0000";
end; 

 

 there are few way to attach the event too if you dont want to use OnNPCKillEvent...

hello where to put this

 

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...