Jump to content

Question how to automatic delete quest side


Recommended Posts

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

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 0

      Metin2 effect script files (MSE and MSA file) how can convert

    2. 10

      Multi Language System

    3. 0

      We are looking for a C++ and Python programmer

    4. 0

      [Quest Scheduler Request] Is there a way to make a quest run independet of player events? Lets say start quest automatically at server startup?

    5. 111

      Ulthar SF V2 (TMP4 Base)

    6. 0

      Quest function when 102.kill definition whereabouts help

    7. 5

      [M2 FILTER] Customized Client Filter

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.