Jump to content
  • 0

Guild & flagemblem reset script.


Auryn

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  147
  • Reputation:   1
  • Joined:  01/26/12
  • Last Seen:  

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 by Auryn
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...