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

When you kill someone you get his skull

latriuz

New Member
Joined
Nov 21, 2009
Messages
35
Reaction score
0
So i Want when you kill someone that you get his skull where the text line on is like --> you see a skull he belonged to mister X who was slayed by Mister Y at level 210...

Would be very nice of someone would do this for me THANKS!
 
ehmm.. i dont get the idea of the text message , where and when should it appear, else for main script
so if the target have red skull and you kill him , you get red skull ?
 
its like the "hearth".
You see PLAYER Y hearth. He dead at lv 200 by player x.
but he want it like skull
You see a Skull.
It was made when player y got slayed by player x
 
indeed luciano gets it but i want a skull to avoid problems with morgoraths heart etc can anyone do this for me thanks in advance
 
2m29734.png


??

That guy doesn't want to have the PvP skull, he wants this item as prove that player x slayed player y.
Should be possible, I saw it with trophys already.
 
Code:
local c = {
	skull = 9448,
	descr = "This skull belonged to !TARGET!, who was slain by !PLAYER! at level !LEVEL!."
}

function onKill(cid, target, lastHit, flags)
	local v, d, skull = {
		["!TARGET!"] = getPlayerName(target),
		["!PLAYER!"] = getPlayerName(cid),
		["!LEVEL!"] = getPlayerLevel(cid)
	}, c.descr, doPlayerAddItem(cid, c.skull, 1)
	for t, r in pairs(v) do
		d = d:gsub(t,r)
	end
	doItemSetAttribute(skull, "description", d)
	return true
end

Register the event in login.lua ..
 
Back
Top