mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-11-28 07:36:50 +01:00
introduce raid sacrifices and bonus exp if you eat sabrehaven talon
This commit is contained in:
@@ -158,6 +158,7 @@
|
||||
<action fromid="5792" toid="5797" script="misc/dice.lua" />
|
||||
<action itemid="3114" script="misc/skull_candle.lua" />
|
||||
<action itemid="5957" script="misc/lottery_ticket.lua" />
|
||||
<action itemid="5776" script="misc/sabrehaven_talon.lua" />
|
||||
|
||||
<!-- Dolls -->
|
||||
<action itemid="5080" script="misc/dolls.lua" />
|
||||
|
||||
10
data/actions/scripts/misc/sabrehaven_talon.lua
Normal file
10
data/actions/scripts/misc/sabrehaven_talon.lua
Normal 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
|
||||
Reference in New Issue
Block a user