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

medal after you get 10 ppl

wafuboe

Active Member
Joined
Dec 24, 2010
Messages
884
Solutions
2
Reaction score
26
ok im thinking in this.
you are pking and you get your 10th person killed you get a medal: Killer medal. given to "wafuboe" for kill 10 people blah blah.
broadcast: you obtained x medal

and if you kill 10th person with a white skull,red skull,black skull: Heroic medal givento to "wafuboe" for killing 10 pkers blah blah.
Broadcast you obtained x medal

(if instantly getting the medal then a nice effect)

it will be great :D
 
LUA:
local storage = 9000 -- dont modify
local item = 2460 -- change to medal item
 
function onKill(cid, target, lastHit)
	if isPlayer(target) and cid ~= target then
		local count = math.max(0, getCreatureStorage(cid, storage)) + 1
		setPlayerStorageValue(cid, storage, count)
		if count >= 10 then
			doPlayerAddItem(cid,item)
		end
	end
	return true
end
 
Back
Top