Limestone Posted June 30, 2013 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Share Posted June 30, 2013 can i request a custom mob drop via script that all of normal monsters (excepts Low level monster lvl 50 below) has a 2.5% chance of dropping a (red potion) and 5% chance on all mvp bosses and mini bosses. thanks! Quote Link to comment Share on other sites More sharing options...
michaelsoftman Posted June 30, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 410 Reputation: 29 Joined: 04/04/12 Last Seen: November 28, 2024 Share Posted June 30, 2013 I don't think there's a script command that reads the level of a monster. You'd have to do this via the source, or have a huge list of all mobs above level 50. Quote Link to comment Share on other sites More sharing options...
Limestone Posted June 30, 2013 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share Posted June 30, 2013 my goodness. can someone help me!!! Quote Link to comment Share on other sites More sharing options...
Capuche Posted June 30, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted June 30, 2013 - script fsdddg -1,{ OnNPCKillEvent: if ( getmonsterinfo( killedrid,1 ) > 50 ) { // if the lvl > 50 .@boss = getmonsterinfo( killedrid,21 )& 0x0020; // check if b is boss .@percent_gift = .@boss ? 50 : 25; // 5% for boss, 2.5% for other .@random_number = rand(1000); if ( .@random_number < .@percent_gift ) { getmapxy .@map$, .@x, .@y, 0; makeitem 501, 1, .@map$, .@x, .@y; } } end; } I don't think there's a script command that reads the level of a monster. There is getmonsterinfo(<mob ID>,<type>) Valid types are listed in const.txt: MOB_NAME 0 MOB_LV 1 Quote Link to comment Share on other sites More sharing options...
Limestone Posted June 30, 2013 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 647 Reputation: 16 Joined: 11/21/11 Last Seen: December 28, 2022 Author Share Posted June 30, 2013 Thanks capuche, Woriking great! Quote Link to comment Share on other sites More sharing options...
Question
Limestone
can i request a custom mob drop via script that all of normal monsters (excepts Low level monster lvl 50 below) has a 2.5% chance of dropping a (red potion) and 5% chance on all mvp bosses and mini bosses. thanks!
Link to comment
Share on other sites
4 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.