aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authoralexichi <alexbankai96@gmail.com>2016-04-23 20:40:52 +0200
committeralexichi <alexbankai96@gmail.com>2016-04-23 20:40:52 +0200
commit725c3529c3c2f63998578cfbcb070bdfa3a9ce19 (patch)
tree724e899c4a083b6249347273792b46189acb0b25 /js
parentd46a4d75594cebef5fc0c25104bde6242be0571e (diff)
downloadcandybox-725c3529c3c2f63998578cfbcb070bdfa3a9ce19.tar.gz
candybox-725c3529c3c2f63998578cfbcb070bdfa3a9ce19.tar.bz2
candybox-725c3529c3c2f63998578cfbcb070bdfa3a9ce19.tar.xz
candybox-725c3529c3c2f63998578cfbcb070bdfa3a9ce19.zip
add file for the guild ,client side (not finish)
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);
+ })
+}
+