Jump to content
  • 0
Sign in to follow this  
dolphincute

Request Warp NPC with function

Question

Hye could i request an npc that can warp player to certain map with random location, but the npc will not allow player to bring any items will not allow any equipment, equipped or in inventory

and when player enter the map they will become novice, and when they exit the map they will become their default class as before they enter

 

thanks 

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • -1

Iron man quest xD 

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)
prontera,155,181,5	script	Sample	4_F_KAFRA1,{
	getinventorylist();
	if (@inventorylist_count > 0) {
		mes "Please remove all items from your inventory.";
		close;
	}
	CURRENT_CLASS = Class;
	jobchange Job_Novice;
	addtimer 5000, strnpcinfo(3)+"::OnUpdate";
	warp "prontera", 0, 0;
	end;
	
	OnUpdate:
		if (strcharinfo(3) == "prontera") {
			addtimer 5000, strnpcinfo(3)+"::OnUpdate";
		}
		else if (CURRENT_CLASS) {
			jobchange CURRENT_CLASS;
			CURRENT_CLASS = 0;
		}
		end;
}

 

Edited by Emistry

Share this post


Link to post
Share on other sites
  • 0
27 minutes ago, Emistry said:
prontera,155,181,5	script	Sample	4_F_KAFRA1,{
	getinventorylist();
	if (@inventorylist_count > 0) {
		mes "Please remove all items from your inventory.";
		close;
	}
	CURRENT_CLASS = Class;
	jobchange Job_Novice;
	addtimer 5000, strnpcinfo(3)+"::OnUpdate";
	warp "prontera", 0, 0;
	end;
	
	OnUpdate:
		if (strcharinfo(3) == "prontera") {
			addtimer 5000, strnpcinfo(3)+"::OnUpdate";
		}
		else if (CURRENT_CLASS) {
			jobchange CURRENT_CLASS;
			CURRENT_CLASS = 0;
		}
		end;
}

 

What about skill level?

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, Emistry said:
prontera,155,181,5	script	Sample	4_F_KAFRA1,{
	getinventorylist();
	if (@inventorylist_count > 0) {
		mes "Please remove all items from your inventory.";
		close;
	}
	CURRENT_CLASS = Class;
	jobchange Job_Novice;
	addtimer 5000, strnpcinfo(3)+"::OnUpdate";
	warp "prontera", 0, 0;
	end;
	
	OnUpdate:
		if (strcharinfo(3) == "prontera") {
			addtimer 5000, strnpcinfo(3)+"::OnUpdate";
		}
		else if (CURRENT_CLASS) {
			jobchange CURRENT_CLASS;
			CURRENT_CLASS = 0;
		}
		end;
}

 

thanks @Emistry but where is the exit npc ?

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, HaARiZz said:

What about skill level?

i tested but whenever i get out from the map it did change back to my previous job, but the job lvl did not, it stay lvl 1, can fix this?

 

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.