[RESOLVED]SP Warn - Macro problem.

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

Message
Author
tmrcik
Noob
Noob
Posts: 17
Joined: 06 Feb 2009, 07:28
Noob?: Yes

[RESOLVED]SP Warn - Macro problem.

#1 Post by tmrcik »

Hello guys. I've read the macro manual, and run into a macro of SP warning where I use master char on manual and acolyte on bot. Since I'm using an aco right now, mana is a big issue. I opened a text file, pasted this code and saved it as "All files" along having an extension of .pl.

Code: Select all

automacro sp {
   sp < 200
   call {
      do c sp low
   }
   timeout 10
}
Yet, it did not work due to some errors that caused of "call" command. How could I possibly fix this?

Any help would be appreciated. :)

User avatar
SkylorD
Moderators
Moderators
Posts: 1167
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: SP Warn - Macro problem.

#2 Post by SkylorD »

automacro sp {
sp < 200
timeout 10
call {
do c sp low
}
}
#Just changing timeout of place.
Learn rules

tmrcik
Noob
Noob
Posts: 17
Joined: 06 Feb 2009, 07:28
Noob?: Yes

Re: SP Warn - Macro problem.

#3 Post by tmrcik »

Nope, still error. And the error is syntax error at line 3, near timeout again. :(

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: SP Warn - Macro problem.

#4 Post by EternalHarvest »

tmrcik wrote:due to some errors
Very detailed description.

tmrcik
Noob
Noob
Posts: 17
Joined: 06 Feb 2009, 07:28
Noob?: Yes

Re: SP Warn - Macro problem.

#5 Post by tmrcik »

EternalHarvest wrote:
tmrcik wrote:due to some errors
Very detailed description.
How about you take the code and try it since you are a developer? It had been taken from the Openkore Wiki, and perhaps fix or least help people how to get over with the problem instead of being picky?

User avatar
SkylorD
Moderators
Moderators
Posts: 1167
Joined: 16 Dec 2011, 02:53
Noob?: No
Location: Brazil
Contact:

Re: SP Warn - Macro problem.

#6 Post by SkylorD »

EternalHarvest wrote:
tmrcik wrote:due to some errors
Very detailed description.
How about you take the code and try it since you are a developer? It had been taken from the Openkore Wiki, and perhaps fix or least help people how to get over with the problem instead of being picky?
You must take care with your words and on forum rules.

If you was read, with max attention, you'll know that you don't must/need save your macro in a .pl archieve.

Paste your code into macros.txt/control's folder.
Learn rules

tmrcik
Noob
Noob
Posts: 17
Joined: 06 Feb 2009, 07:28
Noob?: Yes

Re: SP Warn - Macro problem.

#7 Post by tmrcik »

Least care to renew the wiki, so we wouldn't bother you here. But yeah whatever. I'll figure it out somehow.

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: SP Warn - Macro problem.

#8 Post by EternalHarvest »

tmrcik wrote:How about you take the code and try it since you are a developer? It had been taken from the Openkore Wiki, and perhaps fix or least help people how to get over with the problem instead of being picky?
Okay, I've tried it.

Code: Select all

[macro] automacro sp triggered.
Username : sp low
[macro] automacro sp triggered.
Username : sp low
So exactly which "some errors" you've got? Are there any error messages?

Daedalus
Plain Yogurt
Plain Yogurt
Posts: 73
Joined: 09 Nov 2010, 16:20
Noob?: No

Re: SP Warn - Macro problem.

#9 Post by Daedalus »

Tried it, worked for me too. Don't be so grumpy, you want help from these ppl.

Locked