Ir para conteúdo

Featured Replies

Postado

Boa Noite GALERINHA BOM seguinte preciso muito de ajuda ! estou com um script no servidor que é funciona certinho porem ela só empurra 1 sqm a frente gostaria que me ajudassem a por ela pra empurrar 5 sqm em vez de 1 só poderia me ajudar ?

Segue o script !

Citar

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 3)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, 0, -1, 0)
local area = createCombatArea({
{1, 1, 1},
{1, 1, 1},
{1, 1, 1},
{1, 1, 1},
{0, 3, 0},
})

setCombatArea(combat, area)
local function push(cid, target)
local direction = getCreatureLookDirection(cid)
local x = (direction == 1 and 1 or (direction == 3 and -1 or 0))
local y = (direction == 0 and -1 or (direction == 2 and 1 or 0))
local position = getCreaturePosition(target)
position.x = position.x + x
position.y = position.y + y
if doTileQueryAdd(target, position) == RETURNVALUE_NOERROR then
doTeleportThing(target, position, true)
end
end
function onTargetCreature(cid, target)
if not isNpc(target) then
addEvent(push, 100, cid, target)
end
end
setCombatCallback(combat, CALLBACK_PARAM_TARGETCREATURE, "onTargetCreature")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end

Se alguem puder me ajudar agradeceria muito e rep+

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.8k

Informação Importante

Confirmação de Termo