Jump to content
  • 0

NPC Saves the Return Point


Agriias

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.01
  • Content Count:  17
  • Reputation:   0
  • Joined:  07/21/20
  • Last Seen:  

People would like to know if you can do something like that.
This NPC, I would like that when people talk to him the npc after the conversation would save this person's return point to another map that would be the cemetery where everyone goes when he dies and there is no way to go back.

NOTE: put it in a way that people wouldn't know that this point was saved.

The map would be this one: pvp_n_1-4 162 122

Thank you very much in advance.

 

 

Quote

-    script    Valkiria#00::Valkmesseger    811,3,3,{
    set .@area$,strnpcinfo(2);
    if (.@area$ == "01") { set .@area$,"Prontera"; }
    {
        mes "[Valkiria]";
        mes "Olá, "+ strcharinfo(0) +". Esta é a cidade de Prontera.";
        next;
        mes "[Valkiria]";
        mes "Prontera é a primeira cidade a cidade dos iniciantes, ela é uma das poucas nesse mundo que estão habitadas.";
        next;
        mes "[Valkiria]";
        mes "O mundo foi tomado por monstros e varios guerreiros nascem e partem daqui para combate-los. Você tem interesse em se tornar um?";
        next;
        mes "[Valkiria]";
        mes "Você pode sair da cidade e encontrar suas aventuras a partir daqui. Há mais duas cidades partindo daqui que você pode encontrar moradores mas apenas elas estão habitadas no momento.";
        next;
        mes "[Valkiria]";
        mes "As cidades que estão habitadas são: ao Sudeste partindo daqui Payon a cidade Florestal e mais ao Sul Alberta a cidade das embarcações.";
        next;
        mes "[Valkiria]";
        mes "Payon é uma cidade calma diferente daqui, onde os moradores vivem na natureza há ótimos lugares de caça para iniciantes lá.";
        next;
        mes "[Valkiria]";
        mes "Já Alberta é a cidade Portuaria, eu soube que de lá você pode pegar um barco para qualquer lugar.";
        next;
        if (BaseLevel < 2) {
        mes "Eu vou te dar uma benção para te ajudar. Tome pegue isso.";
        mes "200x "+getitemname(545);
        mes "2x "+getitemname(13810);
        mes "10x "+getitemname(602);
        mes "20x "+getitemname(601);
        }
        next;
        if(BaseLevel < 2)
        {
            getitem 545,200;
            getitem 13810,2;
            getitem 602,10;
            getitem 601,20;
            getexp 1,0;
            next;
        }
        mes "[Valkiria]";
        mes "A outras cidades espalhadas pelo mundo mas elas estão inabitáveis não possuem cidadões (NPCs) por lá tornando-as vazias";
        next;
        mes "[Valkiria]";
        mes "Quem sabe se através de suas aventuras você não se torna importante suficiente para comprar e habitar uma dessas cidades... ";
        next;
        mes "Seria uma conquista em tanto não ? Pois bem te desejo Boa Sorte e espero grandes coisas de você... Boa Aventura!";
        close;
    }

OnTouch_:
        if (BaseLevel < 2) {
        mes "[Valkiria]";
        mes "Olá "+ strcharinfo(0) +"?";
        mes "Você acaba de nascer em Prontera.";
        next;
        mes "[Valkiria]";
        mes "Venha conversar comigo para saber sobre este mundo!";
        close;
    }
    end;
}

prontera,155,163,5    duplicate(Valkmesseger)    Valkiria#01    811 ,3,3

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   63
  • Joined:  04/29/19
  • Last Seen:  

Use this command in the script:

savepoint "pvp_n_1-4",162,122;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.01
  • Content Count:  17
  • Reputation:   0
  • Joined:  07/21/20
  • Last Seen:  

On 7/31/2020 at 10:17 PM, Gladius said:

Use this command in the script:


savepoint "pvp_n_1-4",162,122;

 

thanks ^^ 

Edited by Agriias
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...