Jump to content

Empire War Rework + Automation


TMP4

Recommended Posts

  • Contributor

This is the hidden content, please

Or Google Drive: 
This is the hidden content, please

Empire War Rework + Automation

I find the original forked_road strange and a mess so I made my own version.
It is written in lua-only, even the automation. I wanted to keep things simple.

Quest available in English and Hungarian language.

For the map, I used metin2_map_sungzi_milgyo.
It should be there in every client but I made some modification in it
(ex. no-pvp zones at spawn) so I attached it for you.

You can set:

  • Minimum level to join
  • Maximum attender / empire
  • Required kill (point) to win
  • Enable-Disable looser reward

How to automate?
If you want to automate the Empire War then install events_automation.quest too.
The Empire War will run every Friday 20:00. (You can change it in the quest).

What is looser reward?
The looser empires can stay in the end for the reward (enabled in automation).
If someone kill other player, first there is a warning, second kill he will get ported out.
I advice to keep looser reward on, then everyone will be encouraged to participate.

What is the reward?
By default it will load a regen (provided).
It have tanakas, golden frogs and fire goblets.
Feel free to edit or change it.

Have fun,
TMP4

 

Edited by TMP4
  • Metin2 Dev 90
  • kekw 1
  • Dislove 2
  • Sad 1
  • Smile Tear 1
  • Think 1
  • Scream 1
  • Lmao 1
  • Good 26
  • Love 7
  • Love 62
Link to comment
Share on other sites

  • Management
Link to comment
Share on other sites

  • 1 month later...
  • Contributor
On 10/25/2021 at 2:56 PM, SCOOB said:

@ TMP4there's a single bug I found. When you leave the looser reward and you kill one player it automatically teleports the killer in map1. It doesn't give the warning first.

A tried to reproduce it but I think that only happens if he got a warning already in a prevoius empire war.

You can do something like this to prevent that:

		when login with pc.get_map_index() != event_war.war_settings().war_map_index begin
			if pc.getqf("not_allowed_kill") > 0 then
				pc.setqf("not_allowed_kill", 0)
			end
		end
  • Metin2 Dev 1
  • Love 2
Link to comment
Share on other sites

  • 3 months later...
  • 1 year later...
  • Contributor
On 7/27/2023 at 1:45 PM, ValkeryE said:

Do you think that use timer in "when login begin" is good idea?

Yes. It is a 60 second loop timer, not a 1-2 second one. But you're free to modify, and events_automation.quest is optional, if you don't wanna use it then don't use it, or do it in another way.

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.