Jump to content
  • 0

help - Custom Item Drop


bachvugx

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   1
  • Joined:  02/20/12
  • Last Seen:  

I want to drop coinid by monster & mvp.

monster (monster's baseexp / monster's jobexp) * (monster's baselevel / 100)

and mvp (mvp's baseexp + mvp's jobexp)/(mvp's mvpexp)

my english very bad :((

Help me, plz !! Thank

- script Coinlevel -,{
OnNPCKillEvent:
if (getmonsterinfo(killedrid,22) == 0)
 {
  set @coindropnum, 1;
  if (getmonsterinfo(killedrid,3) < getmonsterinfo(killedrid,4))
{
set @ratedropcoin, getmonsterinfo(killedrid,4) / getmonsterinfo(killedrid,3);
} else
{
set @ratedropcoin, getmonsterinfo(killedrid,3) / getmonsterinfo(killedrid,4);
}
  set @ratedropcoin, @ratedropcoin * getmonsterinfo(killedrid,2) * 10;
 } else
 {
  set @coindropnum, 20;
  set @ratedropcoin, getmonsterinfo(killedrid,3) + getmonsterinfo(killedrid,4);
  set @ratedropcoin, @ratedropcoin * 2 * 1000 / getmonsterinfo(killedrid,22);
 };
set @possibilty, rand(0,100000);
if (@possibilty <=  @ratedropcoin)
{
getitem @coinid,@coindropnum;
end;
};
end;
}

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

you can add a custom drop in

svn/db/item/mob_item_ratio.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   1
  • Joined:  02/20/12
  • Last Seen:  

Thank for help !

But i want drop rate base on mvp exp and monster exp :)

Help me !!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

I dunno what kind of formula you're trying to make

but your @coinid variable is never set, and it result in 0 ... ?

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

×
×
  • Create New...