ComeTower Posted February 19, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 15 Reputation: 10 Joined: 02/19/12 Last Seen: May 9, 2012 Share 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 Link to comment Share on other sites More sharing options...
Syouji Posted February 19, 2012 Group: Members Topic Count: 70 Topics Per Day: 0.01 Content Count: 1245 Reputation: 395 Joined: 11/19/11 Last Seen: January 15, 2020 Share Posted February 19, 2012 Sweet and Simple and can be very useful for special server wide events for exclusive drops. Quote Link to comment Share on other sites More sharing options...
ComeTower Posted February 19, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 15 Reputation: 10 Joined: 02/19/12 Last Seen: May 9, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
Omnipotent Posted February 19, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 71 Reputation: 25 Joined: 11/23/11 Last Seen: May 16, 2024 Share Posted February 19, 2012 Ro has 0,01% has the min. http://pastebin.com/raw.php?i=TrEPqSKb Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 19, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: Tuesday at 05:38 PM Share 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 Link to comment Share on other sites More sharing options...
Omnipotent Posted February 20, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 71 Reputation: 25 Joined: 11/23/11 Last Seen: May 16, 2024 Share 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 Link to comment Share on other sites More sharing options...
Nokia Posted February 20, 2012 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 150 Reputation: 5 Joined: 12/28/11 Last Seen: May 10, 2013 Share Posted February 20, 2012 possible to add a menu for gms, to add/remove drops ingame via npc? Quote Link to comment Share on other sites More sharing options...
ComeTower Posted February 20, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 15 Reputation: 10 Joined: 02/19/12 Last Seen: May 9, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
ngek202 Posted February 21, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Share Posted February 21, 2012 wow you have lots of scripts though isn't translated in English Quote Link to comment Share on other sites More sharing options...
manabeast Posted February 21, 2012 Group: Members Topic Count: 138 Topics Per Day: 0.03 Content Count: 835 Reputation: 25 Joined: 11/22/11 Last Seen: December 4, 2012 Share Posted February 21, 2012 o... nice for my custom mvp use =) Quote Link to comment Share on other sites More sharing options...
ComeTower Posted February 21, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 15 Reputation: 10 Joined: 02/19/12 Last Seen: May 9, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
ocelote Posted February 22, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 52 Reputation: 7 Joined: 01/02/12 Last Seen: July 3, 2015 Share 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 Link to comment Share on other sites More sharing options...
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.