Script For Casting Portals?

Woozy

Member
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?
 

Kannkor

Ogre
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?
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?
 

Woozy

Member
Just chain casting, I'm worried that people would get suspicious if it was on command hehe.
 

Cheesy

Well-Known Member
Not that I really advise afk casting, but the following should provide what you need in a basic form.

Code:
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

Member
Thanks, Cheesy! I won't be afk, I'll be there although probably on another window most times.
 

Woozy

Member
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?
 

Cheesy

Well-Known Member
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?
Shouldn't do, worked fine for me when I tested.

Code:
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:
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

Member
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. :)
 
Top Bottom