Amiroslo
Excellent OT User
- Joined
- Jul 28, 2009
- Messages
- 6,812
- Solutions
- 6
- Reaction score
- 822
the script
Error
Rep++
Im using 0.3.6pl1
LUA:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if (getCreatureSkullType(cid) >= 4) then
if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2131) then
doCreatureSetDropLoot(cid, false)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
doCreatureSay(cid, "Skull Amulet!", TALKTYPE_ORANGE_1)
end
return true
end
Error
Code:
[Error - LuaScriptInterface::loadFile] data/creaturescripts/scripts/skullamulet.lua:10: 'end' expected (to close 'function' at line 1) near '<eof>'
[Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/skullamulet.lua)
data/creaturescripts/scripts/skullamulet.lua:10: 'end' expected (to close 'function' at line 1) near '<eof>'
Rep++
Im using 0.3.6pl1