A productive day rA community. I'm hoping that even on your busy day like now still you'll be able to help me on my script request.
IT SHOUD BE LIKE THIS:
- ONLY A PLAYER WITH PARTY MEMBERS OF 4 OR MORE HAVE TO GET THE RANDOM BONUS LOOTS. AND ELSE IF SOMEONE AT THAT PARTY BECAME OFFLINE, THE BONUS LOOTS WILL STOPS.
Question
cahadeyelo
A productive day rA community. I'm hoping that even on your busy day like now still you'll be able to help me on my script request.
IT SHOUD BE LIKE THIS:
- ONLY A PLAYER WITH PARTY MEMBERS OF 4 OR MORE HAVE TO GET THE RANDOM BONUS LOOTS. AND ELSE IF SOMEONE AT THAT PARTY BECAME OFFLINE, THE BONUS LOOTS WILL STOPS.
- script PARTY_DROP FAKE_NPC,{ OnNPCKillEvent: .@pid = getcharid(1); getpartymember .@pid,0; getpartymember .@pid,1; getpartymember .@pid,2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { .@rnd = rand(1,100); for( .@i = 0; .@i < getarraysize(.item_arrays); .@i += 3 ) { if( .@rnd <= .item_arrays[.@i+2] ) { getitem .item_arrays[.@i], .item_arrays[.@i+1]; } } } else { message strcharinfo(0), "Some PARTY MEMBERS are offline."; end; } } OnInit: setarray .item_arrays[0],505,1,10,502,1,20,501,1,30; end; }
Link 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.