Jump to content
  • 0
Sign in to follow this  
canditw

MVP announce script help

Question

I'm currently using this script which gives item to player per MVP Killed and i was wondering if it is possible to add a line saying that 'if player is in 06guild_01, 06guild_02, 06guild_03 it will not give item else if anywhere else it will give item' 

This is because I have a mvp room and I don't want players in the mvp rooms to get the rewards given by the script.

 

 

-    script    Announce1    FAKE_NPC,{
 
OnNPCKillEvent: 
setarray .MVPID[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,2996,2997,1885,1733,1779,1832,1492,1251;
 
for (set .@c, 0; .@c < getarraysize(.MVPID); set .@c, .@c + 1)
    if (killedrid == .MVPID[.@c])
    set .@s, 1; 
        
if (!.@s) end;
announce "Player : [  " +strcharinfo(0) +"  ] has killed [ " +getmonsterinfo(killedrid,0) +" ] and obtained a [Torn Piece of Paper].",0,0xDA70D6;
getitem 7842,1;
end;
}



 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

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

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.