Jump to content
  • 0

Mvps in mvp room drop card at o.o1%, the original rate. Outside, card drop is o.5%


donkeyg

Question


  • Group:  Members
  • Topic Count:  344
  • Topics Per Day:  0.08
  • Content Count:  1060
  • Reputation:   1
  • Joined:  02/13/12
  • Last Seen:  

how do i make Mvps in mvp room drop card at o.o1%, the original rate Outside card drop is o.5%

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

You have 2 options to do this:

1. Create a custom monster, a duplicate really, and change its card drop rate, so that it is influenced by your rates properly.

 

OR

 

2. Create a custom monster, a duplicate really, and use this script I created a few years back for eAthena.

 

- script CustomDropRates -1,{
OnInit:
setarray $@MobOkay_ID[0],1651,1649,1650,1647,1646,1648; //Replace XXXX with the ID's of the monsters you want to be affected by this script. Add more as necessariy. *Note only supports 128 different monsters*
set $@MaxDropChance,10;end;

OnNPCKillEvent:
if( strcharinfo(3) != "mapname" ){end;}
for(set @i,0; @i<getarraysize($@MobOkay_ID); set @i,@i+1)
{if (killedrid==$@MobOkay_ID[@i])
{callfunc "DropItemRate";}}
end;
}

function script DropItemRate {
set @i,0;
set @dropID,0;
deletearray $@MobDrop_item[0],128;
getmobdrops(killedrid);
goto iDropItemLoop;

iDropItemLoop:
set @i,rand(1,$@MaxDropChance);
if (@dropID == $@MobDrop_count){dispbottom "Success"; end;}
if (@i==1 && $@MobDrop_rate[@dropID]<=1)
{getitem $@MobDrop_item[@dropID],1;
set @dropID,@dropID+1; goto iDropItemLoop;}
if (@i<=$@MaxDropChance){set @dropID,@dropID+1; goto iDropItemLoop;}
end;
}

The setup for this script is easy really.

1. Create a duplicate of your monster, following the guide here: http://rathena.org/wiki/Custom_Mobs

2. After that, go to your new "custom" mob, and change the card droprate ( or any drops you want to be affected by this script ) to 0.

3. Go to my script, and replace, "mapname" with your actual map you want this to work on.

4. Place script in your npc/custom  folder, and add it to script_custom.conf

5. Either restart your server    OR    @reloadscript     &&    @reloadmobdb

 

After that is done, simply test for any issues.

Once you've determined there aren't any issues simply remove
 

dispbottom "Success";

From this line:

if (@dropID == $@MobDrop_count){dispbottom "Success"; end;}

 

If you have any further questions on how to configure this script further refer to this topic here: http://rathena.org/board/topic/77309-help-custom-drop-rate/?hl=%2Bcustom+%2Bdrop+%2Brate

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

That is a better option, I didn't know it existed. Well, there we go. I'd use Solution #3 as well.

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