Jump to content

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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