Znote / ZnoteAAC

Developement repository for the Znote AAC project. A website portal to represent and manage your Open Tibia server.
MIT License
145 stars 127 forks source link

Question/Issue event schedule in Client 12 #428

Closed civic23 closed 4 years ago

civic23 commented 4 years ago

https://github.com/Znote/ZnoteAAC/blob/0d3940a0e64b525a4526ed40e34ed588fd0dc52b/login.php#L50-L80

Event Schedule in client 12 needs extra configuration/code or is not implemented yet?, I tried to uncomment lines 50, 80 in login.php but I get this error

image

Znote commented 4 years ago

line 51-79 represents a populated array, which should be inserted (instead of the empty one) in line 48. https://github.com/Znote/ZnoteAAC/blob/0d3940a0e64b525a4526ed40e34ed588fd0dc52b/login.php#L47-L49

civic23 commented 4 years ago

eventlist' => array('description' => "Description text.\n\nTest", 'startdate' => 1590979202, 'colordark' => "#735D10", // HEX color code 'name' => "Full Moon", 'enddate' => 1590979202 + (300 * 24 * 60 * 60), 'isseasonal' => false, 'colorlight' => "#8B6D05") )); `

now the error doesn't appear but nothing appears in the calendar. maybe need to change the start and end date ? idk what date format is this 'startdate' => 1590979202,

Znote commented 4 years ago

This is unix timestamp. (The integer value you get from doing os.time() in Lua). This generator seems to work fine as a unix timestamp converter: https://www.unixtimestamp.com/index.php

image

You might also need to go one more "array" depth into the array list, so eventlist contains a list of events, instead of representing one specific event. 'eventlist' => array(array(...

civic23 commented 4 years ago

it works! thanks for your help <3