Discussion in 'General Discussion' started by Woozy, Mar 16, 2018.

  1. Woozy

    Woozy Member

    Messages:
    68
    Is there a script to have a druid/wizard constantly cast their portals? This is for the FG server, I wouldn't be AFK to do it, just to help people out. Is there one already out there, or a way to change it so it's considered a buff, maybe?

    Speaking of which, can Spirit of Wolf be changed to a buff?
  2. Kannkor

    Kannkor Ogre

    Messages:
    3,608
    Spirit of wolf doesn't work like any other ability. It's a special case and isn't relevant to live, so I never put any time into making it work "properly".

    Do you want to have a druid/wiz chain cast it whenever it's not up? Or on demand. Say someone sends a tell with "portal" and they cast it?
  3. Woozy

    Woozy Member

    Messages:
    68
    Just chain casting, I'm worried that people would get suspicious if it was on command hehe.
  4. appleuser

    appleuser Well-Known Member

    Messages:
    297
    Does adding it to your cast stack at the top not work?
  5. Woozy

    Woozy Member

    Messages:
    68
    Sadly no, the only options for the cast stack are in-combat.
  6. Cheesy

    Cheesy Well-Known Member

    Messages:
    374
    Not that I really advise afk casting, but the following should provide what you need in a basic form.

    Code (Text):
    function main(int loops=100)

    {

        variable int c=0

        while ${loops}>=${c:Inc}
        {
            eq2execute useability Translocate
            wait 700
                }
        Echo Script Done
        }
    It'll simply just cast the portal spell every 70s (60s duration, gives a 10s downtime), for 100 loops. Just copy it into notepad, save it as portal.iss or something, and in console runscript portal

    100 loops will give you give you just under 2 hours worth of portals.
    Woozy likes this.
  7. Woozy

    Woozy Member

    Messages:
    68
    Thanks, Cheesy! I won't be afk, I'll be there although probably on another window most times.
  8. Woozy

    Woozy Member

    Messages:
    68
    Hmm I must have screwed up somehow. When I tried to run it, I got an error "Illegal statement outside of function defintion". Since it's a druid portal I had to change the spell name to Circle of Growth, does it need to be in quotes?
  9. Cheesy

    Cheesy Well-Known Member

    Messages:
    374
    Shouldn't do, worked fine for me when I tested.

    Code (Text):
    function main(int loops=100)
    {

        variable int c=0

        while ${loops}>=${c:Inc}
        {
            eq2execute useability Circle of Growth
            wait 700
                }
        Echo Script Done
    }
    Failing that, try the following (Requires OgreBot running);

    Code (Text):
    function main(int loops=100)
    {

        variable int c=0

        while ${loops}>=${c:Inc}
        {
            OgreBotAPI:CastAbility[Druid,Circle of Growth]
            wait 700
                }
        Echo Script Done
    }
    Woozy likes this.
  10. Woozy

    Woozy Member

    Messages:
    68
    I'll give that a shot later on, thanks again!

    EDIT: I already see what I did wrong, surprised I didn't notice it earlier. For some reason when I copied the original code, it included the "Code (Text):" header. Now that it's gone it should be fine, I'll confirm it later today. :)

Share This Page