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

Outfit rewarded by amount of kills?

Thylonn

New Member
Joined
Dec 15, 2012
Messages
52
Reaction score
3
Hi,

I am looking for a system that rewards you with an outfit or something whenever u reach 10 kills (For example)

Could be done with maybe a Npc or something

like 10 kills = Warmaster outfit.
25 kills = Wayfarer

Can anyone make this? or does someone already have this?
 
Here We Are :)
Lua:
local storage = 9000
local frags1 = 10
local outfittype1 = 270 -- here the look type for warmaster outfit
local frags2 = 25 -- here this frags to take the second outfit
local outfittype2 = 271 -- here the look type for wayfarer outfit
local a = math.max(0, getCreatureStorage(cid, storage)) + 1
 
function onKill(cid, target, lastHit)
	if cid ~= target and isPlayer(target) then
		doCreatureSetStorage(cid, storage, a)
		
		if a == frags1 then
			doPlayerAddOutfit(cid,outfittype1)
		elseif a == frags2 then
			doPlayerAddOutfit(cid,outfittype2)
		end
	end
	return true
end
{ I Didn't Test it so tell me if it works or not }
Rep++ If It Helpful For You
 
Back
Top