Well heres sort of a attempt to copy the soon to be Update on RL tibia where Black Skulls cant attack non skulled players.
Right now its set so Red Skulls cant attack Non skulled players.
And heres an example of a creaturescript.
and on Login.lua
Right now its set so Red Skulls cant attack Non skulled players.
Code:
function onPlayerAttack(cid, target)
if getCreatureSkullType(cid) == 4 and getCreatureSkullType(target) == 0 then
doPlayerSendCancel(cid, "You cannot attack non skulled players.")
return FALSE
end
return TRUE
end
And heres an example of a creaturescript.
Code:
<event type="combat" name="SkullAttack" event="script" value="skullAttack.lua"/
Code:
function onCombat(cid, target)
return onPlayerAttack(cid, target)
end
and on Login.lua
Code:
registerCreatureEvent(cid, "SkullAttack")
Last edited: