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

Lua onAttack dosendmagiceffect(cid,1)

Erikas Kontenis

Excellent OT User
Joined
Jul 3, 2009
Messages
1,938
Reaction score
682
Location
Lithuania
how to do on every attack, if monster attack you gain magic effect or if you attack or your summon attack monsters he gain magic effect.
 
try this
LUA:
function onAttack(cid, target)
doSendMagicEffect(getCreaturePosition(cid), 1)
return true
end
 
what do you mean register to every monster? if i good understand this should be this? data/monsters/rabbit.xml

and to add
LUA:
<script>
<event name="Hit"/>
</script>

or i'm not right?
 
i have no choose at all, source edits wont be good for that what i wanna.

Did i scripted it fine or miss something?

LUA:
function onStatsChange(cid, attacker, combatee)
if combatee ~= COMBAT_PHYSICALDAMAGE then
if isPlayer(attacker) or isMonster(attacker) then
doSendMagicEffect(getThingPos(cid), 1)
end
end
return true
end

sorry for horrible just made in browser
 
Back
Top