introduce raid sacrifices and bonus exp if you eat sabrehaven talon

This commit is contained in:
ErikasKontenis
2020-01-05 17:15:09 +02:00
parent dd17e6c42e
commit 1af3466453
16 changed files with 196 additions and 6387 deletions

View File

@@ -0,0 +1,10 @@
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getStorageValue(17582) < os.time() then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Your experience earnings have been enchanted by the Sabrehaven Gods.")
player:setStorageValue(17582, os.time() + 24 * 60 * 60) -- 24 hour
item:remove(1)
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You shoud not take any more today.")
end
return true
end