i'd like to have a script where if i kill a poring all the user in that party (must be on the map where the poring was summoned) will recieve a bronze coin and will also receieve a gold coin but for about 10% chance so basically its like if i keep killing the poring monster there will be a 10% chance that all the user in the party will get the gold coin eventually.....
Okay
- script hjkl -1,{
OnMobDead:
if( getcharid(1) ) {
getpartymember( getcharid(1),2 );
getpartymember( getcharid(1),1 );
.@map_killer$ = strcharinfo(3);
.@chance = rand(10);
for( .@i = 0; .@i < $@partymembercount; .@i++ )
if( isloggedin( $@partymemberaid[ .@i ],$@partymembercid[ .@i ] ) )
if( !getmapxy( .@map$, .@x, .@y, 0, rid2name( $@partymemberaid[ .@i ] ) ) && .@map$ == .@map_killer$ ) {
getitem 501, 1, $@partymemberaid[ .@i ];// put ID bronze coin inst