Jump to content
Forgot your email address? ×
×
×
  • Create New...
  • 0

Question how to automatic delete quest side


Necro

Question

  • Premium

Hi guys, i find quest for teleport player to player, but here is little problem. This quest use function - getinput:

quest teleport_to_player_block begin
	state start begin
		when login begin
			cmdchat("teleportacja_block "..q.getcurrentquestindex())
		end
		when button or info begin
			if get_time() < pc.getqf("duration_block") then
				return
			end			
			sname = getinput("getinput")
			local is_blocked = pc.getf("teleport_to_player_block", sname)
			if is_blocked == 1 then
				pc.setf("teleport_to_player_block", sname, 0)
				syschat("Gracz: "..sname.." został Odblokowany.")
			elseif is_blocked == 0 then
				pc.setf("teleport_to_player_block", sname, 1)
				syschat("Gracz: "..sname.." został Zablokowany.")		
			end
			pc.setqf("duration_block",get_time()+1*3*1)
		end
	end
end	

and in-game look like this: zr9QeWM.png

 

I need that this side of quest will be automatic close, is here some function for that? Thanks for every idea..

Link to comment
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

2 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


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.