hiela korn
New Member
- Joined
- Oct 21, 2017
- Messages
- 4
- Reaction score
- 1
they gave me this script, when extracting the crystal with the pick it disappears but the crystal does not appear after a while can someone add that part
Lua:
local rocking = Action()
function rocking.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if item.itemid == 37546 then
if target.itemid == 8637 then
local chance = math.random(1, 10000)
target:getPosition():sendMagicEffect(CONST_ME_HITAREA)
target:remove(1)
if chance <= 9556 then
player:addItem(2146, 1)
else
player:addItem(2146, 1)
end
end
end
end
rocking:id(37546)
rocking:register()