unsiren Posted May 8, 2013 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 21 Reputation: 0 Joined: 01/08/12 Last Seen: July 24, 2019 Share Posted May 8, 2013 (edited) Cash distribution to obtain a complete monster party members to What should I do? - script GetLevelCash -1,{ OnNPCKillEvent: set @CashChance, 80; set @CashMaxLevel, 99; set @CashBalance, getmonsterinfo(killedrid,1) - baselevel; set @CashRandMax, (@CashMaxLevel * 20) + (@CashBalance * (@CashMaxLevel / 5)); set @CashChance, (@CashMaxLevel * @CashChance / 50); if(rand(@CashRandMax) > @CashChance) end; set @CashAmount, rand(0,baselevel+@CashBalance); if(@CashAmount <= 3) set @CashAmount, rand(1,3); set @CashBonus, rand(1,100); if(getcharid(1) > 0) { if(@CashAmount > 0) { getpartymember(getcharid(1)); set @CP_PartyCount, $@partymembercount; set @CashAmount, @CashAmount / @CP_PartyCount; if(@CashAmount < 1) set @CashAmount, 1; } } set #CASHPOINTS, #CASHPOINTS + @CashAmount; dispbottom "[CASH] : " + @CashAmount + " [Cash : " + #CASHPOINTS + "]"; specialeffect2 583; set @CashChance, 0; set @CashMaxLevel, 0; set @CashBalance, 0; set @CashAmount, 0; end; } Edited May 8, 2013 by Capuche Script in [Code] Quote Link to comment Share on other sites More sharing options...
Capuche Posted May 8, 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 May 8, 2013 Make a loop with $@partymembercount and use attachrid to give the points to the party member Quote Link to comment Share on other sites More sharing options...
Question
unsiren
Script in [Code]
Link to comment
Share on other sites
1 answer 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.