• 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!

Lua skull Broadcast

Erikas Kontenis

Board Moderator
Staff member
Board Moderator
Joined
Jul 3, 2009
Messages
1,865
Reaction score
570
Location
Lithuania
can someone fix this script ? i self made it but nothing good for me :D the script dont got any erros :D in console then loading and then getting black skull :D please help me :D i will rep ++ :)

Code:
function onThink(cid)
       local name = getCreatureName(cid)
	   local skullNames = {"Yellow", "Green", "White", "Red", "Black"}
					local creatureSkull = getCreatureSkullType(cid)
					if creatureSkull ~= SKULL_Black then
                doBroadcastMessage("Omg " ..  name .. " is on killing spree!")
                end
        return TRUE
end
 
possible this one?


Code:
function onAdvance(cid, newskull, oldskull)
local name = getCreatureName(cid)
local skull = getCreatureSkullType(cid)
if(skull == SKULL_BLACK) then
doBroadcastMessage("Omg " .. name .. " is on killing spree!")
end
end
return TRUE
end

Code:
function onKill(cid, target, lastHit)
	if (not lastHit or not isPlayer(cid) or not isPlayer(target)) then
		return true
	end

	if (getCreatureSkullType(cid) == SKULL_BLACK) then
		doBroadcastMessage("Omg " .. getCreatureName(cid) .. " is on killing spree!")
	end
	return true
end
Duh?
 
Back
Top