Jump to content
  • 0

How Change Drop?


Question

Posted

 

1354,TREASURE_BOX31,Treasure Chest,Treasure Chest,99,0,0,0,0,0,0,0,0,0,0,0,0,0,999,0,0,0,0,0,20,0x120,0,0,0,0,0,0,0,0,0,0,0,0,22554,50,22556,50,22555,50,22557,10,0,0,0,0,0,0,0,0,0,0,0,0

 

box just drop item 22556 (1pcs) 22555(1pcs) etc

how to change like 22556(30pcs) etc

thx

1 answer to this question

Recommended Posts

Posted


- script DropExtraDB -1,{

OnNPCKillEvent:

//======================== Conf =============================

setarray .@mobids[0],1354,MOB2,MOB3,MOB4; // Mob ID's

setarray .@prizeids[0],22556,DROP2,DROP3,DROP4; // Droped itens ID's

setarray .@chance[0],100,2,2,2,2,2; // Drop chance %

//==========================================================

for(set .@j,getarraysize(.@mobids); .@i < .@j; set .@i,.@i + 1)

if(killedrid == .@mobids[.@i] && rand(100) < .@chance[.@i])

getitem .@prizeids[.@i],30; //item number

end;

}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

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