|
You last visited: Today at 12:35
Advertisement
Trainstation bot
Discussion on Trainstation bot within the Facebook forum part of the Browsergames category.
12/19/2013, 10:09
|
#16
|
elite*gold: 0
Join Date: Apr 2012
Posts: 2
Received Thanks: 0
|
Dock procedure
Hi,
Thank YOU very much for the script but with final update of the game, dock procedure is not working anymore  . I dont know how to modify RGB or something from there.
Can you do something about that ?
THANKS !
Quote:
Originally Posted by christiaantje
I created a bot for the facebook game Trainstation. U might want to adjust it to personalize it for ur own needs. But it is a good start for botting on any facebook game, that requires the same actions over and over again. Or/And color depending clicks/keyinputs.
Feel free to use it     I wrote the script in ACTool so u will need to download ACTool from
I got alot of questions about the script and people tell me it doesnt work. If u want help to set up the trainstation bot, just pm me or connect to my teamspeak flum.aionallstars.com:11807
Code:
(*
Train station script 1.0 by flum
Have problems or questions feel free to contact me on teamspeak 3 Address: flum.aionallstars.com:11807
-Functions
Send your trains out every 10 minutes + goes to docking to click on the trains.
Delete flags for you.
Send international trains to your favs.
-Requirements
Screen resolution 1366 768
Chrome or Firefox.
The 1 click passenger and cargo upgrade for ur station.
-Run notes
Start the script first, then within 5 sec open trainstation fullscreen.
-Config notes
If u set constants delflag 0 to anything else it will start to delete the amount of flags from the giftbox.
Change internation 0 if u dont want to send int trains.
Changelog
0.2 send trains every 10 min
0.3 minor bug fixes
0.4 added del flag function
0.5 changed flag function for easy use
0.6 send int function added
0.7 click dockin station implemented
0.8 color check implemented for better check
0.9 changed mouse cord. for int trains
1.0 code clean up
*)
constants
delflag = 0
main = 1 // dont change this value
end
delay 5 sec
call main
//call test
//-----Send Trains and ints to fav and check dock
procedure main
call flag
while $main = 1
MousePos 976, 659 //1st train
call cc
MousePos 989, 646
call cc
MousePos 990, 634
call cc
MousePos 992, 622
call cc
MousePos 992, 614
call cc
MousePos 59, 83
call click
delay 5 sec
MousePos 422, 219
call click
call intcheck
call dock
end
end
//-----Delete flags and dont run the main script
procedure flag
if $delflag > 0
set main = 0
MousePos 71, 717
call click
MousePos 807, 238
call click
loop $delflag
MousePos 387, 420
call click
MousePos 734, 492
call click
end
else
end
end
//-----Send International Train To Fav
procedure intcheck
delay 3 sec
LoadRGB 462, 334
if {RGBBlue} = 140
MousePos 462, 334 //slot 1
delay 1 sec
DragTo 510, 314 //drag to send
call click
MousePos 604, 348 //favs
call click
MousePos 603, 373 //new select fav
call click
MousePos 798, 630 //send
call click
MousePos 799, 595 //confirm
call click
delay 2 sec
call intcheck
else
MousePos 473, 631 //close
call click
end
end
//-----check if dock is avaiable, if yes send them out
procedure dock
LoadRGB 156, 77
if {RGBGreen} = 143
MousePos 156, 77
call click
delay 3 sec
MousePos 961, 665
call click
MousePos 961, 659
call click
MousePos 963, 653
call click
MousePos 963, 644
call click
MousePos 963, 637
call click
MousePos 27, 714 //home
call click
delay 2 sec
else
end
end
//------ checks if train window for sending normal trains is open if yes send for 10 min.
procedure getcolor
delay 2 sec
LoadRGB 836, 150
if {RGBGreen} = 232
SayPaste load train screen found
MousePos 528, 425
call click
else
// SayPaste Red {RGBRed} Blue {RGBblue} Green {RGBGreen}
end
end
procedure cc
call click
call getcolor
end
procedure click
leftclick
delay 1 sec
end
|
|
|
|
12/21/2013, 22:16
|
#17
|
elite*gold: 0
Join Date: Oct 2009
Posts: 16
Received Thanks: 7
|
Quote:
Originally Posted by BeaverHunter
I am curious if there is a downloadable tool you are using to get mouse coordinates while trainstation is in full screen mode ...or a hot key style program that gives mousecords while in another non modal window....what tool you use to deermine mouse calls????
otherwise i have to write a java program that stamps the mouse cords on my hot key to add aditional functions to this script
|
The shortkey in AC-Tool for that = HOLD DOWN CTRL and press M (So no, im not using a serperate tool for that)
Quote:
Originally Posted by V2013
Hi,
Thank YOU very much for the script but with final update of the game, dock procedure is not working anymore  . I dont know how to modify RGB or something from there.
Can you do something about that ?
THANKS ! 
|
I made an update it should work now if not feel free to add me on skype or visit my teamspeak server on flum.aionallstars.com:11807
Quote:
Originally Posted by abyss0709
can any 1 help me with a cityville bot
thanxxxx
|
Sure i am able to help you out!
|
|
|
12/23/2013, 22:48
|
#18
|
elite*gold: 0
Join Date: Apr 2012
Posts: 2
Received Thanks: 0
|
HAPPY NEW YEAR !
OMG !!! 
yOU DID AWESOME JOB  THANKS
Merry Christmass and HAPPY NEW YEAR
|
|
|
12/24/2013, 15:25
|
#19
|
elite*gold: 0
Join Date: Feb 2009
Posts: 22
Received Thanks: 0
|
Well, Hello Guys.. But, how can i use that Script? Where do i put it? Can u give me ur skype?
Does it still works?
Edit : I downloaded that AC Tool or so.. But i dont have the thing of One click passager or 1 click cargo.. is that really need? i can put the script working.. But only the mouse moves and he doesnt do anything..
|
|
|
12/30/2013, 21:25
|
#20
|
elite*gold: 0
Join Date: Oct 2009
Posts: 16
Received Thanks: 7
|
Quote:
Originally Posted by Kalarius
Well, Hello Guys.. But, how can i use that Script? Where do i put it? Can u give me ur skype?
Does it still works?
Edit : I downloaded that AC Tool or so.. But i dont have the thing of One click passager or 1 click cargo.. is that really need? i can put the script working.. But only the mouse moves and he doesnt do anything..
|
Like i said ur free to edit the script as u wish. U can make it work for any resolution or setup. U just need to change the mousepositions.
Im always ready to help u out. Just contact me over the forum with a PM and i will pm u back my skype so we can get into contact.
|
|
|
01/16/2014, 01:12
|
#21
|
elite*gold: 0
Join Date: Dec 2013
Posts: 1
Received Thanks: 0
|
Here's a version for 1600x900 that can send trains for 6 minutes to 3 hours and visit docks. Also you can set different journey times for passanger and cargo trains, just delete first // in row with specified time for each train type (default: 6 minutes for cargo and 1 hour for passanger trains).
constants
main = 1
end
delay 15 sec
call main
procedure main
while $main = 1
call checkdock
MousePos 1310, 790
call cc
call checkdock
MousePos 1310, 760
call cc
call checkdock
MousePos 1310, 730
call cc
call checkdock
MousePos 1310, 715
call cc
call checkdock
MousePos 1310, 685
call cc
call checkdock
MousePos 1310, 685
call cc
delay 5000
call checkdock
end
end
procedure click
leftclick
delay 1000
end
procedure cc
call click
call click
IsRed 1070, 400 //Passanger trains journey time
//MousePos 665, 485 //6 min
//MousePos 880, 485 //10 min
//MousePos 1100, 485 //30 min
MousePos 665, 650 //60 min
//MousePos 880, 650 //120 min
//MousePos 1100, 650 //180 min
call click
else //Cargo trains journey time
MousePos 665, 485 //6 min
//MousePos 880, 485 //10 min
//MousePos 1100, 485 //30 min
//MousePos 665, 650 //60 min
//MousePos 880, 650 //120 min
//MousePos 1100, 650 //180 min
call click
end
end
procedure checkdock
IsBlack 129, 70
mousepos 129,70
leftclick
delay 3000
call dock
Else
End
end
procedure dock
MousePos 1250, 790
leftclick
delay 500
MousePos 1235, 760
leftclick
delay 500
MousePos 1225, 730
leftclick
delay 500
MousePos 1235, 715
leftclick
delay 500
MousePos 1250, 685
leftclick
delay 500
MousePos 30, 850
leftclick
delay 5000
end
|
|
|
02/16/2014, 09:44
|
#22
|
elite*gold: 0
Join Date: Nov 2010
Posts: 7
Received Thanks: 0
|
video tutorial pls crome or mozila verzi pls
|
|
|
02/19/2014, 22:45
|
#23
|
elite*gold: 0
Join Date: Feb 2014
Posts: 1
Received Thanks: 0
|
Where is the link to download?
|
|
|
06/03/2014, 21:53
|
#24
|
elite*gold: 0
Join Date: Aug 2011
Posts: 4
Received Thanks: 0
|
Quote:
Originally Posted by apflesk
I would really appreciate some help to make this for 1920*1080. is there anyone that can help me with this? 
|
this bot is cool to work when you are sleeping.. why you dont change the monitor configuration when you are sleeping? is more easy...
|
|
|
06/05/2014, 20:37
|
#25
|
elite*gold: 0
Join Date: Aug 2011
Posts: 4
Received Thanks: 0
|
i do some modifications.. i put a procedure to colletc some envelopes to complete the Achievements Mailman, but we need to have some luck to collect.. i apreciate some help
Thanks
Code:
(*
Train station script 1.0 by flum
Have problems or questions feel free to contact me on teamspeak 3 Address: flum.aionallstars.com:11807
-Functions
Send your trains out every 10 minutes + goes to docking to click on the trains.
Delete flags for you.
Send international trains to your favs.
-Requirements
Screen resolution 1366 768
Chrome or Firefox.
The 1 click passenger and cargo upgrade for ur station.
-Run notes
Start the script first, then within 5 sec open trainstation fullscreen.
-Config notes
If u set constants delflag 0 to anything else it will start to delete the amount of flags from the giftbox.
Change internation 0 if u dont want to send int trains.
Changelog
0.2 send trains every 10 min
0.3 minor bug fixes
0.4 added del flag function
0.5 changed flag function for easy use
0.6 send int function added
0.7 click dockin station implemented
0.8 color check implemented for better check
0.9 changed mouse cord. for int trains
1.0 code clean up
MousePos 204, 344
MousePos 1208, 573
*)
constants
x = 0
y = 0
Mousex = 200
Mousey = 377
delflag = 0
main = 1 // dont change this value
end
delay 2 sec
call main
//call test
//-----Send Trains and ints to fav and check dock
procedure main
while $main = 1
MousePos 220, 652
call click
MousePos 206, 622
call click
MousePos 329, 650
call click
MousePos 320, 620
call click
MousePos 441, 652
call click
MousePos 438, 627
call click
MousePos 546, 652
call click
MousePos 555, 623
call click
MousePos 665, 654
call click
MousePos 671, 624
call click
MousePos 776, 651
call click
MousePos 784, 625
call click
MousePos 990, 615 //1st train
call click
MousePos 540, 410
call click
MousePos 990, 615 //1st train
call click
MousePos 540, 410
call click
MousePos 897, 644
call click
MousePos 910, 608
call click
MousePos 1131, 596
call click
MousePos 540, 410
call click
MousePos 1121, 636
call click
MousePos 540, 410
call click
call dock
Delay 5 sec
call mail
end
end
//-----check if dock is avaiable, if yes send them out
procedure dock
LoadRGB 169,70
if {RGBGreen} = 202
mousePos 169, 70
call click
delay 3 sec
MousePos 351, 613
call click
MousePos 365, 591
call click
MousePos 459, 617
call click
MousePos 478, 594
call click
MousePos 571, 612
call click
MousePos 579, 593
call click
MousePos 697, 616
call click
MousePos 703, 595
call click
MousePos 821, 614
call click
MousePos 819, 596
call click
MousePos 930, 616
call click
MousePos 931, 595
call click
MousePos 220, 652
call click
MousePos 206, 622
call click
MousePos 329, 650
call click
MousePos 320, 620
call click
MousePos 441, 652
call click
MousePos 438, 627
call click
MousePos 546, 652
call click
MousePos 555, 623
call click
MousePos 665, 654
call click
MousePos 671, 624
call click
MousePos 776, 651
call click
MousePos 784, 625
call click
MousePos 888, 648
call click
MousePos 990, 615 //1st train
call click
MousePos 540, 410
call click
MousePos 990, 615 //1st train
call click
MousePos 540, 410
call click
delay 2 sec
MousePos 27, 714 //home
call click
delay 2 sec
call main
else
end
end
procedure mail
MousePos 13, 377
//MousePos 1338, 372
loop 5
loop 65
compute MouseX = {MouseX} +20
//MousePos $MouseX, $MouseY
LoadRGB $MouseX, 377
if {RGBGreen} < 255
MousePos $MouseX, 377
call click
else
end
end
end
call main
end
procedure click
leftclick
delay 0.0001 sec
end
|
|
|
06/05/2014, 22:08
|
#26
|
elite*gold: 0
Join Date: Jun 2008
Posts: 166
Received Thanks: 31
|
dont work
if i have time i update the script
|
|
|
06/05/2014, 23:38
|
#27
|
elite*gold: 0
Join Date: Aug 2011
Posts: 4
Received Thanks: 0
|
for me works.. maybe you need to fix the coordinates for your computer..
Tks
|
|
|
06/21/2014, 22:54
|
#28
|
elite*gold: 0
Join Date: Jun 2014
Posts: 1
Received Thanks: 0
|
Ok this seems to be an old post but if some has this working i could really do with some help i have the code in ACTool and it sort of works then crashes
|
|
|
06/30/2014, 08:35
|
#29
|
elite*gold: 0
Join Date: Dec 2011
Posts: 6
Received Thanks: 1
|
Credit goes to  for the original script. I just modified it so it worked for me.
Also, although I think the automated screenshots is a great idea, it caused problems with creating the files which had to be created manually and was proving to be more hassle than useful.
This is my version of the macro, I have been working on this a couple of weeks and happy to say it's working for me and 2 other friends.
Requirements:
Full screen 1920x1080 resolution
One-click Cargo
One-click Passenger
ACTool (free program to run the script)
Instructions:
Download ACTool and set your start/stop hotkeys
Copy and paste the entire code in the spoiler section into ACTool and save it
in the "constants" section of the code, where it says "send" you may change the number to 6, 10 or 30 (only these 3 available at this time) depending on which journey time you would like the script to send your trains on
run the game and put it into full screen
press your hotkey to start the script
Watch!
What this script actually does:
This will send your trains out on the journey time you have specified in the "constants" section
!!!!DO NOT EDIT reason OR main. only edit send with either 6, 10 or 30.!!!!
It will click on your trains at docks and town (however it does not click halfway on contract journeys)
it will automatically close the level-up and achievement boxes so they will not stop the script
constants
send = 30
reason = 0
main = 1
end
call dockcheck
Procedure dockcheck
while $main = 1
LoadRGB 155, 73
if {RGBRed} = 1
call dock
else
call main
end
end
end
procedure dock //If dock is available go there and click on the trains
MousePos 157, 69
call click
delay 2 sec
MousePos 1700, 945
call click
MousePos 1700, 939
call click
MousePos 1700, 934
call click
MousePos 1700, 926
call click
MousePos 1700, 920
call click
MousePos 1700, 914
call click
MousePos 1700, 902
call click
MousePos 1700, 898
call click
MousePos 28, 1030
call click
delay 2 sec
end
procedure main //Clicks on all the trains on the main screen
//while $main = 1
MousePos 1670, 945
call cc
MousePos 1670, 939
call cc
MousePos 1670, 933
call cc
MousePos 1670, 925
call cc
MousePos 1670, 919
call cc
MousePos 1670, 911
call cc
MousePos 1670, 905
call cc
MousePos 1670, 892
call cc
MousePos 1670, 886
call cc
Mousepos 1670, 880
call cc
MousePos 1670, 870
call cc
call errorlog
//end
end
procedure getcolor //checks if the train clicked from main is a "dispatchable train" if yes dispatch it
delay 500
LoadRGB 1030, 578
if {RGBGreen} = 195
CASE $send
when 6
MousePos 814, 585
when 10
MousePos 1033, 574
when 30
MousePos 1252, 579
else
end
call click
else
end
end
procedure errorlog //Checks if there is any errors going on + handling them.
LoadRGB 681, 420
case {RGBGreen}
when 236
//236
setconst reason = lvlup
when 136
//136
setconst reason = achievment
when 30
//30
setconst reason = disconnect
else
Setconst reason = normal
end
if $reason = achievment
MousePos 1245, 361
call click
end
if $reason = disconnect
//call reconnect
end
if $reason = lvlup
MousePos 851, 794
call click
end
end
procedure cc
call click
call getcolor
end
procedure click
leftclick
delay 500
end
More features are due to be included in this script later on after i've fully got them working and tested, these are but not limited to:
automatic international deployment
automatic switching between 2nd and 3rd stations for express and international trains
and more...
Please go ahead and try this script out or yourself, if you're having problems you may contact me on  and I will do my best to run through it with you and get it working.
|
|
|
07/09/2014, 09:18
|
#30
|
elite*gold: 0
Join Date: Oct 2010
Posts: 2
Received Thanks: 0
|
Thx shyden!
Grinding my way up to OCC and OCP.
Hope to test it as soon as possible!
|
|
|
Similar Threads
|
[Request] Trainstation on facebook hack
09/06/2012 - Facebook - 0 Replies
please give me trainstation on facebook hack :awesome:
|
[REQUEST] TrainStation Hack!
02/12/2012 - Facebook - 1 Replies
Hello!
I have searched on the internet for a trainstation hack :( but no luck... Can anyone make a hack for it? example: Materials or Money, Or Something to make the trains finish the ride faster...
Thanks! :)
Bump!
Bump!
|
All times are GMT +1. The time now is 12:35.
|
|