
Nie tylko o Tibii i OTS...

Witam.
Czy ktoś mógłby mi pozamykać skrypt, bo próbowałem, ale w konsoli wywalało, że gdzieś brakuje end i.t.p.
Dlatego skasowałem wszystkie i proszę, aby ktoś dokończył mi ten skrypt.
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2553 and item2.itemid == 3607 and item2.actionid == 7309 then
spawnrate1 = math.random(1,10)
if spawnrate1 < 2 then
doTransformItem(item2.uid,item.itemid+2)
doSendMagicEffect(topos,2)
else
doSummonCreature("Scarab", topos)
elseif item.itemid == 2553 and item2.itemid == 3609 and item2.actionid == 7309 then
spawnrate2 = math.random(1,10)
if spawnrate2 < 2 then
doTransformItem(item2.uid,item.itemid-1)
doSendMagicEffect(topos,2)
else
doSummonCreature("Scarab", topos)
elseif item.itemid == 2553 and item2.itemid == 3608 and item2.actionid == 7309 then
spawnrate3 = math.random(1,10)
if spawnrate3 < 2 then
doTransformItem(0,3311)
doSendMagicEffect(topos,2)
else
doSummonCreature("Scarab", topos)
Offline