Black Dove
Web-Developer
Iam Working For a New System ..
Everything Running Ok And It Give Bouns HP And MP
But
the problem is player in advance have to relog to get the new bouns after advancing
Lets say new player Hp&Mp is 1000/1000
And each level it gain 1000/1000
If player have the storage of the first player get the 30% bouns
1000/1000 >>after bouns>> 1300/1300
When player get an advance of 1 level
It became 2300/2300 (2000"basic" & 300"last bouns")
So I have to log to calculate the bouns on the new Hp/Mp
To Be 2600/2600
That's Is The Part I Want To Edit It To Make Player Have Not To Relog To Calculate New Bouns as I Explained
@Limos
@Flatlander Would You Give a Look Here Bro ?
Everything Running Ok And It Give Bouns HP And MP
But
the problem is player in advance have to relog to get the new bouns after advancing
Lets say new player Hp&Mp is 1000/1000
And each level it gain 1000/1000
If player have the storage of the first player get the 30% bouns
1000/1000 >>after bouns>> 1300/1300
When player get an advance of 1 level
It became 2300/2300 (2000"basic" & 300"last bouns")
So I have to log to calculate the bouns on the new Hp/Mp
To Be 2600/2600
That's Is The Part I Want To Edit It To Make Player Have Not To Relog To Calculate New Bouns as I Explained
if isPlayer(cid) then
if not (getCreatureCondition(cid, CONDITION_ATTRIBUTES, 3)) then
doAddCondition(cid, rewards[a].cond)
local hp = getCreatureHealth(cid) * rewards[a].percent
local mp = getCreatureMana(cid) * rewards[a].percent
doCreatureAddHealth(cid, hp)
doCreatureAddMana(cid, mp)
end
@Limos
@Flatlander Would You Give a Look Here Bro ?
Last edited: