• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Skull Amulet error

Amiroslo

Excellent OT User
Joined
Jul 28, 2009
Messages
6,812
Solutions
6
Reaction score
822
the script
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
 
Check
LUA:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
	if (getCreatureSkullType(cid) >= 4 and 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
 
Back
Top