finish many new 7.92 items and missing todo items from 7.8

This commit is contained in:
ErikasKontenis
2020-03-03 20:16:20 +02:00
parent d8c1eed4f0
commit 3cb71f9127
9 changed files with 190 additions and 60 deletions

View File

@@ -0,0 +1,16 @@
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if target.itemid ~= 5553 then
return false
end
if math.random(2) ~= 1 then
player:say("The golden fish escaped.", TALKTYPE_MONSTER_SAY)
return true
end
player:say("You catch a golden fish in the bowl.", TALKTYPE_MONSTER_SAY)
item:transform(5929)
target:remove()
toPosition:sendMagicEffect(CONST_ME_MAGIC_BLUE)
return true
end