local killedMonstersCountStorage = 77777
player:addExperience(20 * (player:getStorageValue(killedMonstersCountStorage) > 0 and player:getStorageValue(killedMonstersCountStorage) or 0))
You post will remain unanswered...BUUUMPP
#5, #7,
Post edited!You post will remain unanswered...
Refer to:
local killedMonstersCountStorage = 77777
player:addExperience(20 * (player:getStorageValue(killedMonstersCountStorage) > 0 and player:getStorageValue(killedMonstersCountStorage) or 0))
Glad to help.Post edited!
thank very much! Its work... I Love You @Frija(make sure to set the variable to something not already used)LUA:local killedMonstersCountStorage = 77777
Keep track of killed monsters with creaturescripts death event then add exp in NPC like this:
LUA:player:addExperience(20 * (player:getStorageValue(killedMonstersCountStorage) > 0 and player:getStorageValue(killedMonstersCountStorage) or 0))