Results 1 to 2 of 2

Thread: strike hotkey

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

    strike hotkey

    HEY FRIENDS, im looking for a hotkey, IF i target X monster, he auto spell exactly strike,
    exemple If as a dragon (auto exori frigo)

    but if there is any player in my screen, doesnt cast the spell.
    is there? any war to do it?

  2. #2
    Normal User
    Join Date
    Mar 2012
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Code:
    local SPELL = {WORDS = "exori frigo", PVP = true}
    local MONSTERS = {"Dragon", "Dragon Lord"}
    
    function tableFind(element, table)
    	for _,v in pairs(table) do
    		if v == element then
    			return true
    		end
    	end
    	return false
    end
    
    if tableFind(target.name, MONSTERS) and target.isshootable and cancast(SPELL.WORDS) then
    if SPELL.PVP and paround(7, false) == 0 then
    return
    else
    cast(SPELL.WORDS)
    end
    end

Posting Permissions

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