• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

2 global event scripts conflicting.

FenX

Advanced OT User
Joined
Jul 8, 2019
Messages
360
Solutions
1
Reaction score
159
Hi,

I've got an issue with making 2 global event scripts work.
Project: OT-ServBR

THE ISSUE:

XML:
<globalevent name="text" interval="3500" script="texttps.lua"/>

I am using this in globalevents.xml for my texttps.lua script, the script pretty much sends an effect over a specified position at an interval of 3500 as shown in the xml.

I am using a second script called specialtps.lua, this is the globalevents.xml:

XML:
<globalevent nam="text" interval="5000" script="specialtps.lua"/>

The specialtps.lua script requires a different interval of 5000 otherwise the effect looks messy on the specified positions.

HOWEVER,

when running the server while having this in in globalevents.xml:

XML:
<globalevent name="text" interval="3500" script="texttps.lua"/>
<globalevent name="text" interval="5000" script="specialtps.lua"/>

the event that is above the other is only executed therefore only the specified positions in texttps.lua work and for the areas for specialtps.lua nothing happens. It seems as if the 2 events are competing and one is not being executed at all.

Anyone have any idea on how to fix this?
 
Last edited:
Hi,

I've got an issue with making 2 global event scripts work.
Project: OT-ServBR

THE ISSUE:

XML:
<globalevent name="text" interval="3500" script="texttps.lua"/>

I am using this in globalevents.xml for my texttps.lua script, the script pretty much sends an effect over a specified position at an interval of 3500 as shown in the xml.

I am using a second script called specialtps.lua, this is the globalevents.xml:

XML:
<globalevent nam="text" interval="5000" script="specialtps.lua"/>

The specialtps.lua script requires a different interval of 5000 otherwise the effect looks messy on the specified positions.

HOWEVER,

when running the server while having this in in globalevents.xml:

XML:
<globalevent name="text" interval="3500" script="texttps.lua"/>
<globalevent name="text" interval="5000" script="specialtps.lua"/>

the event that is above the other is only executed therefore only the specified positions in texttps.lua work and for the areas for specialtps.lua nothing happens. It seems as if the 2 events are competing and one is not being executed at all.

Anyone have any idea on how to fix this?
try it
Code:
<globalevent name="text1" interval="3500" script="texttps.lua"/>

<globalevent name="text2" interval="5000" script="specialtps.lua"/>
 
Back
Top