Grimmjow 1 Posted March 11, 2016 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; } Quote Share this post Link to post Share on other sites
0 Aeromesi 180 Posted March 11, 2016 Did you try strmobinfo to get the name by id of mob? Quote Share this post Link to post Share on other sites
0 Grimmjow 1 Posted March 12, 2016 Did you try strmobinfo to get the name by id of mob? I understand every recipe in the mob? It can be an example? Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted March 12, 2016 - script MvP Drop FAKE_NPC,{ OnNPCKillEvent: if (getmonsterinfo(killedrid, 22)) { for (.@i = 0; .@i < getarraysize(.items); .@i += 3) { if ( rand( 10000 ) < .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)+ ".",bc_all; } } } end; OnInit: // <item id>,<amount>,<chance> // Chance: 1 = 0.1% setarray .items[0],14232, 2, 5, 7615, 1, 3, 7227, 1, 2, 7179, 1, 1; end; } 1 Grimmjow reacted to this Quote Share this post Link to post Share on other sites
0 Grimmjow 1 Posted March 12, 2016 - script MvP Drop FAKE_NPC,{ OnNPCKillEvent: if (getmonsterinfo(killedrid, 22)) { for (.@i = 0; .@i < getarraysize(.items); .@i += 3) { if ( rand( 10000 ) < .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)+ ".",bc_all; } } } end; OnInit: // <item id>,<amount>,<chance> // Chance: 1 = 0.1% setarray .items[0],14232, 2, 5, 7615, 1, 3, 7227, 1, 2, 7179, 1, 1; end; } Thank you very much! I have added and set, like all works as it should. There was a question about above The subject 14232, 2, 50, falls just got it but no announcement of the drop. A new question. It was established 7227, 1, 10, // TCG Card, including @ autoloot 0.4 and drop flies into the alt + e! why? Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted March 13, 2016 Autoloot doesn't affect the script, you use getitem, which goes directly to inventory, if you use makeitem (with proper Co ordinates , it would always drop item on floor) 1 Grimmjow reacted to this Quote Share this post Link to post Share on other sites
0 Grimmjow 1 Posted March 14, 2016 Autoloot doesn't affect the script, you use getitem, which goes directly to inventory, if you use makeitem (with proper Co ordinates , it would always drop item on floor) Thanks! Quote Share this post Link to post Share on other sites
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%) ***
Share this post
Link to post
Share on other sites