
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.