Elqpal Posted October 25, 2014 Posted October 25, 2014 (edited) Hi, it's like everymonster will drop a random item. 27 items and you will get 1 in random 50% chance. btw im using eathena. Edited October 25, 2014 by Elqpal Quote
Winz Posted October 25, 2014 Posted October 25, 2014 hmm, "will get 1 in random 50% chance." what does it mean? anyway, made one that works this way: randoms, 0-26 (for 27 items) then randoms 0-1 (50% chance: will or not the player get it) - script candies -1,{ OnNPCKillEvent: setarray .items,7227,501,502,503,504,505,506; set .theitem, getarraysize(.items); set .dasitem, @items[@theitem]; if (rand(0,1) == 1) { getitem .items[rand(.theitem-1)],1; } end; } edit line 3 and write the 27 item IDs down. Quote
Emistry Posted October 25, 2014 Posted October 25, 2014 OnNPCKillEvent: if ( rand( 2 ) ) { .@item_id = F_Rand( 501,502,503,504,505 ); getitem .@item_id,1; } end; Quote
Question
Elqpal
Hi, it's like everymonster will drop a random item. 27 items and you will get 1 in random 50% chance. btw im using eathena.
Edited by Elqpal2 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.