rockseller
Lua & .NET Programmer
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.
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?
(Taken from SkullCheck event)
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