Last active
December 11, 2015 09:59
-
-
Save BrunIF/4583644 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // send resources from 6 cities in the capital after 3 hours. | |
| // tree = 198000 and stone = 198000 | |
| intervalID = setInterval (function(){ | |
| var time = new Date().getTime(); | |
| $.get('http://www.suspilstvo.com/society/actions/actions.php?my_p_id='+txt_myid_txt+'&action=sendKars&cityN=1&from_city='+txt_myid_txt+'_2&to_city='+txt_myid_txt+'_1&own=1&wood=198000&stone=198000&iron=0&food=0&jantar=0&rubin=0&swords=0&bows=0&_='+time); | |
| $.get('http://www.suspilstvo.com/society/actions/actions.php?my_p_id='+txt_myid_txt+'&action=sendKars&cityN=1&from_city='+txt_myid_txt+'_3&to_city='+txt_myid_txt+'_1&own=1&wood=198000&stone=198000&iron=0&food=0&jantar=0&rubin=0&swords=0&bows=0&_='+time); | |
| $.get('http://www.suspilstvo.com/society/actions/actions.php?my_p_id='+txt_myid_txt+'&action=sendKars&cityN=1&from_city='+txt_myid_txt+'_4&to_city='+txt_myid_txt+'_1&own=1&wood=198000&stone=198000&iron=0&food=0&jantar=0&rubin=0&swords=0&bows=0&_='+time); | |
| $.get('http://www.suspilstvo.com/society/actions/actions.php?my_p_id='+txt_myid_txt+'&action=sendKars&cityN=1&from_city='+txt_myid_txt+'_5&to_city='+txt_myid_txt+'_1&own=1&wood=198000&stone=198000&iron=0&food=0&jantar=0&rubin=0&swords=0&bows=0&_='+time); | |
| $.get('http://www.suspilstvo.com/society/actions/actions.php?my_p_id='+txt_myid_txt+'&action=sendKars&cityN=1&from_city='+txt_myid_txt+'_6&to_city='+txt_myid_txt+'_1&own=1&wood=198000&stone=198000&iron=0&food=0&jantar=0&rubin=0&swords=0&bows=0&_='+time); | |
| $.get('http://www.suspilstvo.com/society/actions/actions.php?my_p_id='+txt_myid_txt+'&action=sendKars&cityN=1&from_city='+txt_myid_txt+'_7&to_city='+txt_myid_txt+'_1&own=1&wood=198000&stone=198000&iron=0&food=0&jantar=0&rubin=0&swords=0&bows=0&_='+time); | |
| clearInterval(intervalID); | |
| alert("I send resources =)"); | |
| },3*60*60*1000); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tweaks for online games Society