Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Event.lua [Help]

Status
Not open for further replies.
Newbie Spellweaver
Joined
Mar 23, 2020
Messages
85
Reaction score
3
How do I activate my event through Event.lua?

I added the event:

Code:
AddEvent( "EVENT EXP" )
--{	
	SetTime( "2021-05-11 11:00", "2020-06-11 23:00" )
	SetTime( "2021-05-12 12:00", "2020-06-12 00:00" )
	SetTime( "2021-05-13 07:00", "2020-06-13 19:00" )
	SetTime( "2021-05-14 08:00", "2020-06-14 20:00" )
	SetTime( "2021-05-15 00:00", "2020-06-15 19:00" )
	SetTime( "2021-05-16 00:00", "2020-06-16 23:00" )
	SetTime( "2021-05-17 10:00", "2020-06-17 22:00" )
	SetTime( "2021-05-18 11:00", "2020-06-18 23:00" )
	SetTime( "2021-05-19 12:00", "2020-06-19 00:00" )
	SetTime( "2021-05-20 07:00", "2020-06-20 19:00" )
	SetTime( "2021-05-21 08:00", "2020-06-21 20:00" )
	SetTime( "2021-05-21 00:00", "2020-06-21 19:00" )
	SetTime( "2021-05-21 00:00", "2020-06-21 23:00" )
		SetExpFactor( 2)
	SetItemDropRate(1)
	SetPieceItemDropRate(1)
	SetGoldDropFactor( 1)

It appears on Flyff when I type / eventlist but when I type / eventinfo, no event is active and if I type / lua event to reload, it is still inactive
 
Inactive
Joined
Jan 20, 2009
Messages
1,015
Reaction score
1,830
It has to do with your start time and end time.

How can the event start in 2021 but end in 2020? lol.

It tells you this in event.lua if you read the commented stuff btw:
Code:
----  2. SetTime( strStartTime, strEndTime )

So your event should really only be:
Code:
AddEvent( "EVENT EXP!" )
--{
	SetTime( "2010-02-23 00:00", "2099-12-25 23:59" )
	SetExpFactor( 2)
	SetItemDropRate(1)
	SetPieceItemDropRate(1)
	SetGoldDropFactor( 1)
--}
 
Status
Not open for further replies.
Back
Top