Hello, i have problem in script.. What is bad?!
Error :
Firewallker boots
Soft boots :
Error :
My script :[Error - LuaScriptInterface::loadFile] data/actions/scripts/firewalkerrefil.lua:17: '=' expected near '<eof>'
[Warning - Event::loadScript] Cannot load script (data/actions/scripts/firewalkerrefil.lua)
data/actions/scripts/firewalkerrefil.lua:17: '=' expected near '<eof>'
[Error - Action Interface]
data/actions/scripts/softrefil.lua
Description:
data/actions/scripts/softrefil.lua:5: attempt to index global 'item' (a nil value)
[Warning - Event::loadScript] Cannot load script (data/actions/scripts/softrefil.lua)
data/actions/scripts/firewalkerrefil.lua:17: '=' expected near '<eof>'
Firewallker boots
#by Aulus
local stare = 6530
local id = 2640
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 1945 then
if(doPlayerRemoveItem(cid, stare, 1) == TRUE) then
doPlayerAddItem(cid, id, 1)
doTransformItem(item.uid, item.itemid+1)
elseif item.itemid == 1946 then
if(doPlayerRemoveItem(cid, stare, 1) == TRUE) then
doPlayerAddItem(cid, id, 1)
doTransformItem(item.uid, item.itemid+1)
if(doPlayerRemoveItem(cid, 2160, 1) == TRUE) then
end
end
return true
end end
Soft boots :
#by Aulus
local stare = 6530
local id = 2640
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 1945 then
if(doPlayerRemoveItem(cid, stare, 1) == TRUE) then
doPlayerAddItem(cid, id, 1)
doTransformItem(item.uid, item.itemid+1)
elseif item.itemid == 1946 then
if(doPlayerRemoveItem(cid, stare, 1) == TRUE) then
doPlayerAddItem(cid, id, 1)
doTransformItem(item.uid, item.itemid+1)
if(doPlayerRemoveItem(cid, 2160, 1) == TRUE) then
end
end
return true
end end