finished druid outfit quest

This commit is contained in:
ErikasKontenis
2019-12-15 17:04:00 +02:00
parent d404db3628
commit c1ac298033
16 changed files with 237 additions and 17 deletions

View File

@@ -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

View File

@@ -0,0 +1,12 @@
function onUse(player, item, fromPosition, target, toPosition)
if not target:isItem() then
return false
end
if target:getId() == 5662 and Game.isItemThere({x = 33024, y = 32672, z = 6}, 5662) then
item:transform(5939, 1)
target:getPosition():sendMagicEffect(2)
return true
end
return false
end