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

[request] 3 kills = green skull, 7 kills = red skull, 12 kills = auto ban

Rappine

Empire will back
Joined
Feb 6, 2009
Messages
106
Reaction score
0
Location
Brazil
Is posible anyone do an script for example:
3 kills = green skull:
{30% chance to lose each item from set,
100% chance lose a bp,
if have with aol/bless and take the skull will lose the items too}
[if are with bless, bless dont work!]
7 kills = Red skull
{100% chanse lose set}
{if die lose 2,5% of all level's/skill's
[if have with bless, bless dont work]}

12 kills = auto ban xD
thx
 
if getPlayerFrags(cid) >= 3 then
setPlayerSkull(cid, 2)
elseif getPlayerFrags(cid) >= 7 then
setPlayerSkull(cid, 5)

or something like that, idk
 
This script is a bit different from what you want but u can chance it. i made it awhile ago

Code:
function onKill(cid, target)
  if getPlayerFrags(cid) == 10 then 
    doCreatureSetSkullType(cid, 3)  -- 3 is white skull
  elseif getPlayerFrags(cid) == 30 then
    doCreatureSetSkullType(cid, 4)  -- 4 is red skull
  elseif getPlayerFrags(cid) == 100 then
    doCreatureSetSkullType(cid, 1)  -- 1 is yellow
  elseif getPlayerFrags(cid) == 150 then
    doCreatureSetSkullType(cid, 2)  -- 2 is green
  end
end
 
This script is a bit different from what you want but u can chance it. i made it awhile ago

Code:
function onKill(cid, target)
  if getPlayerFrags(cid) == 10 then 
    doCreatureSetSkullType(cid, 3)  -- 3 is white skull
  elseif getPlayerFrags(cid) == 30 then
    doCreatureSetSkullType(cid, 4)  -- 4 is red skull
  elseif getPlayerFrags(cid) == 100 then
    doCreatureSetSkullType(cid, 1)  -- 1 is yellow
  elseif getPlayerFrags(cid) == 150 then
    doCreatureSetSkullType(cid, 2)  -- 2 is green
  end
end
where can i add this? ;S
 
where can i add this? ;S

data/creaturescripts/scripts/script.lua

You must also register it in login.lua and creaturescripts.xml.

-----

I am not sure if this will work, but you can try it as well.

Lua:
local frags = {
	[{1,9}] = SKULL_WHITE,
	[{10,19}] = SKULL_RED,
	[{20,29}] = SKULL_BLACK
}

function onKill(cid, t)
	for i, v in pairs(frags) do
		if isInArray({i[1], i[2]}, getPlayerFrags(cid)) then
			doCreatureSetSkullType(cid, v)
		end
	end
	
	return true
end
 
Back
Top