ComeTower Posted February 19, 2012 Posted February 19, 2012 I'm starting here and want to share one simple script. // code.google.com/p/ctscripts/ - script DropExtraDB -1,{ OnNPCKillEvent: //======================== Conf ============================= setarray .@mobids[0],0; // Mob ID's == setarray .@prizeids[0],0; // Droped itens ID's == setarray .@chance[0],0; // Drop chance % == //========================================================== for(set @c,0; @c < getarraysize(.@mobids); set @c,@c+1){ if(killedrid == .@mobids[@c]){ set @d,rand(0,100); if(@d <= .@chance[@c]){ getitem .@prizeids[@c],1; } } end; } } This script adds drops that aren't in db. There isn't much to explain. there's a link in my code that's in the npc header. It's not going to get offline, so, I think i just need to let you with the link and the code box. Be happy with this npc Hope you enjoy 1 Quote
Syouji Posted February 19, 2012 Posted February 19, 2012 Sweet and Simple and can be very useful for special server wide events for exclusive drops. Quote
ComeTower Posted February 19, 2012 Author Posted February 19, 2012 i have more but i'm too lazy to translate to enlgish. just posted this cus there's nothing to translate haha Quote
Omnipotent Posted February 19, 2012 Posted February 19, 2012 Ro has 0,01% has the min. http://pastebin.com/raw.php?i=TrEPqSKb Quote
Emistry Posted February 19, 2012 Posted February 19, 2012 Ro has 0,01% has the min. http://pastebin.com/raw.php?i=TrEPqSKb Mistake : for(set .@j,getarraysize(.@mobids); .@i < .@j; set .@i,.@i + 1) should be for(set .@i,0; .@i < getarraysize(.@mobids); set .@i,.@i + 1) Quote
Omnipotent Posted February 20, 2012 Posted February 20, 2012 Ro has 0,01% has the min. http://pastebin.com/raw.php?i=TrEPqSKb Mistake : for(set .@j,getarraysize(.@mobids); .@i < .@j; set .@i,.@i + 1) should be for(set .@i,0; .@i < getarraysize(.@mobids); set .@i,.@i + 1) I made it that way because getarraysize in the 'loop zone' uses more resources. The two works. Quote
Nokia Posted February 20, 2012 Posted February 20, 2012 possible to add a menu for gms, to add/remove drops ingame via npc? Quote
ComeTower Posted February 20, 2012 Author Posted February 20, 2012 possible to add a menu for gms, to add/remove drops ingame via npc? it is. someday i'll do it (: maybe today i finish it idk. Quote
ngek202 Posted February 21, 2012 Posted February 21, 2012 wow you have lots of scripts though isn't translated in English Quote
ComeTower Posted February 21, 2012 Author Posted February 21, 2012 wow you have lots of scripts though isn't translated in English They're all pt-br Use google translate for the 'mes' If I have time I'll start translating them (: Thx for everyone who posted here. Means a lot for me Quote
ocelote Posted February 22, 2012 Posted February 22, 2012 (edited) setarray @mobids,1038,1039,1046,1150,1511,1647,1785,1630,1874,1272,1719,1389,1112,1115,1418,1871,1252,1768,1086,1990,1649,1651,1832,1492,1734,1779,1251,1688,1646,1373,1147,1059,1150,1087,1190,1157,1159,1623,1650,1708,1583,1991,1312,1751,1685,1658,1648,1917,1885; all MvP id Edited February 22, 2012 by shushei Quote
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.