kitty14 Posted June 30, 2014 Share Posted June 30, 2014 Hello i'm using this script, but i wanted to add more options? like the prize quantity will ranges from 1~5 . random.. i don't know how. please help me... THANK YOU!- script MVP BADGE -1,{ OnNPCKillEvent: if ( getmonsterinfo( killedrid, MOB_MVPEXP ) && rand(100) < 100 ) { if ( getcharid(1) ) { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( [email protected] = 0; [email protected] < [email protected]; [email protected]++ ) { if ( isloggedin( [email protected][[email protected]], [email protected][[email protected]] ) ) { // what happens if someone in the party member is offline =/ [email protected][[email protected]] = [email protected][[email protected]]; [email protected]++; } } getitem 25009, 1, [email protected][ rand( [email protected] ) ]; } else { getitem 25009, 1; } } end; } Quote Link to comment Share on other sites More sharing options...
Jasc Posted June 30, 2014 Share Posted June 30, 2014 getitem 25009, rand(1,5) 1 Quote Link to comment Share on other sites More sharing options...
kitty14 Posted June 30, 2014 Author Share Posted June 30, 2014 like this? getitem 25009,rand(1,5), [email protected][ rand( [email protected] ) ]; } else { getitem 25009,rand(1,5); } } end; } Quote Link to comment Share on other sites More sharing options...
THANK YOU!
- script MVP BADGE -1,{ OnNPCKillEvent: if ( getmonsterinfo( killedrid, MOB_MVPEXP ) && rand(100) < 100 ) { if ( getcharid(1) ) { getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for ( [email protected] = 0; [email protected] < [email protected]; [email protected]++ ) { if ( isloggedin( [email protected][[email protected]], [email protected][[email protected]] ) ) { // what happens if someone in the party member is offline =/ [email protected][[email protected]] = [email protected][[email protected]]; [email protected]++; } } getitem 25009, 1, [email protected][ rand( [email protected] ) ]; } else { getitem 25009, 1; } } end; }Link to comment
Share on other sites