Jump to content
  • 0

custom droprate


noobsai

Question


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  70
  • Reputation:   0
  • Joined:  02/05/12
  • Last Seen:  

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 :)

Link to comment
Share on other sites

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  29
  • Reputation:   1
  • Joined:  02/26/12
  • Last Seen:  

@emistry if i delete the card in mob_db.txt it still drop coz of [ Pastebin ] Custom Item Rate?

i'll try this also thanks .. emistry

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

yes...player will still get the Card...but depend on your rate you set in the script....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  29
  • Reputation:   1
  • Joined:  02/26/12
  • Last Seen:  

@emistry can i add item too ? not card .. wondering if its okay? thanks

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

yes..i think it should work with items as well...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  70
  • Reputation:   0
  • Joined:  02/05/12
  • Last Seen:  

trying this now tyvm sir emistry :)

i cant find the card rate when i use @mi on the boss

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  70
  • Reputation:   0
  • Joined:  02/05/12
  • Last Seen:  

yea i tried to remove but no card drops on thana even i change it to 10000

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  70
  • Reputation:   0
  • Joined:  02/05/12
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

@ 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


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  77
  • Reputation:   3
  • Joined:  03/25/12
  • Last Seen:  

can i ask where to put this script?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

can i ask where to put this script?

http://rathena.org/wiki/Adding_a_Script

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   0
  • Joined:  02/12/12
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

show ur script...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   0
  • Joined:  02/12/12
  • Last Seen:  

- 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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

btw does the multipier 100 makes it 1%? for the record

yes...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  07/26/12
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   7
  • Joined:  10/08/12
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

ur setting + reload the settings

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

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