Page 1 of 1

/if statement Help

Posted: Mon Oct 15, 2012 7:38 pm
by Yeoman
Wiki is very unclear on useage, and syntax, Not sure how to write /if's

/if (!${Me.no.target}) /makecamp return

If there is no target, return to camp is what It should do, but I think I got something wrong.

/if (!${me.target}) /attack on

if there is a target it should attack on.

any help or point me in right direction of info how to construct would be appreciative.

Thanks.

Re: /if statement Help

Posted: Mon Oct 15, 2012 8:51 pm
by ieatacid

Code: Select all

/if(${Target.ID}) /echo i have a target
And everything is case-sensitive.

Re: /if statement Help

Posted: Mon Oct 15, 2012 9:30 pm
by Yeoman
is the echo needed for that never seen echo stuff, thanks will play around with it

Re: /if statement Help

Posted: Tue Oct 16, 2012 7:26 am
by htw
Yeoman wrote:is the echo needed for that never seen echo stuff, thanks will play around with it
No, he was giving you an example of proper usage.

For the ones you put, and what you asked, it would be:

/if (!${Target.ID}) /makecamp return

/if (${Target.ID}) /attack on

htw

Re: /if statement Help

Posted: Tue Oct 16, 2012 8:08 pm
by Yeoman
Thanks