aboutsummaryrefslogtreecommitdiffstats
path: root/js/guild.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/guild.js')
-rw-r--r--js/guild.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/js/guild.js b/js/guild.js
new file mode 100644
index 0000000..8d4d91b
--- /dev/null
+++ b/js/guild.js
@@ -0,0 +1,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));
+ }
+ )
+}
+