gritness
Member
- Joined
- May 26, 2021
- Messages
- 33
- Reaction score
- 6
Hey
I have a simple script made, but like in thema idk what type of event should i use? (event type in creaturescripts.xml)
"<event type=" " name="ChcekPlayerLevel" script ="nowe/questlog25update.lua" />"
Bellow u can see script which check player level (to 25 lvl)
local storage_quest25 = 1001
local storage_questlog25update = 50000
function onAdvance(player, skill, oldLevel, newLevel)
if player:getLevel() >= 25 and player:getStorageValue(storage_questlog25update) ~= 2 then
player:setStorageValue(storage_questlog25update, 2)
player:setStorageValue(storage_quest25,2)
end
end
I have a simple script made, but like in thema idk what type of event should i use? (event type in creaturescripts.xml)
"<event type=" " name="ChcekPlayerLevel" script ="nowe/questlog25update.lua" />"
Bellow u can see script which check player level (to 25 lvl)
local storage_quest25 = 1001
local storage_questlog25update = 50000
function onAdvance(player, skill, oldLevel, newLevel)
if player:getLevel() >= 25 and player:getStorageValue(storage_questlog25update) ~= 2 then
player:setStorageValue(storage_questlog25update, 2)
player:setStorageValue(storage_quest25,2)
end
end