Jump to content
  • 0
Sign in to follow this  
Kian

[RESOLVIDO]WoE

Question

Olá!Estou com o seguinte problema.Mesmo configurando os horários da woe nos arquivos agit_controller e agit_start_se a woe está iniciando ao desligar e ligar o emulador e ao dar reloadscript.Tem outro lugar a se configurar o horário?Segue os script da woe de como configurei.OBS:Mesmo dando @agitend o emulador fala que não há woe em andamento.

//===== Hercules Script ======================================//= War of Emperium - WoE Auto-Start//===== By: ==================================================//= kalen (1.0)//= 1.1 by Akaru and ho|yAnge|//===== Current Version: =====================================//= 2.0a//===== Description: =========================================//= Auto Start for War of Emperium//=============================================//= gettime(3): Gets hour (24 hour time)//= gettime(4): Gets day of week 1=Monday, 2=Tuesday,//= 3=Wednesday, 4=Thursday, etc.//===== Additional Comments: =================================//= v1.1a changed OnInit to OnAgitInit.[kobra_k88]//= v1.2 added gettime checks. removed $AgitStarted var.[kobra_k88]//= v1.3 Moved treasure spawn time here.[kobra_k88]//= v1.3a Implemented Shadowlady's idea to allow for different//= start/stop times on different days.[kobra_k88]//= 1.4 Fixed treasure chests spawn! We had to unroll some loops//= Now they appear in castles from 00:01 to 00:24. [Lupus]//= 1.5 Fixed WOE end messages on non-WOE days, by Avaj//= 1.5a missing tabs [KarLaeda]//= 1.6 Corrected multiple "WoE has begun" announces [ultramage]//= 1.7 Commented out the WoE start and end announces. [L0ne_W0lf]//= 1.8 Castle owners displayed when WoE starts and finished. [L0ne_W0lf]//= 1.8a Will now report unoccupied castles at start/end. [L0ne_W0lf]//= 1.8b Whoops. Fixed a mistake  [L0ne_W0lf]//= 1.9 Rearranged the time-checks so they no longer use goto. [L0ne_W0lf]//=	Removed treasure spawning function calls. (No longer needed)//= 2.0 Added WoE Battle Log support for broadcasts. [L0ne_W0lf]//= 2.0a Removed some brackets//============================================================//| To know how to set up WoE times, go to docwoe_time_explanation.txt// WoE Start/Stop times//======================================-	script	Agit_Event	-1,{	end;OnClock1900:	//start time for Thurs(4)OnClock2100:	//end time for Thurs(4)OnClock1800:	//start time for Sat(6)OnClock2000:	//end time for Sat(6)OnAgitInit:	// starting time checks	if((gettime(4)==4) && (gettime(3)>=19 && gettime(3)<21) ||	   (gettime(4)==6) && (gettime(3)>=18 && gettime(3)<20)) {		if (!agitcheck()) {			agitstart;			callsub S_DisplayOwners;		}		end;	}	// end time checks	if ((gettime(4)==4) && (gettime(3)==21) ||	    (gettime(4)==6) && (gettime(3)==20)) {		if (agitcheck()) {			agitend;			callsub S_DisplayOwners;		}		end;	}	end;S_DisplayOwners:	setarray .@maps$[0],"aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05";	setarray .@maps$[5],"gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05";	setarray .@maps$[10],"payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05";	setarray .@maps$[15],"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05";	for( set .@i, 0; .@i <= 19; set .@i, .@i+1 ) {		if (getcastledata(.@maps$[.@i],1))			announce "The [" + getcastlename(.@maps$[.@i]) + "] castle has been conquered by the [" + getguildname(getcastledata(.@maps$[.@i],1)) + "] guild.",bc_all|bc_woe;		else			announce "The [" + getcastlename(.@maps$[.@i]) + "] castle is currently unoccupied.",bc_all|bc_woe;	}	end;}
//===== Hercules Script ======================================//= War of Emperium SE - Auto-Start//===== By: ==================================================//= L0ne_W0lf//===== Current Version: =====================================//= 1.0//===== Description: =========================================//= Auto Start for War of Emperium//= To know how to set up WoE times, go to docwoe_time_explanation.txt//=============================================//= gettime(3): Gets hour (24 hour time)//= gettime(4): Gets day of week 1=Monday, 2=Tuesday,//= 3=Wednesday, 4=Thursday, etc.//===== Additional Comments: =================================//= 1.0 Copy/Paste of the original setter.//============================================================// WoE Start/Stop times//============================================================-	script	Agit2_Event	-1,{	end;OnClock1900:	//start time for Thurs(4)OnClock2100:	//end time for Thurs(4)OnClock1800:	//start time for Sat(6)OnClock2000:	//end time for Sat(6)OnAgitInit2:	// starting time checks	if((gettime(4)==4) && (gettime(3)>=19 && gettime(3)<21) ||	   (gettime(4)==6) && (gettime(3)>=18 && gettime(3)<20)) {		if (!agitcheck2()) {			agitstart2;		}		end;	}	// end time checks	if ((gettime(4)==4) && (gettime(3)==21) ||	    (gettime(4)==6) && (gettime(3)==20)) {		if (agitcheck2()) {			agitend2;		}		end;	}	end;}
Edited by Kian

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Por padrão, tudo castelo inicia o modo woe se não há nenhum clã em possessão desse castelo.

Opa!Resolveu.Muito obrigado! :)

Share this post


Link to post
Share on other sites

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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.