bachvugx Posted November 23, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 8 Reputation: 1 Joined: 02/20/12 Last Seen: August 3, 2022 Share Posted November 23, 2012 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; } Quote Link to comment Share on other sites More sharing options...
GM Takumirai Posted November 23, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 592 Reputation: 31 Joined: 11/14/11 Last Seen: July 29, 2015 Share Posted November 23, 2012 you can add a custom drop in svn/db/item/mob_item_ratio.txt Quote Link to comment Share on other sites More sharing options...
bachvugx Posted November 24, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 8 Reputation: 1 Joined: 02/20/12 Last Seen: August 3, 2022 Author Share Posted November 24, 2012 Thank for help ! But i want drop rate base on mvp exp and monster exp Help me !! Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted November 24, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted November 24, 2012 I dunno what kind of formula you're trying to make but your @coinid variable is never set, and it result in 0 ... ? Quote Link to comment Share on other sites More sharing options...
Question
bachvugx
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
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.