mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 14:44:55 +02:00
finished druid outfit quest
This commit is contained in:
@@ -15,6 +15,16 @@ function onUse(player, item, fromPosition, target, toPosition)
|
||||
item:transform(4869, 1)
|
||||
target:getPosition():sendMagicEffect(10)
|
||||
return true
|
||||
elseif target:getId() == 5658 and player:getStorageValue(17535) == 1 then
|
||||
if player:getStorageValue(17536) < os.time() then
|
||||
item:transform(5937, 1)
|
||||
target:getPosition():sendMagicEffect(10)
|
||||
player:setStorageValue(17536, os.time() + 20 * 60 * 60) -- 20 hour
|
||||
return true
|
||||
else
|
||||
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You just collected a fragile griffinclaw. At least wait for the rest of the plant to recover a bit before gathering more.")
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
Reference in New Issue
Block a user