Jump to content
  • 0

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


sotf

Question


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

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

3 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

attach the event using Permanent_Monster_Spawn or monster or areamonster

 

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

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

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

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