Jump to content

Boss Kill Timer Quest [Oldgodsmt2 release]


Recommended Posts

  • Active+ Member

Sharing a simple timer quest that send a notice_all when a preferred mob dies 

 

NOTE : This code will not work for really long respawn times

NOTE : This code will not work for really long respawn times

 

 

quest bosskillred begin
	state start begin
		when 2291.kill begin
			timer("spawn", 250)
			notice_all("Red Dragon has been killed")
			notice_all("Will be spawned again in 4 hours")
		end
		when spawn.timer begin
			notice_all("Red Dragon Spawned.")
		end
	end
end

Changing .kill with preferred mob Vnum & 250 is how many seconds to set the timer for the next notice.

Spoiler

This is the hidden content, please


In case i scripted something wrong feel free to correct me

Edited by Lycawn
added link
  • Metin2 Dev 35
  • Think 1
  • Good 6
  • Love 18

spacer.png

Link to comment
Share on other sites

  • Premium

This is useless due to how regens work. The timer for a mob to respawn doesn't start the moment the monster gets killed.

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • Premium
17 minutes ago, Lycawn said:

Actually tested , works for me 

Regens in Metin2 works with a constant global timer, meaning they use a single timer to check the state of every mob/group, and respawn it if it's dead, starting from the time when the server has been last restarted. They don't initialize a respawn timer for each dead mob/group.

Let's say your last restart was at 12:00, and you have a boss that respawns once every 4 hours, and it has gets killed at 15:00

You would think it respawns at 19:00, but it actually will respawn at 16:00, because it checks for it once every 4 hours starting from server start time, not mob death time. If you were to kill it at 15:59, it will respawn exactly one minute later.

You can't really say "it works for me", you just didn't test it enough and have no idea how it works, which is fine.

Edited by Syreldar
  • Not Good 1
  • Good 1

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • Active+ Member
2 hours ago, Syreldar said:

Regens in Metin2 works with a constant global timer, meaning they use a single timer to check the state of every mob/group, and respawn it if it's dead, starting from the time when the server has been last restarted. They don't initialize a respawn timer for each dead mob/group.

Let's say your last restart was at 12:00, and you have a boss that respawns once every 4 hours, and it has gets killed at 15:00

You would think it respawns at 19:00, but it actually will respawn at 16:00, because it checks for it once every 4 hours starting from server start time, not mob death time. If you were to kill it at 15:59, it will respawn exactly one minute later.

You can't really say "it works for me", you just didn't test it enough and have no idea how it works, which is fine.

yeah you are probably right this code will work fine for small respawn time

Edited by Lycawn

spacer.png

Link to comment
Share on other sites

20 hours ago, Lycawn said:

yeah you are probably right this code will work fine for small respawn time

The code will only work if the player don't teleport or any other action after killed the dragon. You use simple timer which is linked to the player and not server side, so it's even more useless than it's look like

Link to comment
Share on other sites

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.