Auryn Posted August 29, 2012 Posted August 29, 2012 (edited) I made this script to reset the castle ownship (only) of the owner guild on the wanted day for each two castles. Here it is : - script Reset WoE -1,{ OnClock2029: if (gettime(4) == 0){ getcastledata "payg_cas05",1; getcastledata "payg_cas05",2; getcastledata "payg_cas05",3; getcastledata "payg_cas05",4; getcastledata "payg_cas05",5; getcastledata "payg_cas05",6; getcastledata "payg_cas05",7; getcastledata "payg_cas05",8; getcastledata "payg_cas05",9; getcastledata "payg_cas05",10; getcastledata "payg_cas05",11; getcastledata "payg_cas05",12; getcastledata "payg_cas05",13; getcastledata "payg_cas05",14; getcastledata "payg_cas05",15; getcastledata "payg_cas05",16; getcastledata "payg_cas05",17; setcastledata "payg_cas05",1,0; flagemblem GetCastleData("payg_cas05",0); end; }else if (gettime(4) == 3){ getcastledata "aldeg_cas04",1; getcastledata "aldeg_cas04",2; getcastledata "aldeg_cas04",3; getcastledata "aldeg_cas04",4; getcastledata "aldeg_cas04",5; getcastledata "aldeg_cas04",6; getcastledata "aldeg_cas04",7; getcastledata "aldeg_cas04",8; getcastledata "aldeg_cas04",9; getcastledata "aldeg_cas04",10; getcastledata "aldeg_cas04",11; getcastledata "aldeg_cas04",12; getcastledata "aldeg_cas04",13; getcastledata "aldeg_cas04",14; getcastledata "aldeg_cas04",15; getcastledata "aldeg_cas04",16; getcastledata "aldeg_cas04",17; setcastledata "aldeg_cas04",1,0; flagemblem GetCastleData("aldeg_cas04",0); end; } } * I added the getcastledata part, just to test, dumbly, because the setcastledata setcastledata "xxxxxxxx",1,0; was seem to reset guild economy to. The problem is I get this error at the reset moment : [Warning]: buildin_setcastledata: index = '0' is out of allowed range This is supposed to work, or am I trying to do it the wrong way ? Edited August 29, 2012 by Auryn Quote
Question
Auryn
I made this script to reset the castle ownship (only) of the owner guild on the wanted day for each two castles.
Here it is :
* I added the getcastledata part, just to test, dumbly, because the setcastledata setcastledata "xxxxxxxx",1,0; was seem to reset guild economy to.
The problem is I get this error at the reset moment :
This is supposed to work, or am I trying to do it the wrong way ?
Edited by Auryn0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.