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

No attack.

Degix

New Member
Joined
Oct 12, 2011
Messages
12
Reaction score
0
Hello. What I need to change in source to make that player when atacking monster didn't hit it. Even for 0? Becouse I want to make ots when u only figting with spells. I'm using tfs 0.3.6pl1. I'm counting on you.
 
When i used onAttack it work but now even my summon didn't attack it. Also i can't hit it with target spell becouse it say "you need to have target".
 
i made it like this...
LUA:
function onAttack(cid, target)
if isPlayer(cid) == TRUE then
   return false
else
return true
end
end
and still summon don't attack even don't go to creature who i have target x.x
 
i made it like this...
LUA:
function onAttack(cid, target)
    if isPlayer(cid) == TRUE then
        return false
    else
        return true
    end
end
and still summon don't attack even don't go to creature who i have target x.x

Oh really? So I guess summons' behaviours are defined onAttack, that's strange..

I'll try to think of a solution but I don't know one off of the top of my head. :|
 
Back
Top