Skip to content

Instantly share code, notes, and snippets.

@BrunIF
Last active December 11, 2015 09:59
Show Gist options
  • Select an option

  • Save BrunIF/4583644 to your computer and use it in GitHub Desktop.

Select an option

Save BrunIF/4583644 to your computer and use it in GitHub Desktop.
// 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);
@BrunIF
Copy link
Copy Markdown
Author

BrunIF commented Jan 21, 2013

Tweaks for online games Society

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment