Cloow
Active Member
- Joined
- May 10, 2010
- Messages
- 1,086
- Reaction score
- 35
I don't get it, why wont these scripts work?
thanks in advance
Lua:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 6124 then
setPlayerStorageValue(cid, 5184, 1)
doSendMagicEffect(cid,12)
doPlayerSendTextMessage(cid,22,'You found some strange power.')
end
else
if getPlayerStorageValue(cid, 5184) < 0 then
doPlayerSendCancel(cid, "You already found the power.")
return true
end
Lua:
function onUse(cid, item, frompos, item2, topos)
doPlayerAddItem(cid, 12339)
doPlayerSendTextMessage(cid, "You found a ab1!")
setPlayerStorageValue(cid, 51212, 1)
end
if getPlayerStorageValue(cid, 51212) < 0 then
doPlayerSendCancel(cid, "There is nothing there")
return true
end
[20/01/2013 16:05:52] [Error - Action Interface]
[20/01/2013 16:05:52] data/actions/scripts/ab1.lua
[20/01/2013 16:05:52] Description:
[20/01/2013 16:05:52] (luaGetCreatureStorage) Creature not found
[20/01/2013 16:05:53] [Error - Action Interface]
[20/01/2013 16:05:53] data/actions/scripts/ab1.lua
[20/01/2013 16:05:53] Description:
[20/01/2013 16:05:53] data/actions/scripts/ab1.lua:6: attempt to compare boolean with number
[20/01/2013 16:05:53] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/ab1.lua)
[20/01/2013 16:05:53] data/actions/scripts/accestoquestdoorms.lua:8: 'then' expected near 'doPlayerSendCancel'
[20/01/2013 16:05:53] [Error - LuaScriptInterface::loadFile] data/actions/scripts/accestoquestdoorms.lua:7: 'end' expected (to close 'function' at line 1) near 'else'
[20/01/2013 16:05:53] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/accestoquestdoorms.lua)
[20/01/2013 16:05:53] data/actions/scripts/accestoquestdoorms.lua:7: 'end' expected (to close 'function' at line 1) near 'else'
thanks in advance