mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-18 17:29:19 +02:00
11 lines
369 B
Lua
11 lines
369 B
Lua
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
|
|
if player:getStorageValue(17569) ~= 1 then
|
|
player:setStorageValue(17569, 1)
|
|
player:sendTextMessage(MESSAGE_INFO_DESCR, "You have found a hydra egg.")
|
|
player:addItem(4839, 1)
|
|
else
|
|
player:sendTextMessage(MESSAGE_INFO_DESCR, "The " .. item:getName() .. " is empty.")
|
|
end
|
|
|
|
return true
|
|
end |