Hello
I made working piece of code secureMode (popular hand in Tibia)
But i dont know how to add function with ignoring spell, if i dont have selected hand.
Anyone can help me ?
If i try:
onCastSpell(cid) the script totally ruins, i totally cannot attack player (like non-pvp server)
I made working piece of code secureMode (popular hand in Tibia)
PHP:
function onCombat(cid, target)
if isPlayer(cid) and secureMode == 0 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You cannot attack player when secure mode is off.")
return false
elseif isPlayer(cid) and secureMode == 1 then
return true
end
return true
end
But i dont know how to add function with ignoring spell, if i dont have selected hand.
Anyone can help me ?
If i try:
onCastSpell(cid) the script totally ruins, i totally cannot attack player (like non-pvp server)