View unanswered posts | View active topics It is currently Sat Apr 18, 2026 8:07 pm



Reply to topic  [ 4 posts ] 
 Botlink PoC Script (YSNP) 
Author Message
Gameop
User avatar

Joined: Tue Nov 19, 2002 3:00 am
Posts: 1050
Location: USA
Unread post Botlink PoC Script (YSNP)
I've been working with others on what type of scripts we could create in Botlink. My hopes is that, as this back-end develops we will see script's come out of it that add's diversity to this two decade old game and attract attention of new players.

This script act's like a monitor. It comes with the caveat that I only wrote it to monitor one person. If that person step's outside of sector's 1-10 then he/she get's moved back to Sector 1 and the script terminates.

This conceptually could be step one of that Truce bot. Or a way to prevent players from leaving space while still allowing them to ZTM. Auto responder for entering that specific space, or any number of options.

Thank you Vid Kid and JP for assisting me with the various commands/syntax/ideas needed to create this script.

Code:
#You shall not pass (YSNPr3.ts) Kaus/2012
#
#O Knights of Ni, we have brought you your shrubbery. May we go now?
#It is a good shrubbery. I like the laurels particularly,... but there is one small #problem.
#What is that?
#We are now... no longer the Knights Who Say 'Ni'.

:start
Send "Drop target*"
Waitfor ">"
Setdelaytrigger delay :delayed 500
pause

:delayed
send "find online players*"
:newtext
Killalltriggers
Settextlinetrigger none :start "None"
Settextlinetrigger blank :blank
pause

:blank
setvar $line CURRENTLINE
isNumber $tmp $line
If ($tmp = FALSE)
goto :newtext
end

Send "use user " $tmp " as target*"

:watcher
Send "view target*"
SetTextlineTrigger watch :watch "Sector ="
pause

:watch
getword CURRENTLINE $currentSec 3
setVar $idx 1
While ($idx <= 10)
  If ($currentSec = $idx)
     goto :start
  else
   add $idx 1
end
end

send "exec target.move(1)*"
halt


:start could be replaced with :watcher, however I found that it bog's the system down without a delay.

_________________
Dark Dominion TWGS
Telnet://twgs.darkworlds.org:23
ICQ#31380757, -=English 101 pwns me=-
"This one claims to have been playing since 1993 and didn't know upgrading a port would raise his alignment."


Fri Feb 17, 2012 3:34 pm
Profile ICQ
Commander

Joined: Sun Feb 25, 2001 3:00 am
Posts: 1838
Location: Guam USA
Unread post Re: Botlink PoC Script (YSNP)
I understand the technique you are using to hold players in fed space.
As I was looking over things , to keep players in check .... no one gets
a decisive lead over anyone if done right.

So what is missing here is the removal of ports in sector 2 thru 10
that way no one will port pair trade while in holding.

just my 2¢

_________________
TWGS V2 Vids World on Guam Port 2002
Telnet://vkworld.ddns.net:2002
Discord @ DiverDave#8374
Vid's World Discord

Founding Member -=[Team Kraaken]=- Ka Pla

Image
Winners of Gridwars 2010
MBN Fall Tournament 2011 winners Team Kraaken
Undisputed Champions of 2019 HHT Just for showing up!

The Oldist , Longist Running , Orginal Registered Owner of a TWGS server :
Vids World On Guam


Fri Feb 17, 2012 5:41 pm
Profile WWW
Gameop
User avatar

Joined: Tue Nov 19, 2002 3:00 am
Posts: 1050
Location: USA
Unread post Re: Botlink PoC Script (YSNP)
Vid Kid wrote:
I understand the technique you are using to hold players in fed space.
As I was looking over things , to keep players in check .... no one gets
a decisive lead over anyone if done right.

So what is missing here is the removal of ports in sector 2 thru 10
that way no one will port pair trade while in holding.

just my 2¢


Thanks for the feedback, the above script is meant to be a proof of concept more than a production package. But that is definitly something to consider adding in future revisions!

_________________
Dark Dominion TWGS
Telnet://twgs.darkworlds.org:23
ICQ#31380757, -=English 101 pwns me=-
"This one claims to have been playing since 1993 and didn't know upgrading a port would raise his alignment."


Fri Feb 17, 2012 6:17 pm
Profile ICQ
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 3150
Location: USA
Unread post Re: Botlink PoC Script (YSNP)
One other thing I want to point out about this, at this time, it's the only way to do it, but eventually you'll be able to turn it around and make it an event-driven script rather than polling for the player's sector. Once we get there, this will work for any player. You'll receive an event saying a player moved and the from and to sector, and you can pull the player back in response to that. And of course, as we're talking about in another thread, the ultimate solution will be to be able to override the player's move command, test to see if the player should be held, and if so, deny the move, generating a message saying why.

But we're just getting started, and what you have here is a good demonstration of the kind of thing you can do with what you currently have to work with.

_________________
John Pritchett
EIS
---
Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.


Fri Feb 17, 2012 11:20 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 13 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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.