Jump to content
  • 0

MVP Announcer


Lugia

Question


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   2
  • Joined:  08/23/12
  • Last Seen:  

Hello, I was requesting for a script which announce after killing a boss or mini boss monster.

What is the difference right now?

 

1. This is applicable for GM Only, Player with GM level of 1 and above.

2. If he/she kill an mvp his/her name would be announce world wide.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  


- script Test -1,{

OnNPCKillEvent:

setarray .mobid[0],1511,1647,1785,1630,1399,1039,1874,2068,1272,1719,1046,1389,1112,1115,1957,1418,1871,1252,1768,1086,1688,1646,

1373,1147,1059,1150,1956,2022,1087,1190,1038,1157,1159,1502,1623,1650,1583,1708,1312,1751,1685,1648,1917,1658; // Add MvP Ids

set .a, 1;

for (set .@c, 0; .@c < getarraysize(.mobid); set .@c, .@c + 1)

if (killedrid == .mobid[.@c])

set .@s, 1;

if (!.@s) end;

if (.a)

if (getgmlevel() >= 1) {

announce "[ GM ] "+strcharinfo(0)+" has killed MVP Monster named [ "+getmonsterinfo(killedrid,0)+" ] which located at the map of [ "+strcharinfo(3)+" ]",0;

end;

}

}

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Another way

-	script	Test	-1,{
OnNPCKillEvent: 
	if ( getmonsterinfo( killedrid,21 )&0x0020 && getgmlevel() > 0 )
		announce "[ GM ] "+strcharinfo(0)+" has killed MVP Monster named [ "+getmonsterinfo(killedrid,0)+" ] which located at the map of [ "+strcharinfo(3)+" ]",0;
	end;
}
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...