Jump to content
ComeTower

Drops Extra DB

Recommended Posts

I'm starting here and want to share one simple script.

// code.google.com/p/ctscripts/
- script DropExtraDB -1,{
OnNPCKillEvent:
//======================== Conf =============================
setarray [email protected][0],0;     // Mob ID's                         ==
setarray [email protected][0],0;   //  Droped itens ID's                ==
setarray [email protected][0],0;     // Drop chance %   ==
//==========================================================
for(set @c,0; @c < getarraysize([email protected]); set @c,@c+1){
if(killedrid == [email protected][@c]){
set @d,rand(0,100);
if(@d <= [email protected][@c]){
getitem [email protected][@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

  • Upvote 1
Link to comment
Share on other sites

Link to comment
Share on other sites

I made it that way because getarraysize in the 'loop zone' uses more resources.

The two works.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by shushei
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
Reply to this topic...

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.