aboutsummaryrefslogtreecommitdiffstats
path: root/js/guild.js
blob: 8d4d91be9c2c5e36ca2830e17f73544a511d4b1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function hireMiner(){
	sendRequest("craftmine.php", "op=hireMiner", function(ret) {
			debitAccount(parseInt(ret.cost));
			data.miners = parseInt(ret.miners);
			updateData("miners");
		}
	)
}
	
function createGuild(){
	sendRequest("craftmine.php", "op=createGuild", function(ret) {
			showInfo("Your guild has been successfully created");
			debitAccount(parseInt(ret.cost));
		}
	)
}