• 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 Help with LUA and FRAGs, how does it work? Rep+

rockseller

Lua & .NET Programmer
Joined
May 10, 2008
Messages
159
Reaction score
9
Location
México
How can you handle Player Skulls?
On lua, how can i stop a player from getting WhiteSkull (Not PZlock) from certain player?
I'm thinking on 2 creaturescripts. OnKill, OnAttack.

OnAttack, each time will check storagevalue, if = to "X", then it will End WhiteSkull instantly, but how?

OnKill, would check if storagevalue, if = to "X", will delete the last frag.

Code:
doCreatureSetSkullType(cid, skull)
getPlayerSkullTicks(cid, type)
doPlayerSetSkullEnd(cid, 0, skull)

Can i use the above codes for this purpouse?

In less words:
What is the Usage of the above codes?, and how could i use the following code for this purpouse?

Code:
if(skullEnd > 0 and skull > SKULL_WHITE and os.time() > skullEnd and not getCreatureCondition(cid, CONDITION_INFIGHT)) then
		doPlayerSetSkullEnd(cid, 0, skull)
	end
(Taken from SkullCheck event)
 
Back
Top