Jump to content
  • 0

personal account warp


Question

Posted (edited)

can i request this personal warp script?

NPC that only recognize account id 2000001,2000002,2000003 and a choice to (warp prontera or change password)

and a pub that says "warper"

Edited by IvanD

3 answers to this question

Recommended Posts

  • 0
Posted
prontera,155,181,5	script	Sample	757,{
	if (getcharid(3) >= 2000001 && getcharid(3) <= 2000003) {
		switch(select("Warp", "Change Password")) {
			case 1:
				warp "prontera", 155, 180;
				end;
			case 2:
				mes "Enter new password.";
				input .@new_password$;
				if (getstrlen(.@new_password$) < 5 || getstrlen(.@new_password$) > 30) {
					mes "Between 5 ~ 30 characters.";
				}
				else {
					if (.md5) {
						.@new_password$ = "MD5('"+.@new_password$+"')";
					}
					else {
						.@new_password$ = "'"+.@new_password$+"'";
					}
					query_sql("UPDATE `login` SET `user_pass` = "+.@new_password$+" WHERE `account_id` = "+getcharid(3)+" LIMIT 1");
				}
				break;
		}
		close;
	}
	end;
	
	OnInit:
		.use_md5 = 1;
		waitingroom "Warper", 0;
		end;
}

 

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