Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script:
- int librams_today = get_property("libramSummons").to_int();
- int mp_spent = librams_today * (librams_today ** 2 + 5 ) / 6;
- int times_to_cast = 0;
- int mp_to_burn = my_mp() - my_maxmp()*1/10;
- while(mp_to_burn > 0 && (librams_today + times_to_cast)*((librams_today + times_to_cast)**2+5) / 6 < mp_to_burn + mp_spent){
- times_to_cast++;
- }
- print("mp to burn: "+mp_to_burn);
- print("cast this many times: "+times_to_cast);
- if(times_to_cast > 0){
- use_skill(times_to_cast,$skill[summon dice]);
- }
- =======================================================================
- output:
- > run some mp burning thing.ash
- mp to burn: 8997
- cast this many times: 14
- Casting Summon Dice 14 times...
- You acquire an item: d4
- You acquire an item: d12
- You acquire an item: d8
- You acquire an item: d6
- You acquire an item: d20
- You acquire an item: d6
- You acquire an item: d10
- You acquire an item: d4
- You acquire an item: d10
- You acquire an item: d4
- You acquire an item: d10
- You acquire an item: d10
- You acquire an item: d6
- You acquire an item: d10
- Preference libramSummons changed from 30 to 44
- Summon Dice was successfully cast.
Advertisement
Add Comment
Please, Sign In to add comment