Jump to content
  • 0

Question

Posted

Good evening everyone, does anyone know a code so that when talking to the NPC they will ask for a password, if this password is correct it will open a portal to another location. thank you all

3 answers to this question

Recommended Posts

  • 0
Posted

Good evening

yuno,157,83,3	script	Portal Gatekeeper	4_M_PAY_SOLDIER,{
	
	.@password$ = "luizinhomt";	//password
	.@portal$ = "Hidden Port0l#l";	//portal npc name

	npctalk "What is the password?", strnpcinfo(0), bc_self;
	input .@input$;
	unittalk getcharid(3), strcharinfo(0) + " : " + .@input$, bc_self;
	sleep2 500;
	if (!compare(.@input$,.@password$)) {
		npctalk "This is not the password.", strnpcinfo(0), bc_self;
		emotion ET_THINK, getnpcid(0);
		end;
	}
	npctalk "I will open a portal to another location.", strnpcinfo(0), bc_self;
	cloakoffnpcself .@portal$;
	specialeffect EF_BIG_PORTAL,SELF,.@portal$;
	end;
}

yuno,153,85,0	warp(CLOAKED)	Hidden Port0l#l	1,1,yuno,0,0

 

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