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

on atack summon

popitox

Member
Joined
Jul 8, 2008
Messages
63
Reaction score
8
i had a problem with this script if player atack the summon it gets pk, but if owner atack it take it too is there any way to owner dont get skull?

local stime = 5 -- tempo de pk (minutos)
local condition_infight = createConditionObject(CONDITION_INFIGHT)
setConditionParam(condition_infight, CONDITION_PARAM_TICKS, stime * 60 * 1000)

function onAttack(cid, target)
if getCreatureSkullType(cid) < 3 and isPlayer(getCreatureMaster(target)) then
doCreatureSetSkullType(cid, SKULL_WHITE)
doAddCondition(cid, condition_infight)
doPlayerSetPzLocked(cid, true)
end

return true
end
 
Solution
Code:
if getCreatureSkullType(cid) < 3 and isPlayer(getCreatureMaster(target)) and getCreatureMaster(target) ~= cid then

try, no idea if it works. Im working with newer functions xD
Code:
if getCreatureSkullType(cid) < 3 and isPlayer(getCreatureMaster(target)) and getCreatureMaster(target) ~= cid then

try, no idea if it works. Im working with newer functions xD
 
Solution
Back
Top