|
Register •
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 6 posts ] |
|
Author |
Message |
The Bounty Hunter
Gameop
Joined: Mon Jan 15, 2007 2:41 am Posts: 342
|
Pulling Corp Ship Number
As I try and knock the dust off my scripting abilities,...
I need some help. Trying to pull a corpy ship number from bot qss command.
Can't us GETWORD as position may change if user name is 2 words Can't use GETTEXT as there is nothing after the Ship #
Through about setting a QSS routine on the QSS output but that seems a bit overkill.
Suggestions? I'm sure the answer is simple but I am not yet back into scripting mode.
_________________ Where Chaos Reigns TW Server chaos-twgs.com:23
|
Mon May 23, 2016 1:28 am |
|
|
Hammer_2
Lieutenant J.G.
Joined: Mon Dec 01, 2014 5:39 pm Posts: 440
|
Re: Pulling Corp Ship Number
Hiya, Super basic script, use the first waitfor to ensure we have right block of text. Code: send "'hunt qss*" waitfor "|EPRB" setTextTrigger x :x "SHIP =" pause :x getText CURRENTLINE $v "SHIP = " "" send "'ship num: " $v "*" Cheers, Ham
|
Mon May 23, 2016 3:36 am |
|
|
The Bounty Hunter
Gameop
Joined: Mon Jan 15, 2007 2:41 am Posts: 342
|
Re: Pulling Corp Ship Number
Thank you.
Ugh. Something so simple.
_________________ Where Chaos Reigns TW Server chaos-twgs.com:23
|
Mon May 23, 2016 8:36 am |
|
|
Adept
Chief Warrant Officer
Joined: Sat Feb 27, 2016 1:01 am Posts: 193 Location: Molon Labe
|
Re: Pulling Corp Ship Number
To show various methods of performing the same task, here is my take on such a function, applying an ANSI check and error routine on a simple wait:
_________________ “The object of life is not to be on the side of the majority, but to escape finding one’s self in the ranks of the insane.” — Marcus Aurelius
TWX Proxy Reference Online
|
Mon May 23, 2016 10:40 am |
|
|
Hammer_2
Lieutenant J.G.
Joined: Mon Dec 01, 2014 5:39 pm Posts: 440
|
Re: Pulling Corp Ship Number
Nice one Adept, didn't even know you could use the * as the Carriage return for the new line on that command.
|
Mon May 23, 2016 5:11 pm |
|
|
Adept
Chief Warrant Officer
Joined: Sat Feb 27, 2016 1:01 am Posts: 193 Location: Molon Labe
|
Re: Pulling Corp Ship Number
Gracias, ...what seems rather odd is that #42 does not seem to work, maybe because quotes are required?
_________________ “The object of life is not to be on the side of the majority, but to escape finding one’s self in the ranks of the insane.” — Marcus Aurelius
TWX Proxy Reference Online
|
Tue May 24, 2016 12:10 am |
|
|
|
|
Page 1 of 1
|
[ 6 posts ] |
|
Who is online |
Users browsing this forum: Google [Bot] and 28 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|