Results 1 to 6 of 6

Thread: [Pedido] Stop Targeting quando <= Royal Spears

  1. #1
    iBot User
    Join Date
    Apr 2015
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    2

    Post [Pedido] Stop Targeting quando <= Royal Spears

    Boa noite,

    Gostaria de solicitar uma action que de Stop no Targeting quando atingir certo numero de MP, HP e Royal Spear, e de Start quando voltar para a cave.

    Muito obrigado

  2. #2
    iBot User
    Join Date
    Apr 2015
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    2
    Por favor, necessito muito.

    Obrigado

  3. #3
    iBot User Nosekim's Avatar
    Join Date
    Feb 2012
    Posts
    1,089
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    70
    Rep Power
    7

    local MANA_MINIMA = 5;
    local VIDA_MINIMA = 5;

    if weaponamount <= 1 or
    itemcount('mana potion') <= MANA_MINIMA or
    itemcount('health potion') <= VIDA_MINIMA then
    settargeting('off')
    end



  4. #4
    iBot User
    Join Date
    Jun 2013
    Posts
    28
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    17 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by Nosekim View Post

    local MANA_MINIMA = 5;
    local VIDA_MINIMA = 5;

    if weaponamount <= 1 or
    itemcount('mana potion') <= MANA_MINIMA or
    itemcount('health potion') <= VIDA_MINIMA then
    settargeting('off')
    end


    and to set the target on again?

  5. #5
    iBot User Bloker's Avatar
    Join Date
    Jun 2013
    Posts
    122
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    22 Post(s)
    Reputation
    25
    Rep Power
    4
    Quote Originally Posted by marmon View Post
    and to set the target on again?
    Eae, beleza? Faz assim:

    Code:
    local NOME_SPEAR = "Royal Spear"
    local NOME_MANA = "Mana Potion"
    local NOME_CURA = "Health Potion"
    local SPEAR_MINIMA = 5
    local VIDA_MINIMA = 5
    local MANA_MINIMA = 5
     
    if (weapon == NOME_SPEAR) then
    	if (weaponamount <= SPEAR_MINIMA) or (itemcount(NOME_MANA) <= MANA_MINIMA) or (itemcount(NOME_CURA) <= VIDA_MINIMA) then
    	settargeting('off')
    	else
    	settargeting('on')
    	end
    elseif (weapon ~= NOME_SPEAR) then
    	if (itemcount(NOME_MANA) <= MANA_MINIMA) or (itemcount(NOME_CURA) <= VIDA_MINIMA) then
    	settargeting('off')
    	else
    	settargeting('on')
    	end
    end

    OS MELHORES SCRIPTS VOCÊ ENCONTRA AQUI!
    www.manehscripts.com

  6. #6
    iBot User
    Join Date
    Jun 2013
    Posts
    28
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    17 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by Bloker View Post
    Eae, beleza? Faz assim:

    Code:
    local NOME_SPEAR = "Royal Spear"
    local NOME_MANA = "Mana Potion"
    local NOME_CURA = "Health Potion"
    local SPEAR_MINIMA = 5
    local VIDA_MINIMA = 5
    local MANA_MINIMA = 5
     
    if (weapon == NOME_SPEAR) then
    	if (weaponamount <= SPEAR_MINIMA) or (itemcount(NOME_MANA) <= MANA_MINIMA) or (itemcount(NOME_CURA) <= VIDA_MINIMA) then
    	settargeting('off')
    	else
    	settargeting('on')
    	end
    elseif (weapon ~= NOME_SPEAR) then
    	if (itemcount(NOME_MANA) <= MANA_MINIMA) or (itemcount(NOME_CURA) <= VIDA_MINIMA) then
    	settargeting('off')
    	else
    	settargeting('on')
    	end
    end
    Obrigado!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •