mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 06:34:55 +02:00
finish beta gifts and finish very import mistake done with the chests without distinguesting
This commit is contained in:
11
data/actions/scripts/misc/rookgard_skip.lua
Normal file
11
data/actions/scripts/misc/rookgard_skip.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
|
||||
if player:getStorageValue(17572) ~= 1 and player:getLevel() <= 7 then
|
||||
player:setStorageValue(17572, 1)
|
||||
player:addHealth(-math.random(player:getHealth()-20, player:getHealth()-1))
|
||||
item:getPosition():sendMagicEffect(CONST_ME_HITBYFIRE)
|
||||
player:say('OUCH!', TALKTYPE_MONSTER_SAY)
|
||||
player:addExperience(4200 - player:getExperience())
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
@@ -1,11 +0,0 @@
|
||||
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
|
Reference in New Issue
Block a user