megazx
Graphic designer
can some one fix this Quick
[9:18:43.583] [Error - LuaInterface::loadFile] data/actions/scripts/dodgestone.l
ua:7: unfinished string near '"].)'
this is the script
Lua:
local limit = 100
local storagedodge = 98798644
function onUse (cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue (cid, storagedodge) == -1 then
DoPlayerSetStorageValue (cid, storagedodge, (getPlayerStorageValue (cid, storagedodge)) + 2)
DoPlayerSendCancel (cid, "DodgeSKILL: [" .. getPlayerStorageValue (cid, storagedodge) .. "/" .. limit .. "].)
elseif getPlayerStorageValue (cid, storagedodge)> = -1 and getPlayerStorageValue (cid, storagedodge) <= limit then
DoPlayerSetStorageValue (cid, storagedodge, (getPlayerStorageValue (cid, storagedodge)) + 1)
DoPlayerSendCancel (cid, "DodgeSKILL: [" .. getPlayerStorageValue (cid, storagedodge) .. "/" .. limit .. "].)
DoRemoveItem (item.uid, 1)
else
DoPlayerSendCancel (cid, "You've already reached the maximum. DodgeSKILL: [" .. getPlayerStorageValue (cid, storagedodge) .. "/" .. limit .. "])
end
return true
end