I thought of including costumes among the mobs, but to avoid complicating my life I created this script that I haven't tested:
- script Costume_Drop-1,{OnNPCKillEvent:if( rand(10000)<=3){//0.03% drop rate.@item_id= F_Rand(31236,20156,19524,20120,20394,20334,31178);//costume drop list
announce "Congratulations to the player "+ strcharinfo(0)+" who, after killing a "+ getmonsterinfo( killedrid, MOB_NAME )+" in "+ strcharinfo(3)", got a rare costume!",0,0x00FF00;
getitem .@item_id,1;}
With this script every monster on the server has a 0.03% chance of dropping one of the costumes on the list (I'm not sure it works!) And a global announcement is sent for congratulations.
But now I thought that it is better to insert a specific costume for a specific mob as in this list: https://www.shining-moon.com/helheim/index.php/Costume_Drops#Costume_List (thanx @fr0sty123456789 for this idea!)
In this case I could use the file "/rathena/db/mob_item_ratio.txt" with the simple structure "ItemID, Ratio, MonsterID" but so I would lose the global announcement... so I wanted to know if it was possible to modify this script from someone more experienced than me, to have the same function and structure with attached global announcement!?!
Question
CyberDevil
I thought of including costumes among the mobs, but to avoid complicating my life I created this script that I haven't tested:
With this script every monster on the server has a 0.03% chance of dropping one of the costumes on the list (I'm not sure it works!) And a global announcement is sent for congratulations.
But now I thought that it is better to insert a specific costume for a specific mob as in this list: https://www.shining-moon.com/helheim/index.php/Costume_Drops#Costume_List (thanx @fr0sty123456789 for this idea!)
In this case I could use the file "/rathena/db/mob_item_ratio.txt" with the simple structure "ItemID, Ratio, MonsterID" but so I would lose the global announcement... so I wanted to know if it was possible to modify this script from someone more experienced than me, to have the same function and structure with attached global announcement!?!
Edited by CyberDevilLink to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.