<event type="target" name="WildAttack" event="script" value="playerattack.lua"/>
creaturescripts:
playerattack.lua
local fightcondition = createConditionObject(CONDITION_INFIGHT)setConditionParam(fightcondition, CONDITION_PARAM_TICKS, 12 * 1000)function fightCondic(cid) if not isCreature(cid) then return true end if not isCreature(getCreatureTarget(cid)) then return true end doAddCondition(cid, fightcondition)addEvent(fightCondic, 1000, cid)endfunction onTarget(cid, target)if isPlayer(target) then if canAttackOther(cid, target) == "Cant" then return false elseif isPlayer(target) and #getCreatureSummons(target) >= 1 and canAttackOther(cid, target) == "Can" then return false endendif getPlayerStorageValue(target, 201) ~= -1 thenfor a, b in pairs(ginasios) doif getPlayerStorageValue(target, ginasios[getPlayerStorageValue(target, 201)].storage) == 1 then if getPlayerStorageValue(cid, ginasios[getPlayerStorageValue(target, 201)].storage) ~= 1 then doPlayerSendCancel(cid, "You can't attack this pokemon.") return false endendendendif isSummon(target) then if canAttackOther(cid, target) == "Cant" then return false endend return TRUEend
só tinha esse, pelo q vi no final tem um return TRUE q esta desativado