Results 1 to 3 of 3

Thread: Create rune action.

  1. #1
    Normal User Damyrup's Avatar
    Join Date
    Apr 2013
    Location
    www.ssocialscripts.com
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    40
    Rep Power
    4

    Create rune action.

    Hello.

    I need an action to create Avalanche if soul is above 10, and only if there is no monster on screen.

    Thanks

  2. #2
    Banned
    Join Date
    Nov 2012
    Location
    Sweden
    Posts
    450
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    65
    Rep Power
    0
    local CONFIG = {

    NAME SPELL = "adori mas frigo", -- name of the spell
    MANA = 535, -- cost to cast spell

    SOUL_POINTS = 10, -- minimum soul points to cast spell

    BLANK_RUNE = 3147, -- blank rune id
    BLANK_RUNE_AMOUNT = 1, -- minimum blank rune amount to cast spell

    MONSTER_RANGE = 14, -- consider monsters within this range radius

    }

    -- ENGINE, DON'T EDIT

    if soul >= CONFIG.SOUL_POINTS and itemcount(CONFIG.BLANK_RUNE) >= CONFIG.BLANK_RUNE_AMOUNT and maround(CONFIG.MONSTER_RANGE, false) == 0 and mana >= CONFIG.MANA and cancast(CONFIG.NAME_SPELL) then
    cast(CONFIG.NAME_SPELL)
    end
    Last edited by PromB; 07-29-2013 at 08:55 AM.

  3. #3
    Normal User Damyrup's Avatar
    Join Date
    Apr 2013
    Location
    www.ssocialscripts.com
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    40
    Rep Power
    4
    Thanks, Will try it when I get home

Posting Permissions

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