Ir para conteúdo

7983959

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    7983959 deu reputação a Rusherzin em Magia Criar Item Ground   
    There you go
     
    local config = { itemid = 2180, -- id da bomba duration = 10, -- duration antes de ser removida actionid = 13245, -- actionid que sera setado na bomba (pro movements) effect = 3, -- efeito que sai ao colocar a bomba msg = "The bomb has been planted" -- mensagem que sai ao ser colocado a bomba } function onCastSpell(cid, var) local position = getCreaturePosition(cid) local posx = {-3, -2, -1, 0, 1, 2, 3} local posy = {{-1, 0, 1}, {-2, -1, 0, 1, 2}, {-3, -2, -1, 0, 1, 2, 3}, {-3, -2, -1, 0, 1, 2, 3}, {-3, -2, -1, 0, 1, 2, 3}, {-2, -1, 0, 1, 2}, {-1, 0, 1}} if getTileInfo(position).protection then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Não pode usar em protection zone.") end for i=1, #posx do for j=1, #posy[i] do local posbomb = {x=position.x+posx[i], y=position.y+posy[i][j], z=position.z} if (not getTileInfo(posbomb).protection) then local item = doCreateItem(config.itemid, 1, posbomb) setItemAid(item, config.actionid) doItemSetAttribute(item, 'ref', getCreatureName(cid)) doSendMagicEffect(posbomb, config.effect) addEvent(removeBomba, config.duration * 1000, posbomb, config.itemid) end end end doCreatureSay(cid, config.msg, 20) return true end  
  2. Gostei
    7983959 deu reputação a Rusherzin em Magia Criar Item Ground   
    @7983959 Fiz do tamanho de um exori mas, não cheguei a testar, mas tenta assim:
     
    local config = { itemid = 2180, -- id da bomba duration = 10, -- duration antes de ser removida actionid = 13245, -- actionid que sera setado na bomba (pro movements) effect = 3, -- efeito que sai ao colocar a bomba msg = "The bomb has been planted" -- mensagem que sai ao ser colocado a bomba } function onCastSpell(cid, var) local position = getCreaturePosition(cid) local posx = {-3, -2, -1, 0, 1, 2, 3} local posy = {{-1, 0, 1}, {-2, -1, 0, 1, 2}, {-3, -2, -1, 0, 1, 2, 3}, {-3, -2, -1, 0, 1, 2, 3}, {-3, -2, -1, 0, 1, 2, 3}, {-2, -1, 0, 1, 2}, {-1, 0, 1}} for i=1, #posx do for j=1, #posy[i] do local posbomb = {x=position.x+posx[i], y=position.y+posy[i][j], z=position.z} local item = doCreateItem(config.itemid, 1, posbomb) setItemAid(item, config.actionid) doItemSetAttribute(item, 'ref', getCreatureName(cid)) doSendMagicEffect(posbomb, config.effect) addEvent(removeBomba, config.duration * 1000, posbomb, config.itemid) end end doCreatureSay(cid, config.msg, 20) return true end  
  3. Gostei
    7983959 deu reputação a PedroSTT em (Resolvido)Magia na direção em que o player olhar   
    Configure
    local x = { [0] = {x=p.x+1, y=p.y-1, z=p.z}, [1] = {x=p.x+7, y=p.y+1, z=p.z}, [2] = {x=p.x+1, y=p.y+7, z=p.z}, [3] = {x=p.x-1, y=p.y+1, z=p.z} } local y = { [0] = 172, [1] = 170, [2] = 173, [3] = 171  

Informação Importante

Confirmação de Termo