As title says, can someone make a script where it gives random items to players who kills monster only in a certain map like prt_fild08 with a chance of 20%. sample items 607 608 609 610. Thanks
EDIT:
I ended up making it myself, how is this? Not tested because im currently not home.
- script test -1,{
OnNPCKillEvent:
getmapxy (.@map$, .@x, .@y, 0);
set .@t_maps$[0],"prt_fild08","prt_fild09";
set .@t_reward$[0],607,608;
for (set .@a, 0; .@a < getarraysize(.@t_maps$); set .@a, .@a + 1) {
if( .@map$ == .@t_maps$[.@a]) {
getitem getarraysize(.@t_reward$),1;
end;
}
}
}
Question
Mabuhay
As title says, can someone make a script where it gives random items to players who kills monster only in a certain map like prt_fild08 with a chance of 20%. sample items 607 608 609 610. Thanks
EDIT:
I ended up making it myself, how is this? Not tested because im currently not home.
Edited by MrVandalBusLink to comment
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.