Jump to content
  • 0

Request Warp NPC with function


Dolphin86

Question


  • Group:  Members
  • Topic Count:  253
  • Topics Per Day:  0.06
  • Content Count:  701
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

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 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • -1

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

Iron man quest xD 

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  76
  • Reputation:   12
  • Joined:  01/13/12
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  253
  • Topics Per Day:  0.06
  • Content Count:  701
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

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 ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  253
  • Topics Per Day:  0.06
  • Content Count:  701
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

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?

 

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