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
npc_parsesrcfile: Unknown syntax in file 'npc/custom/mvpannounce.txt', line '1'. Stopping...
Script
Code:
- 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;
}