Results 1 to 2 of 2

Thread: Need some help with my exori script~

  1. #1
    Normal User
    Join Date
    Mar 2012
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Need some help with my exori script~

    Hey guys, I'm configuring a script to use exori min, exori and exori gran on the monsters depending on the amount of them, and somehow, this script is only working with the nightmares :/ It's not considering when there's for example 2 bogs and a nightmare scion~, can anyone tell me whats wrong with it please?

    Thanks in advance!


    HTML Code:
    local monsterspell = { 'nightmare', 'nightmare scion', '', 'bog 
    raider', 'mutated tiger'} 
    local spellstrike1 = 'exori min'
    local spellstrike2 = 'exori'
    local spellstrike3 = 'exori gran'
    
    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(2, false, unpack(monsterspell)) > 0 and cancast
    
    (spellstrike1) then 
        local mx, my, mid = target.posx, target.posy, target.id 
        local mt = turnsidespell(mx,my,mid) 
        turn(mt) 
        cast(spellstrike1) 
        wait(1000,1050) 
    end
    
    
    if  maround(3, false, unpack(monsterspell)) > 0 and cancast
    
    (spellstrike2) then
        cast(spellstrike2) 
        wait(1000,1050) 
    end
    
    
    if maround(3, false, unpack(monsterspell)) > 0 and cancast
    
    (spellstrike3) then 
        cast(spellstrike3) 
        wait(1000,1050) 
    end

  2. #2
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    because you have , "", "bog then start a new line.

Posting Permissions

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