Jump to content
  • 0

Help Teleport


boloca

Question

Would anyone know if it is possible to fix this:

When a player opens an NPC or makes a trade and then teleports to a map where he asks for a passport to enter, the player is not teleported but the item is consumed.

 

If you know how to fix it could you help me?

Link to post

3 answers to this question

Recommended Posts

  • 0
On 3/7/2021 at 10:21 PM, boloca said:

Would anyone know if it is possible to fix this:

When a player opens an NPC or makes a trade and then teleports to a map where he asks for a passport to enter, the player is not teleported but the item is consumed.

 

If you know how to fix it could you help me?

 

when 9003.chat."Warp me" begin

	if not pc.can_warp() then
  		say("Please wait 10 seconds before teleporting")
  		return
  	end

	say("You need this item...")
	rest of your quest here...
end

 

You need to use the function pc.can_warp()

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

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

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.