• The move of Eco-Mods.com has taken place and the merge of our old officials forums is currently ongoing, read more here.

Attendance allowance

Klerion

Stone
Messages
8
Reaction score
0
Good morning all.

I cannot establish a law which will reward the players for their presence on the server, that is to say given to them each day by a certain sum (example: 10 Ecu $) but only to those who are connected.

Example of my law which repeats in alas loop.
-------------------------
Attendance allowance
-------------------------

[{"OnPlayerAction":{"Actions":[
{"Action":"Play","Query":{"Time":
{"Operator":"GreaterThan","CompareTo":"CurrentTime"}}}],"Result":
{"Allocate":{"Amount":{"Constant":10},"Currency":"Ecu$"}}}}]

-----------------------------------------------------------------------
You will receive 10 Ecu $ per day, by your presence on the server.
-----------------------------------------------------------------------

Thank you in advance for your help.
 

Wise

Iron
Trusted Dev
Mod Dev
Messages
130
Reaction score
29
There are plenty of law examples in official discord channel #law-examples, you can also use #law-help
 
Top Bottom