- script sample -1,{
OnNPCKillEvent:
if (.player_count >= 20) {
if (rand(1, 100) == 1)
getitem 40003, 1;
}
end;
OnPCLoginEvent:
.player_count++;
end;
OnPCLogoutEvent:
.player_count--;
end;
OnUpdate:
if (.player_count < 20) {
announce "There is "+.player_count+"/20 players online, a drop event will start when there is a total of 20 players online!", bc_all;
}
else if (.player_count == 20) {
announce "A total "+.player_count+" player is online now, mini event will start, all monster will now drop Gatcha ticket by 1%", bc_all;
}
end;
}