Hello!
I need help with this script. Its a skill scroll, but im getting this error, i dont know how to fix it cuz im not a scripter.. :/
<script>
I need help with this script. Its a skill scroll, but im getting this error, i dont know how to fix it cuz im not a scripter.. :/
Code:
[Error - LuaScriptInterface::loadFile] data/actions/scripts/swordscroll.lua:2: '
)' expected near '='
[Warning - Event::loadScript] Cannot load script (data/actions/scripts/swordscro
ll.lua)
data/actions/scripts/swordscroll.lua:2: ')' expected near '='
<script>
Lua:
function onUse(cid, item, fromPosition)
doPlayerAddSkill(cid, axe, amount = 1) -- You can change axe to w/e
end
return true
end