Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado
local storage, pos1 = 8000, {x=515, y=1003, z=7}
local storage, pos2 = 8000, {x=528, y=1008, z=7}

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 110)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5.2, 1, 5.2, 1)

function onCastSpell(cid, var)
doTeleportThing(cid, pos1)
return doCombat(cid, combat, var)
end

as well as it looks in this healing spells to the one who uses it and teleport it to a pos X, what I want to do is that I have 4 different positives and when using the spell teleport to any of those random positions randomly choose it, if you should carry storange or can be used without storage. If this is so, you can remove it and I urge this help. it's for a monster this spells (ingles)

Postado

If I could understand, you want to the player teleports to a random position, right? Add the positions.

 

Spoiler

local positions = {{x=515, y=1003, z=7}, {x=528, y=1008, z=7}, {x=516, y=1003, z=7}, {x=517, y=1003, z=7}}

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 110)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5.2, 1, 5.2, 1)

function onCastSpell(cid, var)
doTeleportThing(cid, positions[math.random(1,#positions)])
return doCombat(cid, combat, var)
end

 

 

Contato:

 

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.6k

Informação Importante

Confirmação de Termo