Jump to content
  • 0
Sign in to follow this  
canditw

MVP Death announce

Question

I came across this script and tried to used it. However I'm getting the error and not sure what to do

 

npc_parsesrcfile: Unknown syntax in file 'npc/custom/mvpannounce.txt', line '1'. Stopping...

 

 

Script

-    script    Announce    -1,{
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;

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 get [ Yggdrasilberry ].",0,0xDA70D6;
getitem 607,1;
end;
}

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

-<tab>script<tab>Announce<tab>FAKE_NPC,{

Edited by evilpuncker

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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