Jump to content
  • 0

GM warp npc


IvanD

Question


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.03
  • Content Count:  110
  • Reputation:   0
  • Joined:  11/13/17
  • Last Seen:  

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  68
  • Reputation:   8
  • Joined:  05/12/20
  • Last Seen:  

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;
	}
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.03
  • Content Count:  110
  • Reputation:   0
  • Joined:  11/13/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  5
  • Reputation:   1
  • Joined:  11/24/19
  • Last Seen:  

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