Jump to content
  • 0

Help Quest time for GM


boloca
Go to solution Solved by Finnis,

Question

Hello community, could someone help me with a .quest where the GM could only hold 1 Event every 24 hours, not being able to do any other event on the events panel until after 24 hours.

Link to post

2 answers to this question

Recommended Posts

  • 0
  • VIP
  • Solution

Before opening the event manager, add this check:

if pc.getqf("gm_cooldown") > get_global_time() then
	say("You must wait 24 hours.")
	return
end

 

After the event is enabled, add this line:

pc.setqf("gm_cooldown", get_global_time() + 86400)

 

 

  • Love 1

r

Link to post
Guest
This topic is now closed to further replies.


  • Activity

    1. 0

      Sash bug +19% absorb

    2. 1

      TRANSMUTATION WITH BLESSING SCROLL AND MAGIC STONE 100%

    3. 1

      [HowTo] The "hello world" of metin2

    4. 1

      TRANSMUTATION WITH BLESSING SCROLL AND MAGIC STONE 100%

    5. 0

      Sash absorb bug

    6. 0

      Debug DB vanilla Core

    7. 0

      Give item after kill monster [c++]

    8. 6

      Current Peer host names...

  • Recently Browsing

    No registered users viewing this page.

Shoutbox

Shoutbox

Chatroom Rules

 

Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules

 

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