mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-30 19:56:22 +01:00
fix physical damage calculator for distance weapon, add !vials command, remove !online command for regular players
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user