Jump to content
  • 0
Grimmjow

Please help MvP Drop

Question

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;
	}
	

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0


- 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;

}

Share this post


Link to post
Share on other sites
  • 0

 

-	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, 50falls 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?

Share this post


Link to post
Share on other sites
  • 0

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)

Share this post


Link to post
Share on other sites
  • 0

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!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.