HI. I trying to make script but i have problerm, porapablt its very easy but im beginner and i need help. I try yo make script : i put barrel next to wall, and when use magical torch id(9956) Barrel explode and destroy 3 walls on positions, i Cut off some code from other script its explode, do "Puff" effect on wall but walls does nto dissapear., any help ? Thanks, //tfs 1.3
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition, topos, frompos)
local t = {
{x = 32543, y = 32215, z = 6, stackpos = 0},
{x = 32544, y = 32215, z = 6, stackpos = 0},
{x = 32545, y = 32215, z = 6, stackpos = 0}
}
if(itemEx.uid == 65535 and itemEx.itemid == 30758) then
for i = 1, #t do
doremoveItem(1050, 1, t[i])
doSendMagicEffect(t[i], 45)
end
doTransformItem(itemEx.uid, 1309)
doSendMagicEffect(toPosition, CONST_ME_POFF)
end
return false
end
Last edited: