Jump to content
  • 0

Custom Drop from MVP, VIP get double drop


diamondhole

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

Hello guys i have been using this script for custom drop from MVP with 5% chances, is it possible do make if VIP get 10% chances. Thank you in advance, here's the script 

 

Quote

-    script    Sample    -1,{

function    CustomRateCard;

OnNPCKillEvent:

// CustomRateCard( <MobID>,<CardID>,<Rate> );

// Rate : 1 = 0.01% / 1000 = 10% / 10000 = 100%

CustomRateCard( 1115,7941,500 ); // Edga

CustomRateCard( 1059,7941,500 ); // Mistress

CustomRateCard( 1150,7941,500 ); // Moonlight

CustomRateCard( 1147,7941,500 ); // Maya

CustomRateCard( 1159,7941,500 ); // Phreeoni

CustomRateCard( 1312,7941,500 ); // Turtle General

CustomRateCard( 1087,7941,500 ); // Orc Hero

CustomRateCard( 1190,7941,500 ); // Orc Lord

CustomRateCard( 1112,7941,500 ); // Drake

CustomRateCard( 1038,7941,500 ); // Osiris

CustomRateCard( 1046,7941,500 ); // Doppelganger

CustomRateCard( 1373,7941,500 ); // Lord of Death

CustomRateCard( 1492,7941,500 ); // Incantation Samurai

CustomRateCard( 1157,7941,500 ); // Pharoh

CustomRateCard( 1272,7941,500 ); // Dark Lord

CustomRateCard( 1039,7941,500 ); // Baphomet


end;

function    CustomRateCard    {

if( killedrid == getarg(0) && rand( 10000 ) <= getarg(2) ){

getitem getarg(1),1;

}

return;

}

}

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 1

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

function    CustomRateCard    {
if(vip_status(VIP_STATUS_ACTIVE))
	.@chance = 5000;
else
	.@chance = 10000;
if( killedrid == getarg(0) && rand( .@chance ) <= getarg(2) ){
	getitem getarg(1),1;
	}
return;
}

please use a codebox.

Edited by crazyarashi
Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...