aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/guild.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/js/guild.js b/js/guild.js
new file mode 100644
index 0000000..28f58b8
--- /dev/null
+++ b/js/guild.js
@@ -0,0 +1,18 @@
+function hireMiner(){
+ sendRequest("craftmine.php", "op=hireMiner", function() {
+ //datas.gold -= parseInt(datas.mine);
+ var ret = xhr.responseText;
+ console.log(ret);
+ //datas.gold = ret;
+ //updateDatas("gold");
+ //updateDatas("miners");
+ })
+}
+
+function createGuild(){
+ sendRequest("craftmine.php", "op=createGuild", function() {
+ var ret = xhr.responseText;
+ console.log(ret);
+ })
+}
+