• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

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,014
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