Jump to content

Recommended Posts

Posted

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
Posted

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

Posted (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 by shushei

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...