Killzon32
There killing our dudes.
PHP:
local PRESENT_LARGEBOX = {2687, 6394, 6280, 6574, 6578, 6575, 6577, 6569, 6576, 6572, 2114}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local count = 1
if(item.itemid == 10503) then
local randomChance = math.random(1, 6 == 1) then
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
doRemoveItem(item.uid, 1)
else
doSendMagicEffect(fromPosition, CONST_ME_POFF)
doPlayerAddItem(cid, PRESENT_LARGEBOX[randomChance], count)
return true
end
end
I am not good at scripting trying to make a script but its giving me a unexpected symbol near 'then'