Jump to content
  • 0
fabioleda

error in npc salavip

Question

good afternoon i have a problem in my npc vip room ta saying that the error is on line 1 i looked and collected it and i did not find the error that is when the problem is a beast thing i solve this further i dont know where this error is help me?

SalaVIP.txt

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0
4 hours ago, fabioleda said:

good afternoon i have a problem in my npc vip room ta saying that the error is on line 1 i looked and collected it and i did not find the error that is when the problem is a beast thing i solve this further i dont know where this error is help me?

SalaVIP.txt 1.43 kB · 0 downloads

The error is your header, you need to use <tab>

Try this code and check it if still have the error

sec_in01,170,159,0	script	Saida#VIP1	WARPNPC,3,3,{
fim;
	OnTouch:
		urdidura "prontera", 160, 176;
	fim;
}

sec_in01,167,159,0 script Saída # VIP2 45,3,3, {
fim;
	OnTouch:
		urdidura "prontera", 160, 176;
	fim;
}

prontera, 152.184,6 script SalaVIP # 01 :: VIPman 873, {
	
	if (getgmlevel () <1)
	{
		mes "-Para ser VIP é muito simples.";
		mes "Doando a partir de ^ FF00002 reais ^ 000000 você já pode ter acesso aos comandos e NPCs VIP!";
		mes "Acesse http://www.ragnamemories.com/ para mais informações.-";
		fechar;
	}
	mes "[Sala VIP]";
	mes "Deseja ir para uma sala VIP?";
	query_sql "SELECT` diasvip` FROM `login` ONDE` account_id` = '"+ getcharid (3) +"' AND `level` = '1' AND` diasvip`> '0' ",. @ DIASVIP;
	mes "^ FF0000Você possui ^ 0000CD" +. @ DIASVIP + "^ FF0000dia (s) de VIP. ^ 000000";
	Próximo;
	if (selecione ("Sim: Não") == 2) fechar;
	close2;
	urdidura "sec_in01", 169, 164;
	fim;
}

sec_in01,0,0,0 script CheckVIP -1.500.500, {
fim;
	OnPCLoadMapEvent:
		if (getgmlevel () <1 && strcharinfo (3) == "sec_in01")
			warp getsavepoint (0), getsavepoint (1), getsavepoint (2);
		fim;
}

sec_in01 mapflag nobranch
sec_in01 mapflag noicewall
sec_in01 mapflag nomemo
sec_in01 mapflag nopenalty
sec_in01 mapflag noreturn
sec_in01 mapflag nosave
sec_in01 mapflag noskill
sec_in01 mapflag noteleport
sec_in01 mapflag novending
sec_in01 mapflag nowarp
sec_in01 mapflag nowarpto
sec_in01 mapflag loadevent

 

Share this post


Link to post
Share on other sites
  • 0

bro still giving the same error line 1 the worst i dont have another vip room so i have this one wouldnt like you to do a test and try to see what is the problem? I thank you for your attention

Share this post


Link to post
Share on other sites
  • 0
12 hours ago, fabioleda said:

bro still giving the same error line 1 the worst i dont have another vip room so i have this one wouldnt like you to do a test and try to see what is the problem? I thank you for your attention

Change "fim;" to "end;"

I see a lot of errors in this script, I think it won't work.

I think you should try to find another one.

 

Edited by Caspian

Share this post


Link to post
Share on other sites
  • 0

dude how am I going to find another vip room I can't find anywhere I already searched this site and nothing I ever went to brathena nothing rathena nothing I ever searched on google this one appears on the gihub website and this one was the one I found if you could find me help some place where i can find another vip room i would be very grateful

Share this post


Link to post
Share on other sites
  • 0

Hello!
I don't know much, but I tried ^ _ ^
But what I created, I can't disable @warp and among others because the command of hercules is different, this npc that you have there and the old version of the year 2013 is the cronus emulator.
I did it here, all I have to do is disable the map commands. if you can disable it, tell me ^ _ ^

==================================================================================

olá

Não sei muito , mais tentei ^_^
Só que o que eu criei , não consigo desativar o @warp e entre outros pois o comando do hercules e diferente, este npc que você tem ai e versão antiga do ano 2013 é do emulador cronus.
fiz esté aqui , só falta desativar os comandos do mapa. sé você conseguir desativar , me fala ^_^

==================================================================================

 

prontera,162,185,4    script    Sala VIP    4_GEFFEN_11,{

    if( getgroupid() < 1 ) {
        mes "["+strnpcinfo(0)+"]";
        mes "Eu só poço enviar os aventureiros";
        mes "Que obteve o ticket vip!";
        mes "adiquire serviço vip.";
        mes "Pelo Site ou Npc Voto por pontos.";
        close;
    }
    if( getgroupid() > 1 ) {
        mes "["+strnpcinfo(0)+"]";
        mes "Seja Bem vindo senhor(a) "+strcharinfo(0)+"!";
        mes "Gostaria de ir para Sala vip?";
        next;
        switch(select("Sim","Não") == 1) {
            case 0:
                mes "ok, Estarei aqui se acaso mudar";
                mes "De ideia!";
                close;
            case 1:
                mes "Volte Sempre!";
                warp "sec_in01",85,167;
                end;
        }
    }
}
sec_in01,95,168,4    script    SAIDA    4_GEFFEN_11,{

    if( getgroupid() > 1 ) {
        mes "["+strnpcinfo(0)+"]";
        mes "Olá senhor(a), "+strcharinfo(0)+"!";
        mes "Gostaria de voltar para prontera?";
        next;
        switch(select("Sim","Não") == 1) {
            case 0:
                mes "["+strnpcinfo(0)+"]";
                mes "ok, Estarei aqui se acaso mudar";
                mes "De ideia!";
                close;
            case 1:
                mes "["+strnpcinfo(0)+"]";
                mes "Volte Sempre!";
                warp "prontera",155,188;
                end;
        }
    }
}

sec_in01 mapflag nobranch
sec_in01 mapflag noicewall
sec_in01 mapflag nomemo
sec_in01 mapflag nopenalty
sec_in01 mapflag noreturn
sec_in01 mapflag nosave
sec_in01 mapflag noskill
sec_in01 mapflag noteleport
sec_in01 mapflag novending
sec_in01 mapflag nowarp
sec_in01 mapflag nowarpto
sec_in01 mapflag loadevent

na ultima linha onde tá os mapa e mapflag etc.
da erro no emulador. pois esté comando não funciona no emulador hercules.
Foi desativado, se usa de outra maneira , pois eu não sei como desativar.

esses de baixo.(Da erro no emulador). mais o de cima que eu criei ta funcionando.
Só falta desativar o @warp entre outros.

================================================================

on the last line where are the maps and mapflag etc.
of the error in the emulator. because this command does not work in the hercules emulator.
It was deactivated, if you use it in another way, because I don't know how to deactivate it.

the ones below (from the emulator error). plus the top one that I created is working.
It only remains to disable @warp among others.

=================================================================

sec_in01 mapflag nobranch
sec_in01 mapflag noicewall
sec_in01 mapflag nomemo
sec_in01 mapflag nopenalty
sec_in01 mapflag noreturn
sec_in01 mapflag nosave
sec_in01 mapflag noskill
sec_in01 mapflag noteleport
sec_in01 mapflag novending
sec_in01 mapflag nowarp
sec_in01 mapflag nowarpto
sec_in01 mapflag loadevent

Share this post


Link to post
Share on other sites
  • 0

Sorry, I just found out the error, <TAB> the MAP NAME was missing from the mapflag
sending another, in the correct way.

this one below and the correct one!

===================================================

Desculpa, acabei de descobrir o erro, faltava <TAB> NO NOME DO MAPA AO mapflag
mandando outro, com modo correto.

este aqui em baixo e o correto!

===================================================

Heads up:
this script that is below is working on the updated emulator.

================================================

Atenção:
esté scrip que ta em baixo está funcionando no emulador atualizados.

//===== hercules Script =======================================
//= SALA VIP E COM SAIDA E POR ULTIMO DESATIVANDO OS @COMMANDS
//===== Current Version: =====================================
//= 1.0
//========== Data da Criação =================================
// entre 27/03/2021 ao 28/03/2021
//===== Compatible With: ===================================== 
//= HERCULES - ULTIMA VERSÃO
//===== Description: =========================================
// simples npc scrip, que redireciona o personagem
// para Sala VIP.
//======== Autor =============================================
// IHURY FERREIRA
// https://ragnashowrobr.com.br
//===========================================================
// por favor não remova os creditos!
//===========================================================
//Sé tiver duvidas entrar em contato pelo meu site ou Hercules.
//============================================================
prontera,162,185,4    script    Sala VIP    4_GEFFEN_11,{

    if( getgroupid() < 1 ) {
        mes "["+strnpcinfo(0)+"]";
        mes "Eu só poço enviar os aventureiros";
        mes "Que obteve o ticket vip!";
        mes "adiquire serviço vip.";
        mes "Pelo Site ou Npc Voto por pontos.";
        close;
    }
    if( getgroupid() >= 1 ) {
        mes "["+strnpcinfo(0)+"]";
        mes "Seja Bem vindo senhor(a) "+strcharinfo(0)+"!";
        mes "Gostaria de ir para Sala vip?";
        next;
        switch(select("Sim","Não") == 1) {
            case 0:
                mes "ok, Estarei aqui se acaso mudar";
                mes "De ideia!";
                close;
            case 1:
                mes "Volte Sempre!";
                warp "sec_in01",85,167;
                end;
        }
    }
}
sec_in01,95,168,4    script    SAIDA    4_GEFFEN_11,{

    if( getgroupid() >= 1 ) {
        mes "["+strnpcinfo(0)+"]";
        mes "Olá senhor(a), "+strcharinfo(0)+"!";
        mes "Gostaria de voltar para prontera?";
        next;
        switch(select("Sim","Não") == 1) {
            case 0:
                mes "["+strnpcinfo(0)+"]";
                mes "ok, Estarei aqui se acaso mudar";
                mes "De ideia!";
                close;
            case 1:
                mes "["+strnpcinfo(0)+"]";
                mes "Volte Sempre!";
                warp "prontera",155,188;
                end;
        }
    }
}
sec_in01    mapflag    nobranch
sec_in01    mapflag    noicewall
sec_in01    mapflag    nomemo
sec_in01    mapflag    nopenalty
sec_in01    mapflag    noreturn
sec_in01    mapflag    nosave
sec_in01    mapflag    noskill
sec_in01    mapflag    noteleport
sec_in01    mapflag    novending
sec_in01    mapflag    nowarp
sec_in01    mapflag    nowarpto
sec_in01    mapflag    loadevent

 

Edited by Ihurybro

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

×
×
  • Create New...

Important Information

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