Jump to content
  • 0

Question

Posted

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 $@MobOkay_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 $@MaxDropChance,10;end;
OnNPCKillEvent:
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;
}

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

any other script you can share?

bump still need this :)

Recommended Posts

Posted (edited)

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
Posted

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

Posted

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.

Posted

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

Posted

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

Posted

@ 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;
}
}

Posted

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

Posted (edited)

- 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
Posted (edited)

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
Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...