fix physical damage calculator for distance weapon, add !vials command, remove !online command for regular players

This commit is contained in:
ErikasKontenis
2021-05-07 22:34:28 +03:00
parent f8c7f4e837
commit 6660328be2
6 changed files with 64 additions and 13 deletions

View File

@@ -80,7 +80,12 @@ function onUse(player, item, fromPosition, target, toPosition)
else
target:say("Gulp.", TALKTYPE_MONSTER_SAY)
end
item:transform(item:getId(), FLUID_NONE)
if player:getStorageValue(17742) ~= 1 then
item:transform(item:getId(), FLUID_NONE)
else
item:remove()
end
end
else
if toPosition.x == CONTAINER_POSITION then