Jump to content
  • 0
Sign in to follow this  
esquilla13

Item Drop on a Specific Map

Question

Hello, I need a script that will make Mobs drop a specific items by % Chance in a specific Map.

 

Example: All mobs in Map Glast Heim Underground Prison 1 will drop Item 1 at 3% chance, item 2 at 5% chance, and etc ~ The script can specify how many items i want to drop in a map with their chance ~ Yeah like that 

 

 

Thanks for the guys who'll make this request ~ 

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

@@esquilla13

you can also use && condition and squeeze them all into 1 line

-	script	OnKillMonsterDoDropItem	FAKE_NPC,{OnNPCKillEvent:	if ( strcharinfo(3) == "gl_prison" && killedrid == PORING && rand(100) < 1 )		getitem Poring_Coin, 1;	end;}

Share this post


Link to post
Share on other sites
  • 0

how about using OnNPCKillEvent:

if ( strcharinfo(3) == Glast Heim underground Prison )

if ( rand(100) < 3 )

getitem <item1>, 1;

 

it doesn't drop, but get directly into inventory

if you want it as a drop, then have to do source modifications

Share this post


Link to post
Share on other sites
  • 0

how about using OnNPCKillEvent:

if ( strcharinfo(3) == Glast Heim underground Prison )

if ( rand(100) < 3 )

getitem <item1>, 1;

 

it doesn't drop, but get directly into inventory

if you want it as a drop, then have to do source modifications

 

 

-  script  OnKillMonsterDoDropItem  -1,{

 OnNPCKillEvent:

 switch(killedrid) {

   case 1002: // Poring

          if ( strcharinfo(3) == Glast Heim underground Prison )

     if(rand(10000) < 500) { // < 100 = 1% drop chance

       getitem 7539, 1; // Poring Coin

       break;

     } else break;

   

   default: // All other monsters

     break;

 }

}

 

 

 

^- Is that right?

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...
Sign in to follow this  

×
×
  • Create New...

Important Information

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