Page 1 of 1

Invite char after login

Posted: Wed Nov 27, 2013 11:56 pm
by tunnaz
Hi there!
Im setting up my WP and tried to add lines to invite characters by names, here my WP

<?xml version="1.0" encoding="utf-8"?><waypoints>
sendMacro('InviteByName("Sharky")');
<!-- # 1 --><waypoint x="-362" z="1511" y="87"> </waypoint>
<!-- # 2 --><waypoint x="-495" z="1539" y="99"> </waypoint>
<!-- # 3 --><waypoint x="-660" z="1792" y="47"> </waypoint>
<!-- # 4 --><waypoint x="-807" z="1903" y="37"> </waypoint>
<!-- # 5 --><waypoint x="-931" z="1910" y="55"> </waypoint>
<!-- # 6 --><waypoint x="-805" z="1836" y="26"> </waypoint>
<!-- # 7 --><waypoint x="-547" z="1722" y="55"> </waypoint>
<!-- # 8 --><waypoint x="-356" z="1629" y="58"> </waypoint>
<!-- # 9 --><waypoint x="-135" z="1461" y="64"> </waypoint>
<!-- # 10 --><waypoint x="-120" z="1372" y="63"> </waypoint>
<!-- # 11 --><waypoint x="-253" z="1186" y="47"> </waypoint>
<!-- # 12 --><waypoint x="-131" z="1175" y="53"> </waypoint>
<!-- # 13 --><waypoint x="-80" z="1382" y="67"> </waypoint>
<!-- # 14 --><waypoint x="-196" z="1530" y="63"> </waypoint>
</waypoints>

but wont works. Where is the error ? ty in advance

Re: Invite char after login

Posted: Thu Nov 28, 2013 12:28 am
by Bill D Cat
The error is your command is not between <waypoint> and </waypoint> tags, and as such will not be executed.

Re: Invite char after login

Posted: Thu Nov 28, 2013 3:01 am
by tunnaz
Fixed, ty :D

Re: Invite char after login

Posted: Thu Nov 28, 2013 11:15 am
by tunnaz
Is there a way to use an "else" function to avoid invite in loop once the char is already in party? ty

Re: Invite char after login

Posted: Sat Dec 07, 2013 7:31 am
by kuripot
your character have a party or the alt have a party??
if your character check the party here is the code...

Code: Select all

		while not RoMScript("UnitExists('party1')") do
			sendMacro('InviteByName("'..ToonName..'")');
			yrest(3000)
		end