Using the Hercules emulator. Date download 09-11/02/2016
I apologize in advance for my English, do not scold me harshly. Thank!
Help me please to do so would be
14232, 2, 5, > 0.50%
7615, 1, 3, > 0.50%
7227, 1, 2, > 0.75%
7179, 1, 1; > 0.75%
I cheated on if ( rand( 100 ) < .items[ .@i + 2 ] ) { on if ( rand( 10000 ) < .items[ .@i + 2 ] ) {
14232, 2, 50,
7615, 1, 50,
7227, 1, 75,
7179, 1, 75;
but I'm not sure that this is true
And another thing
conf/battle/drops.conf
// Make broadcast ** Player1 won Pupa's Pupa Card (chance 0.01%) ***
// This can be set to any value between 0~10000.
// Note: It also announces STEAL skill usage with rare items
// 0 = don't show announces at all
// 1 = show announces for 0.01% drop chance items
// 333 = show announces for 3.33% or lower drop chance items
// 10000 = show announces for all items
rare_drop_announce: 10000
The subject 14232, 2, 50, falls just got it but no announcement of the drop.
Very need Your help. Thanks!
- script MvP Drop -1,{
OnNPCKillEvent:
if ( getmonsterinfo( killedrid, 22 ) ) {
for ( .@i = 0; .@i < getarraysize( .items ); .@i += 3 ) {
if ( rand( 100 ) < .items[ .@i + 2 ] ) {
getitem .items[ .@i ], .items[ .@i + 1 ];
announce "Wow! " +strcharinfo( 0 )+ " has obtained " +getitemname( .items[ .@i ] )+ " [" +.items[ .@i + 1 ]+ "] from " +getmonsterinfo(killedrid, 0)+ ".",0;
}
}
}
end;
OnInit:
// <item id>,<amount>,<chance>
setarray .items[0],14232, 2, 5,
7615, 1, 3,
7227, 1, 2,
7179, 1, 1;
end;
}