Hey guys, good night, can anyone transform this script to tfs 1.4? it's an action
function onUse(cid, item, frompos, item2, topos)
item1pos = {x=570, y=531, z=7, stackpos=255} --item1pos
item2pos = {x=571, y=531, z=7, stackpos=255} --item2pos
item3pos = {x=570, y=531, z=7, stackpos=255} --item3pos
item1 = getThingfromPos(item1pos)
item2 = getThingfromPos(item2pos)
item3 = getThingfromPos(item3pos)
-- War Hammer --
if item.itemid == 1945 and item1.itemid == 2391 and item2.itemid == 6550 or item1.itemid == 6550 and item2.itemid == 2391 then
if math.random(1, 100) >= 1 and math.random(1, 100) <= 75 then
doRemoveItem(item1.uid,1)
doRemoveItem(item2.uid,1)
doSendMagicEffect(item3pos,29)
doCreateItem(7758,1, item3pos)
doPlayerSendTextMessage(cid,22,'The weapon has been successfully blessed.')
elseif item.uid == 1991 and item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendTextMessage(cid,22,'the gun broke.')
doRemoveItem(item1.uid,1)
doRemoveItem(item2.uid,1)
doSendMagicEffect(item3pos,3)
end