Jump to content
  • 0
noobsai

custom droprate

Question

is there any script that makes some of MVP card 10% drop instead of 40%

this is my drops.conf. 75% for normal cards and 40% for MVP

but it applies event in thana card

item_rate_card: 750000

item_rate_card_boss: 400000

item_drop_card_min: 1

item_drop_card_max: 10000

i used this script

- script CustomDropRates -1,{
OnInit:
setarray [email protected]_ID[0],1708,1646,1647,1648,1649,1650,1651,1871,1768; //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 [email protected],10;end;
OnNPCKillEvent:
for(set @i,0; @i<getarraysize([email protected]_ID); set @i,@i+1)
{if ([email protected]_ID[@i])
{callfunc "DropItemRate";}}
end;
}
function script DropItemRate {
set @i,0;
set @dropID,0;
deletearray [email protected]_item[0],128;
getmobdrops(killedrid);
goto iDropItemLoop;
iDropItemLoop:
set @i,rand(1,[email protected]);
if (@dropID == [email protected]_count){dispbottom "Success"; end;}
if (@i==1 && [email protected]_rate[@dropID]<=1)
{getitem [email protected]_item[@dropID],1;
set @dropID,@dropID+1; goto iDropItemLoop;}
if (@i<[email protected]){set @dropID,@dropID+1; goto iDropItemLoop;}
end;
}

but it makes my thana to 0.1% and other modified cards

any other script you can share?

bump still need this :)

Link to comment
Share on other sites

33 answers to this question

Recommended Posts

since you post at script release section...i assume you looking for a script to make a custom rate..

then you can try it in this way.....

remove the Card from the Monster in the mob_db.txt

then load this script

[ Pastebin ] Custom Item Rate

you can add as many as you want..

but do not add more than hundred i think there is still a limit..

// CustomRateCard( <MobID>,<CardID>,<Rate> );
// Rate : 1 = 0.01%  /  1000 = 10%  /  10000 = 100%

Item Drop Rate wont be shown using @mi since the database has been edited..and @mi only read from the mob_db.txt

and please do let me know if you found the limit....

Re-Edit : Update Announce Problem

Edited by Emistry
  • Upvote 1
Link to comment
Share on other sites

it wont show any card rate..coz you already removed it from mob_db.txt

@mi only read the mob_db.txt

otherwise you can use this.

http://rathena.org/board/topic/56424-advanced-common-drop-system/

Link to comment
Share on other sites

either you set it wrongly or what...i duno..

because i already tested this script..and it work perfectly fine

tested with

thanatos card with 100%

eddga card with 50%

both also works..

Link to comment
Share on other sites

i wonder why it doesnt work to me

the thing i did to remove the card is make it 0,0

but it doesnt drop when i use @Monster and @killmonster

Link to comment
Share on other sites

of course it wont drop....

the script can only be triggered when you killed the monster using your characters..

using @killmonster wont be able to trigger this event.

Link to comment
Share on other sites

I've loaded your script Emistry but everytime I kill the listed monster in the script, It always announce the one who killed everytime the monster is killed (listed in the script).

Example :

[Me get 1 Poring Card ] but I don't have a poring card in my inven..

Link to comment
Share on other sites

oh...thx for informing...it seem like i missed some curley wraping in the script..xD

well it should be fixed by now..revisit the above post to get the new updated link

Link to comment
Share on other sites

@ Emistry is't ok if i remove the Announce?.. because its too annoing if everytime i get some items and its going to announce it..

- script Sample -1,{
function CustomRateCard;
OnNPCKillEvent:
// CustomRateCard( <MobID>,<CardID>,<Rate> );
// Rate : 1 = 0.01%  /  1000 = 10%  /  10000 = 100%
CustomRateCard( 1708,4399,10000 );
CustomRateCard( 1115,4123,1500 );
end;
function CustomRateCard {
if( killedrid == getarg(0) && rand( 10000 ) <= getarg(2) ){
  getitem getarg(1),1;
}
return;
}
}

Link to comment
Share on other sites

i want to make it 1%

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

in that table there is no 1%

so i tried using 100 as a multiplier still i get a 100% chance still wondering why

Link to comment
Share on other sites

- script Sample -1,{

function CustomRateCard;

OnNPCKillEvent:

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

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

CustomRateCard( 1708,4399,100 );

CustomRateCard( 1115,4123,1500 );

end;

function CustomRateCard {

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

getitem getarg(1),1;

announce "[ "+strcharinfo(0)+" ] get 1 "+getitemname( getarg(1) ),0;

}

return;

}

}

and i thought of the settings in battle conf, it has the multiplier,

well i want all my mvp cards to drop at 5% and thana card will only be the 1 at 1%

Owww Nevermind, It was a mis conflict, because i have 2 scripts installed so it reads the 1st one, it was duplicated >.> shame

thanks anyways.. btw does the multipier 100 makes it 1%? for the record :P

Edited by jem578
Link to comment
Share on other sites

Installed this script. The monsters don't drop anything even etc items or equips. I changed the card and card drop per to 0 on mob_db

Link to comment
Share on other sites

check post#2 ....

if you not sure then show you edited script...and specify what you try to archieve,....

beside....rAthena got a better one already... you can try also...

https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/db/mob_item_ratio.txt

Link to comment
Share on other sites

check post#2 ....

if you not sure then show you edited script...and specify what you try to archieve,....

beside....rAthena got a better one already... you can try also...

https://rathena.svn...._item_ratio.txt

for the item_ratio:

it works only for MVPS right???? made my cards 100% in the drop rate and added phreeoni to this txt as 20% drop////it still drops 100% though...what did I miss???

Edited by miczster
Link to comment
Share on other sites

since you post at script release section...i assume you looking for a script to make a custom rate..

then you can try it in this way.....

remove the Card from the Monster in the mob_db.txt

then load this script

[ Pastebin ] Custom Item Rate

you can add as many as you want..

but do not add more than hundred i think there is still a limit..

// CustomRateCard( <MobID>,<CardID>,<Rate> );
// Rate : 1 = 0.01%  /  1000 = 10%  /  10000 = 100%

Item Drop Rate wont be shown using @mi since the database has been edited..and @mi only read from the mob_db.txt

and please do let me know if you found the limit....

Re-Edit : Update Announce Problem

sir what if i didnt delete it in the mob db??

because i want to use this script for some etc drops ^^

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

Important Information

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