Jump to content

Ayuda con script WOE


Recommended Posts


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  190
  • Reputation:   3
  • Joined:  04/11/12
  • Last Seen:  

esta es la script (schg_cas05) que quiero modificar le e agregado esta parte

    -   script   WOECustom   -1,{

OnWhisperGlobal:
if ( getgmlevel() < 99 ) end;
else if ( compare ( @whispervar0$, "on" ) ) goto S_start;
else if ( compare ( @whispervar0$, "off" ) ) goto S_end;
else end;

cuando activo con (on) el castillo se activa pero no la emperium

schg_cas06.txt

Edited by Mael
codebox
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   1
  • Joined:  07/15/12
  • Last Seen:  

Según se entiende entre "la".
¿Quieres activar ese castillo y se Inicie una WoE?

Lo que te pasa ahi es el:
 

S_start:
	if (agitcheck2()) {
		MapRespawnGuildID "schg_cas06",GetCastleData("schg_cas06",1),2;
		GvgOn "schg_cas06";
		donpcevent "Manager#sch06_02::Onstart";
	}

Si agitcheck2() devuelve 0 (Woe2 no iniciada, o Agit2 off) el Script termina.

Cada vez que el método AGITSTART se ejecuta, activa todos los scripts ligados a castillos contenidos en db/castle_db.txt y habilitados en npc/scripts_guild.conf.

Si tu idea es: Manipular que castillos tienen emperium, algo como habilitar o deshabilitar un castillo...
Necesitas revisar que castillos tienes habilitados en npc/scripts_guild.conf y luego ir a castle_db.txt y buscar como se llama el Evento que inicia el Script en tal castillo al ejecutar Agit2 (@agitstart2 / @agitend2). Ahi tu le metes el arreglo de un ON/OFF con alguna Variable permanente de NPC para que siempre tenga un Estado como Booleano True/False. Y tambien debes mirar el Evento que finaliza WOE para que analices cómo se hace para poner OFF el castillo estando AUN Agit2 Activado (creo que algo así quieres no? Manejar el castillo durante WoE a tu antojo.)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  190
  • Reputation:   3
  • Joined:  04/11/12
  • Last Seen:  

exacto como es un castillo custom quiero poder prender y apagar sin la necesidad de usar agitstart1, 2 y 3

lo que no se es como hacer para que prenda sin la necesidad de los comandos agitstart

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   1
  • Joined:  07/15/12
  • Last Seen:  

Eso lleva muchas modificaciones. El Agit es importante para el Emulador y tiene muchas líneas en el src y npcs que hacen uso de él. No te recomiendo pensar en ello.Tal cambio, puede crear un enredo de código importante en tu Emulador y estropearlo.

Te recomiendo seguir con la modificación de los Script de Castillos, puedes incluso modificar dichos Script para que se activen ciertos días a tal Hora, o que solo los actives de forma manual. Y que el AGIT esté siempre activo en el servidor pero los castillos controlados. /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  190
  • Reputation:   3
  • Joined:  04/11/12
  • Last Seen:  

lo agregue al woe controller que trae por defecto el rathena pero no me sale en la lista y ningun error en la consola, alguna idea que sea simple como podria hacer que este activo siempre

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   1
  • Joined:  07/15/12
  • Last Seen:  

-	script	4everwoe	-1,{
OnInit:
	// WoE normal
	if(!agitcheck())	agitstart;
	// WoE SE
	if(!agitcheck2())	agitstart2;
	// WoE TE
	if(!agitcheck3())	agitstart3;

}

Más lectura a doc/script_commands.txt /!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  190
  • Reputation:   3
  • Joined:  04/11/12
  • Last Seen:  

con eso se activarian todos solo quiero activar el custom para siempre los otros castillos tiene su dia y horario

Link to comment
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
Reply to this topic...

×   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...