Results 1 to 3 of 3

Thread: Vis hur - tera hur

  1. #1
    iBot User dracondeluxe's Avatar
    Join Date
    Apr 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Vis hur - tera hur

    I need an script kind it

    Code:
    --[[  Name: [Vis Hur] Turn Mode  ]]--  
          local monsterspell = { 'Cyclops' }  local spellstrike = 'exevo vis hur'  
    function turnsidespell(mdx,mdy,mdid)  
        local mdx, mdy, mdid, turnspell = mdx, mdy, mdid, 0  
        local bcor = {-1,1,0}  
        if mdid == target.id then  
            if posx+(bcor[2]) == mdx and (posy+(bcor[1]) == mdy or posy+(bcor[3]) == mdy or posy+(bcor[2]) == mdy) then  
                turnspell = 'e'  
            elseif posx+(bcor[1]) == mdx and (posy+(bcor[1]) == mdy or posy+(bcor[3]) == mdy or posy+(bcor[2]) == mdy) then  
                turnspell = 'w'  
            elseif posy+(bcor[2]) == mdy and (posx+(bcor[1]) == mdx or posx+(bcor[3]) == mdx or posx+(bcor[3]) == mdx) then  
                turnspell = 's'  
            elseif posy+(bcor[1]) == mdy and (posx+(bcor[1]) == mdx or posx+(bcor[3]) == mdx or posx+(bcor[3]) == mdx) then  
                turnspell = 'n'  
            end  
        end  
        return turnspell  
        end  if maround(1, false, unpack(monsterspell)) > 0 and cancast(spellstrike) then  
        local mx, my, mid = target.posx, target.posy, target.id  
        local mt = turnsidespell(mx,my,mid)  
        turn(mt)  
        cast(spellstrike)  
        wait(500,1000)  end
    however most advanced cuz this script have many bugs and erros, somebody can help me?

  2. #2
    iBot User dracondeluxe's Avatar
    Join Date
    Apr 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    i have some models, can someone update or fixe them?

    Code:
     
    --------Action by Felipepiva--------
    local Creaturestohur = {"Monster 1", "Monster 2", "monster 3"}
     
    --DO NOTHING DOWN
    local   EAST    = positive(posx + 1)
    local   WEST    = positive(posx - 1)
    local   NORTH   = positive(posy - 1)
    local   SOUTH   = positive(posy + 1)
     
    if target.name == unpack(Creaturestohur) then
        if target.x ~= posx and target.y ~= posy then
            if target.x < posx and target.y > posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , NORTH, posz) == true then move("n")
                    elseif (rand == 1) and tilewalkable(posx , NORTH, posz) == false then  move("e") 
                        elseif (rand == 2) and tilewalkable(EAST , posy, posz) == true then move("e")
                else move("n")
                end
            elseif target.x < posx and target.y < posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , NORTH, posz) == true then move("n")
                    elseif (rand == 1) and tilewalkable(posx , NORTH, posz) == false then move("w")
                        elseif (rand == 2) and tilewalkable(WEST , posy, posz) == true then move("w")
                else move("n")
                end
            elseif target.x > posx and target.y > posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , SOUTH, posz) == true then move("s")
                    elseif (rand == 1) and tilewalkable(posx , SOUTH, posz) == false then  move("e") 
                        elseif (rand == 2) and tilewalkable(EAST , posy, posz) == true then move("e")
                else move("s")
                end
            elseif target.x > posx and target.y < posy then
            local rand = math.random(1,2)
                if (rand == 1) and tilewalkable(posx , SOUTH, posz) == true then move("s")
                    elseif (rand == 1) and tilewalkable(posx , SOUTH, posz) == false then  move("w") 
                        elseif (rand == 2) and tilewalkable(WEST , posy, posz) == true then move("w")
                    else move("s")
                end
            end
        end
    end
    if target.name == unpack(Creaturestohur) then
        if (target.x == posx) or (target.y == posy) then turn(target.direction) wait(50,55)
            if cancast("exevo vis hur") then cast("exevo vis hur") wait(1000)
            elseif cancast("exevo gran vis lux") then cast("exevo gran vis lux") wait(50,55)
            elseif cancast("exori gran vis") then cast("exori gran vis") wait(50,55)
            else cast("exori vis") wait(550)
            end
        end
    end
    ---------------------------------------------------------------

    Code:
    --[[ INIT START ]]--  
    
    local PVP = false  
    local CREATURES = {"hellspawn"}  
    local SPELLS = {  
        {  
        SPELL = "exevo gran frigo hur", -- spell words  
            MANA = 250, -- mana cost  
            MIN_CREATURES = 1, -- amount of creatures to hit  
        },  
    }  
    
    --[[ INIT END ]]--  
    
    
    if maround(7, false, "Hellspawn") >= 1 and target.id ~= 0 and target.dist <= 3 and target.isshootable and target.name == "Hellspawn" then  
        if target.hppc <= 100 and target.hppc > 0 then  
                if cancast("exevo gran frigo hur") then  
          
                    for i = #SPELLS, 1, -1 do  
                        if (table.find({"SMALL_WAVE"}, Spell.GetByWordsOrName(SPELLS[i].SPELL):Condition())) then  
                                local HIGHEST_AMOUNT, BEST_DIRECTION = 0, Self.LookDirection()  
                                for DIRECTION, CREATURES_AMOUNT in pairs({[DIRECTION_NORTH] = 0, [DIRECTION_EAST] = 0, [DIRECTION_SOUTH] = 0, [DIRECTION_WEST] = 0}) do  
                                    CREATURES_AMOUNT = Self.MonstersAroundSpell(Spell.GetByWordsOrName(SPELLS[i].SPELL):Condition(), DIRECTION, unpack(CREATURES))  
                                    if (CREATURES_AMOUNT > HIGHEST_AMOUNT or (CREATURES_AMOUNT >= HIGHEST_AMOUNT and DIRECTION == Self.LookDirection())) then  
                                        HIGHEST_AMOUNT, BEST_DIRECTION = CREATURES_AMOUNT, DIRECTION  
                                    end  
                                end  
                                if (not(PVP) or ((paround(10,true) == 0) and (lasttimeplayeronscreen >= 10000))) then  
                                    if (HIGHEST_AMOUNT >= SPELLS[i].MIN_CREATURES) then  
                                        while (Self.LookDirection() ~= BEST_DIRECTION) do  
                                            Self.Turn(BEST_DIRECTION) System.Wait(10, 15)  
                                        end  
                                        if (Self.MonstersAroundSpell(Spell.GetByWordsOrName(SPELLS[i].SPELL):Condition(), BEST_DIRECTION, unpack(CREATURES)) >= HIGHEST_AMOUNT) then  
                                            cast(SPELLS[i].SPELL)  
                                        end  
    --"BIG_BEAM", "BIG_WAVE", "FRONT", "SMALL_BEAM", , "STRIKE"  
                                        break  
                                    end  
                                else  
                                    break  
                                end  
                        end  
                    end  
          
                 
                 elseif cancast("exori frigo") then  
                    cast("exori frigo")  
                    wait(200, 400)  
                end  
           end  
    end
    -------------------------------------------------------------

    Code:
    local waveMonsters = {"Frost Dragon", "Frost Dragon Hatchling"}
    local waveSpell = "exevo vis hur" -- Works for Energy Wave and Terra Wave
     
    if target.id ~= 0 then
    	local waveDirection = nil
    	for _, MONSTER in ipairs(waveMonsters) do
    		if target.name:lower() == MONSTER:lower() then
    			for i = -1,1 do
    				for j = 1,5 do
    					-- East
    					if (target.posx = (posx+4)+i and target.posy = posy+i) or (target.posx == posx+j) then
    						waveDirection = "e"
    					-- West
    					elseif (target.posx = (posx-4)+i and target.posy = posy+i) or (target.posx == posx-j) then
    						waveDirection = "w"
    					-- North
    					elseif (target.posx = (posy-4)+i and target.posx = posy+i) or (target.posy == posy-j) then
    						waveDirection = "n"
    					-- South
    					elseif (target.posx = (posy+4)+i and target.posx = posy+i) or (target.posx == posx+j) then
    						waveDirection = "w"
    					end
    				end
    			end
    			if waveDirection ~= nil then
    				if pvpServer and paround(14, true) == 0 and cancast(waveSpell) then
    					turn(waveDirection)
    					wait(50,100)
    					cast(waveSpell)
    				elseif not pvpServer and cancast(waveSpell) then
    					turn(waveDirection)
    					wait(50,100)
    					cast(waveSpell)
    				end
    			end
    		end
    	end
    end
    --------------------------------------------------------------------

    Code:
     
    local wavenorth = {((posx), (posy - 1)), ((posx), (posy - 2)), ((posx), (posy - 3)), ((posx), (posy - 4)), ((posx), (posy - 5))}
    local sidewaven1 = ((posx + 1), (posy - 3))
    local sidewaven2 = ((posx - 1), (posy - 3))
    local sidewaven3 = ((posx + 1), (posy - 4))
    local sidewaven4 = ((posx - 1), (posy - 4))
    local sidewaven5 = ((posx + 1), (posy - 5))
    local sidewaven6 = ((posx - 1), (posy - 5))
     
    if (target.posx and target.posy == wavenorth) or (target.posx and target.posy == sidewaven1) or (target.posx and target.posy == sidewaven2)
    or (target.posx and target.posy == sidewaven3) or (target.posx and target.posy == sidewaven4 or or (target.posx and target.posy == sidewaven5)
    or (target.posx and target.posy == sidewaven6) then
     
    turn("n") wait(500)
    cast("exevo vis hur") 
     
    end
    agradecido desde já.

  3. #3
    iBot User Ducklin's Avatar
    Join Date
    Jun 2012
    Posts
    377
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    33 Post(s)
    Reputation
    45
    Rep Power
    5
    whats the issue with the actions ?

    FREE SCRIPTS
    PAID SCRIPTS
    Give me some Credit, give me you're REP
    +

Tags for this Thread

Posting Permissions

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