Jump to content
  • 0

OnPCLoadMapEvent Map message


Question

Posted
I need to put it when the player enters this map, this message appears, can someone help me?

 

Script:

Spoiler

-    script    ifmap    -1,{

OnPCLoadMapEvent:
if ("gen_fild01"){
    
    mes "[SOS]";
    mes "Help-me"+strcharinfo((0);
    close;
    }
end;
}
 

MapFlag:

Spoiler

gen_fild01 mapflag loadevent

 

10 answers to this question

Recommended Posts

  • 0
Posted

try this
 

-	script	mapflag	-1,{

OnPCLoadMapEvent:

if (gen_fild01 == gen_fild01){
	mes "[SOS]";
    mes "Help-me"+strcharinfo((0);
    close;
}

}

 

  • Upvote 1
  • 0
Posted
26 minutes ago, BeWan said:

try this
 


-	script	mapflag	-1,{

OnPCLoadMapEvent:

if (gen_fild01 == gen_fild01){
	mes "[SOS]";
    mes "Help-me"+strcharinfo((0);
    close;
}

}

 

did not work
  • 0
Posted
2 minutes ago, dev LOOLP said:

OMG! Look what I sent you and analyze, think a little. 


The correct answer has already been given.
-	script	ifmap	-1,{

OnPCLoginEvent:
if( strcharinfo(3) == "gen_fild01"){
		mes "SOS";
		close;
	}
end;
}
Well I'm already using the command OnPCLoginEvent, I created a system of hunger, thirst, sleep with it for the purpose working 100%, but how about a look if I missed something?

 

  • 0
Posted
2 minutes ago, dev LOOLP said:

você não quer que tal situação aconteça, quando o jogador logar no mapa x ?
 


do you not want that situation to happen when the player logs on the map x?


 

kkkkk eu só quero que quando o jogador chegue no mapa apareça uma menssagem '-', não é ao logar no mapa e sim ao entrar no mapa

  • 0
Posted
5 minutes ago, dev LOOLP said:

-	script	ScriptLOOLP	-1,{

OnPCLoadMapEvent:
if( strcharinfo(3) == "prontera"){
mes " ";
}
end;

}

prontera	mapflag	loadevent 

Worked.

Thanks, Solved

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...