I made this script for the last part of my quest where when the monster dies, it will remove the items blocking the teleports to the reward room. However, i get an error on loadup and i dont know why?
Script:
And my error:
Can someone with experience help me please?
Script:
Code:
function onKill(cid, target, damage, flags)
if(isPlayer(target)) then
return true
end
if(getCreatureName(target):lower() == "Protector") then
doRemoveItem(1484), {x = 920,y = 1153,z = 9}
doRemoveItem(1484), {x = 921,y = 1153,z = 9}
doRemoveItem(1484), {x = 922,y = 1153,z = 9}
doRemoveItem(1484), {x = 928,y = 1153,z = 9}
doRemoveItem(1484), {x = 929,y = 1153,z = 9}
doRemoveItem(1484), {x = 930,y = 1153,z = 9}
end
return true
end
And my error:
Code:
[30/12/2013 09:39:01] [Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/soft boots quest 2.lua:6: unexpected symbol near ','
[30/12/2013 09:39:01] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/soft boots quest 2.lua)
[30/12/2013 09:39:01] data/creaturescripts/scripts/soft boots quest 2.lua:6: unexpected symbol near ','
Can someone with experience help me please?
