Page 1 of 1

auto invite last group and destroying group not working

Posted: Sat Jul 23, 2011 4:02 pm
by newton666
hi, im trying to make a way point that when im runing rombot with 4 alts at the same time they can all leave at the seem time so i can reset instances and reinvite back to group.
This is what ive got so far but id dosn't seem work when i place it in a way point .

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="1641" z="-4931" y="752">player:rest(4);</waypoint>
<!-- # 2 --><waypoint x="1662" z="-5005" y="760">sendMacro("ILG destroy"); yrest(1000); sendMacro('SetInstanceLevel("normal")'); </waypoint>
<!-- # 3 --><waypoint x="1660" z="-5027" y="760">sendMacro("ILG inv"); yrest(1000);</waypoint>

</waypoints>
ps all bots have auto accept and the "/ILG inv or /ILG destroy" macro works when i test it in game.

Re: auto invite last group and destroying group not working

Posted: Sat Jul 23, 2011 7:45 pm
by Administrator
I can only assume that the /ILG commands are registered by an addon, and that they do not work as macro commands by themselves. You should open up the addon in a text editor and find the functions that those slash commands refer to and call those directly, instead.

Re: auto invite last group and destroying group not working

Posted: Sat Jul 23, 2011 11:00 pm
by rock5
You know, that's probably an unnecessary limitation. I had a similar issue when trying to use "/split" and "/merge". Why don't we add a function for doing slash commands?

Re: auto invite last group and destroying group not working

Posted: Sat Jul 23, 2011 11:09 pm
by Administrator
I suppose we could, but, how would it work? Don't slash commands only work through normal chat? This isn't too much of a problem, but we need to make sure it doesn't cause the chat to stay open.

Re: auto invite last group and destroying group not working

Posted: Sat Jul 23, 2011 11:54 pm
by rock5
Slash commands work in macros too.

I did a quick test by adding a third argument to RoMScript to include the "script" prefix in the command or not, but it didn't work. I'm assuming the command macro text would have to be different.

Come to think of it you would probably have to send only the slash command. I guess a slash command wouldn't return data. That would make it a fairly simple function. Just writeToMacro and execute.

Re: auto invite last group and destroying group not working

Posted: Sun Jul 24, 2011 12:44 am
by newton666
Slash commands work in macros too.

I did a quick test by adding a third argument to RoMScript to include the "script" prefix in the command or not, but it didn't work. I'm assuming the command macro text would have to be different.

Come to think of it you would probably have to send only the slash command. I guess a slash command wouldn't return data. That would make it a fairly simple function. Just writeToMacro and execute.
im a newbie at all this and not sure what u guys mean by "simple function"

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="1641" z="-4931" y="752">player:rest(4);</waypoint>
<!-- # 2 --><waypoint x="1662" z="-5005" y="760">sendMacro("ILG destroy"); yrest(1000); sendMacro('SetInstanceLevel("normal")'); </waypoint>
<!-- # 3 --><waypoint x="1660" z="-5027" y="760">sendMacro("ILG inv"); yrest(1000);</waypoint>

</waypoints>
  
 
what would i need to change or add to make this to work?
And thx all in replying to my post.

Re: auto invite last group and destroying group not working

Posted: Sun Jul 24, 2011 1:18 am
by rock5
Update to the latest revision and use

Code: Select all

SlashCommand("ILG destroy"); 

Re: auto invite last group and destroying group not working

Posted: Mon Jul 25, 2011 4:24 pm
by newton666
is this what you mean ?

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- # 1 --><waypoint x="1641" z="-4931" y="752">player:rest(4);</waypoint>
<!-- # 2 --><waypoint x="1662" z="-5005" y="760">SlashCommand("ILG destroy");yrest(1000); sendMacro('SetInstanceLevel("normal")'); </waypoint>
<!-- # 3 --><waypoint x="1660" z="-5027" y="760">SlashCommand("ILG inv"); yrest(1000);</waypoint>

</waypoints
because it still not working

Re: auto invite last group and destroying group not working

Posted: Mon Jul 25, 2011 10:08 pm
by rock5
newton666 wrote:because it still not working
And how does it not work? What happens? A little bit more information please.

Re: auto invite last group and destroying group not working

Posted: Mon Jul 25, 2011 10:55 pm
by lisa
Tested function doing this

Code: Select all

 SlashCommand("script Logout()") 
and it logged out character, so the function itself works fine.

What is the exact command you want to use in game, remember it has to be exact, even doing a small character instead of capital will make it not work.

Re: auto invite last group and destroying group not working

Posted: Wed Jul 27, 2011 10:50 am
by newton666
ok thx all got it to work :)