Jump to content
  • 0

npc Farming


Scofield

Question


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.03
  • Content Count:  265
  • Reputation:   11
  • Joined:  01/11/13
  • Last Seen:  

This npc he only allows the entry of Creators in a room that server to grow, I wish he would let in as much creators as alchemists.

if (Class == 4019) {

I do not know how to make this line to add another class id

 

 

prontera,129,216,4    script    Sala de Cultivo    975,{
set @name$,"[ ^CC00CCSala de Cultivo^000000 ]";
set $lugar$,"sec_in02";
set @corx,19;
set @cory,30;
if(Class == 4019){
mes @name$;
mes "Olá, Sou o Teleportador para a Sala de Cultivo.";
mes "Ela pode ser utilizada para facilitar a vida de cultivo dos criadores.";
mes "Você deseja entrar nela?";
if(select("Acessa-lá:Não, obrigado") == 2){
mes @name$;
mes "Volte quando precisar de meus serviços";
close;
}
mes @name$;
mes "Está bem, bom proveito";
close2;
warp $lugar$,@corx,@cory;
end;
}
mes @name$;
mes "Desculpe-me, nesta sala apenas é permetido Criadores";
close;
}
sec_in02,14,34,4    script    Saída     47,{
    mes "Olá "+StrCharInfo(0)+"!";
    mes "Deseja ir para algum dos lugares abaixo?";
    next;
    switch(select("Prontera")){
        case 1:
            mes "Até mais!";
            close2;
            warp "prontera",134,211;
            end;
    }
}
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  188
  • Reputation:   16
  • Joined:  06/12/12
  • Last Seen:  

prontera,129,216,4    script    Sala de Cultivo    975,{
set @name$,"[ ^CC00CCSala de Cultivo^000000 ]";
set $lugar$,"sec_in02";
set @corx,19;
set @cory,30;
if(Class == 4019){
mes @name$;
mes "Olá, Sou o Teleportador para a Sala de Cultivo.";
mes "Ela pode ser utilizada para facilitar a vida de cultivo dos criadores.";
mes "Você deseja entrar nela?";
if(select("Acessa-lá:Não, obrigado") == 2){
mes @name$;
mes "Volte quando precisar de meus serviços";
else
{
mes @name$;
mes "You are not a creator dude!!";
close;
}
}
 

hope this could work.

Edited by Rayan
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.03
  • Content Count:  265
  • Reputation:   11
  • Joined:  01/11/13
  • Last Seen:  

Hello good day, I think you misunderstand, this script he jápermite entry Breeders, I would let it go Alchemists and Creators

If the id of the alchemist is 18, how do I make this line to get the class in DEIX id 18 and 4019?


so?
if (Class == 4019.18) {

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


if (Class == 4019 || Class == 18) {

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.03
  • Content Count:  265
  • Reputation:   11
  • Joined:  01/11/13
  • Last Seen:  

Again thank Capuche. Resolved.

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