opentibiabr / otservbr-global-archived

Archived, read-only repository. New repository: https://github.com/opentibiabr/otservbr-global
GNU General Public License v2.0
330 stars 332 forks source link

Some fixes events, configkey, optional stages, xp gain rate #2706

Closed beats-dh closed 3 years ago

beats-dh commented 3 years ago

PR #2692

Fixes:

beats-dh commented 3 years ago

player.lua:Player@onGainExperience data/events/scripts/player.lua:744: attempt to perform arithmetic on global 'baseExp' (a nil value) stack traceback: [C]: in function '__mul' data/events/scripts/player.lua:744: in function <data/events/scripts/player.lua:702> not doing the calculation when player has exp play + xp store + green stamina

It's accusing error on line 744 I checked and didn't make changes to it, you have the PR Branch without changes?

Bipbop69 commented 3 years ago

It's accusing error on line 744 I checked and didn't make changes to it, you have the PR Branch without changes?

I'm using the current version with this commit. putting it uses the exp of the stage in place of the base is ok.

but you will have the problems I said

exp prey is not being and store is not pulling correctly in this case it would have to be applied in the stage the player is in but it is always being applied in the mob's exp

dudantas commented 3 years ago

It will be fixed in the repository: https://github.com/opentibiabr/otservbr-global-datapack