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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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