Jump to content

Drops Extra DB


ComeTower

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   10
  • Joined:  02/19/12
  • Last Seen:  

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

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

Sweet and Simple and can be very useful for special server wide events for exclusive drops.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   10
  • Joined:  02/19/12
  • Last Seen:  

i have more but i'm too lazy to translate to enlgish. just posted this cus there's nothing to translate haha

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   25
  • Joined:  11/23/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   5
  • Joined:  12/28/11
  • Last Seen:  

possible to add a menu for gms, to add/remove drops ingame via npc?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   10
  • Joined:  02/19/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

wow you have lots of scripts though isn't translated in English :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  138
  • Topics Per Day:  0.03
  • Content Count:  835
  • Reputation:   25
  • Joined:  11/22/11
  • Last Seen:  

o... nice for my custom mvp use =)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   10
  • Joined:  02/19/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  52
  • Reputation:   7
  • Joined:  01/02/12
  • Last Seen:  

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