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