When player reach level 25 (its for update questlog for claim reward on 25lvl)
TFS 1.3
- we need a storage to stop doing the same script each time player advance in level
local storage = 50323
if player:getLevel() >= 25 and player:getStorageValue(storage) <= 0 then
player:setStorageValue(50323, 1)
--You can add here what-ever you need even your other storage for quest ending
end
Hey,
Im looking for functions, which check player level, need to set storage if player gain 25lvl. Someone can help me ?![]()
When player reach level 25 (its for update questlog for claim reward on 25lvl)When player reach level 25 or everytime a player advance 25levels? Eg 25, 50, 75, 100 etc.
And... TFS1.3 or what you using?
When player reach level 25 (its for update questlog for claim reward on 25lvl)
TFS 1.3
- we need a storage to stop doing the same script each time player advance in level
local storage = 50323
if player:getLevel() >= 25 and player:getStorageValue(storage) <= 0 then
player:setStorageValue(50323, 1)
--You can add here what-ever you need even your other storage for quest ending
end
Thanks a lot. But i have 1 more question to it. where i have to put this script actions/events? (need to check players level everytime to 25lvl)LUA:- we need a storage to stop doing the same script each time player advance in level local storage = 50323 if player:getLevel() >= 25 and player:getStorageValue(storage) <= 0 then player:setStorageValue(50323, 1) --You can add here what-ever you need even your other storage for quest ending end
Thanks, that should be enough. You are awesomeCreaturescripts, function onAdvance(player, skill, oldLevel, newLevel)