Lopaskurwa
Active Member
- Joined
- Oct 6, 2017
- Messages
- 873
- Solutions
- 2
- Reaction score
- 49
Looking for code that at certain level points for example 100,150,200 and etc would give my config rewards im using. It should check vocations to, so maybe config could look like
for rewards im using my custom feature in players.lua so dont need to do anything with it just add
Code:
local config = {
storage = xxxx,
levelstages = 100,150,200,250,300
rewards = {
addBonus = 15000000,
addBonus = 20000
},
vocations = {1,2,3,4,5,6},
}
for rewards im using my custom feature in players.lua so dont need to do anything with it just add
player:takeReward(config.rewards)
inside the function