zabuzo
Well-Known Member
- Joined
- Jun 10, 2016
- Messages
- 238
- Reaction score
- 54
Where should i change in my source code to when players red skulls / black skulls when they die, they don't lose every items?
Just lose items as players normal.
But red skulls when die drops 3x more EXP/SKILLS/ML
And black skulls when die drops 9x more EXP/SKILLS/ML
I recommend u guys, server owners to do this, i played a server who work just like that and people don't have makers to fuck up new players life
skills is here?
i mean, after
add
Or it is somewhere else?
and ml is here?
after this line:
lostMana = (uint64_t)std::ceil(sumMana * ((double)(percent * lossPercent[LOSS_MANA]) / 100.));
should add something like
Or it is somewhere else?
Just lose items as players normal.
But red skulls when die drops 3x more EXP/SKILLS/ML
And black skulls when die drops 9x more EXP/SKILLS/ML
I recommend u guys, server owners to do this, i played a server who work just like that and people don't have makers to fuck up new players life
skills is here?
3777/player.cpp at aef29d0ac94140c5d095cb1f55a34035e42746b3 · Fir3element/3777
Contribute to Fir3element/3777 development by creating an account on GitHub.
github.com
Code:
lostSkillTries = (uint32_t)std::ceil(sumSkillTries * ((double)(percent * lossPercent[LOSS_SKILLS]) / 100.));
Code:
if(playerisredskull) lostSkillTries *= 3;
else if(playerisblackskull) lostSkillTries *= 9;
and ml is here?
after this line:
lostMana = (uint64_t)std::ceil(sumMana * ((double)(percent * lossPercent[LOSS_MANA]) / 100.));
3777/player.cpp at aef29d0ac94140c5d095cb1f55a34035e42746b3 · Fir3element/3777
Contribute to Fir3element/3777 development by creating an account on GitHub.
github.com
should add something like
Code:
if(playerisredskull) lostSkillTries *= 3;
else if(playerisblackskull) lostSkillTries *= 9;
Or it is somewhere else?