Jump to content

Question

Posted

GM lvl 99 only

NPC that warps to prontera,0,0 but with a password... gm can set password ingame...

 

anyone have this script?

i appreciate it guys

3 answers to this question

Recommended Posts

  • 0
Posted
map,x,y,pos	script	Prontera Warper::PrtWarper	SPRITE_ID,{
	if (getgmlevel == 99){
		input $pass;
		mes "Password updated";
		end;
	}
	input .@pass$;
	if (.@pass$ == $pass){
		warp "prontera",0,0;
		end;
	}
}

 

  • 0
Posted
On 7/28/2020 at 1:41 PM, buraquera said:

map,x,y,pos	script	Prontera Warper::PrtWarper	SPRITE_ID,{
	if (getgmlevel == 99){
		input $pass;
		mes "Password updated";
		end;
	}
	input .@pass$;
	if (.@pass$ == $pass){
		warp "prontera",0,0;
		end;
	}
}

 

error sir

  • 0
Posted

I went ahead and slightly modified buraquera's script

map,x,y,pos	script	Prontera Warper::PrtWarper	SPRITE_ID,{
	if(getgmlevel()==99){
		switch(select("Warp to Prontera","Change Password")){
			case 1:
				mes "Enter Password";
                input .@pass$;
                if (.@pass$ == $pass$){
                    warp "prontera",0,0;
                    end;
                }
				mes "Wrong Password";
				close;
				break;
            case 2:
				mes "Enter new Password";
                input $pass$;
                mes "Password updated";
                close;
                break;
		}
	}
	end;
}

Try this

Of course remember to edit the map, coordinates and sprite in order for the NPC to appear

Also note that this will warp into a random position because of 0,0 coordinates

please let me know if it works

  • Upvote 1

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