Jump to content
  • 0
MatheusRDS

Erro no npc

Question

Estou com esse erro no script, que estou instalando:

Quote
[Error]:  Loading NPC file: npc/battleground/bg_main.txt
script error on npc/battleground/bg_main.txt line 82
    parse_simpleexpr: unexpected character
    77 :                bg_console "As Batalhas Campais esta iniciando em modo d
e tempo.";
    78 :                // Checa se as Batalhas comeþaram e foi dado @reloadscri
pt...
    79 :                if(
    80 :                        ((gettime(DT_HOUR) > 17 || (gettime(DT_HOUR) ==
17 && gettime(DT_MINUTE) >= 5)) && (gettime(DT_HOUR) < 18 || (gettime(DT_HOUR) =
= 18 && gettime(DT_MINUTE) <= 5))) ||
    81 :                        ((gettime(DT_HOUR) > 18 || (gettime(DT_HOUR) ==
18 && gettime(DT_MINUTE) >= 5)) && (gettime(DT_HOUR) < 20 || (gettime(DT_HOUR) =
= 20 && gettime(DT_MINUTE) <= 5))) ||
*   82 :                ')' {
    83 :                        set [email protected]_OPEN,1;

 

e a parte do script está ocorrendo o erro é essa:

Quote
		bg_console "As Batalhas Campais esta iniciando em modo de tempo.";
		// Checa se as Batalhas começaram e foi dado @reloadscript...
		if(
			((gettime(DT_HOUR) > 17 || (gettime(DT_HOUR) == 17 && gettime(DT_MINUTE) >= 5)) && (gettime(DT_HOUR) < 18 || (gettime(DT_HOUR) == 18 && gettime(DT_MINUTE) <= 5))) ||
			((gettime(DT_HOUR) > 18 || (gettime(DT_HOUR) == 18 && gettime(DT_MINUTE) >= 5)) && (gettime(DT_HOUR) < 20 || (gettime(DT_HOUR) == 20 && gettime(DT_MINUTE) <= 5))) ||
		) {
			set [email protected]_OPEN,1;
			announce "[Batalhas Campais]: Os Registros das Batalhas Campais estão abertos!", bc_all, "0xFFCE00";
			if( !bg_checkarena($BG_ARENA) )
				donpcevent "BattleGround#queue_main::OnReload";
			else
				initnpctimer;
		}
	}

 

Alguém poderia me ajudar, ficarei muito grato!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Sou meio leigo no assunto mas pode ser por causa das tabulações/espaçamentos, tente juntar isso tudo

if(
			((gettime(DT_HOUR) > 17 || (gettime(DT_HOUR) == 17 && gettime(DT_MINUTE) >= 5)) && (gettime(DT_HOUR) < 18 || (gettime(DT_HOUR) == 18 && gettime(DT_MINUTE) <= 5))) ||
			((gettime(DT_HOUR) > 18 || (gettime(DT_HOUR) == 18 && gettime(DT_MINUTE) >= 5)) && (gettime(DT_HOUR) < 20 || (gettime(DT_HOUR) == 20 && gettime(DT_MINUTE) <= 5))) ||
		) {

em 1 linha só.

if(((gettime(DT_HOUR) > 17 || (gettime(DT_HOUR) == 17 && gettime(DT_MINUTE) >= 5)) && (gettime(DT_HOUR) < 18 || (gettime(DT_HOUR) == 18 && gettime(DT_MINUTE) <= 5))) || ((gettime(DT_HOUR) > 18 || (gettime(DT_HOUR) == 18 && gettime(DT_MINUTE) >= 5)) && (gettime(DT_HOUR) < 20 || (gettime(DT_HOUR) == 20 && gettime(DT_MINUTE) <= 5))) ||) {

 

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

Important Information

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