mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-18 08:13:27 +02:00
finish nargor island quest
This commit is contained in:
10
data/actions/scripts/meriana_quest/tortoise_egg.lua
Normal file
10
data/actions/scripts/meriana_quest/tortoise_egg.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
function onUse(player, item, fromPosition, target, toPosition)
|
||||
if player:getStorageValue(17526) < os.time() then
|
||||
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have found a tortoise egg from Nargor.")
|
||||
player:setStorageValue(17526, os.time() + 24 * 60 * 60) -- 24 hour
|
||||
player:addItem(6125,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