• 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!

Lua Compendium System

edwinaaa

Member
Joined
Jan 31, 2014
Messages
71
Reaction score
11
Hello guys, how are you? I wanted a little help with this, I get an error from something like clound retrive compendium, and it comes from here, how do I make this work, what should I add and where?

1658911558901.png
 
Solution
Here you are full ws_login.php

you must change
case 'news': (compendum system)
and




1660034086022.png

works perfect
PHP:
switch ($action) {
    case 'news':
        die('{
    "categorycounts": {
        "CLIENT FEATURES": 13,
        "GAME CONTENTS": 15,
        "MAJOR UPDATES": 20,
        "SUPPORT": 4,
        "USEFUL INFO": 3
    },
    "gamenews": [
        {
            "campaignid": 0,
            "category": "GAME CONTENTS",
            "headline": "<p>Prey Creatures</p>",
            "id": 23,
            "index": 6,
            "message": "<center>Activate a prey to gain a bonus when hunting certain monsters!<br /> &nbsp;<img src=\"https://static.tibia.com/images/news/line1px.png\" alt=\"\" width=\"550\" height=\"1\"...
but if it is available or someone who can develop it?
On Tibia Client, is compendium.json on tibia/cache/compendium.
The problem you can copy paste the info, the client it makes "back" to the original file each time you log out from client.

Example:

Lua:
{
    "categorycounts": {
        "CLIENT FEATURES": 13,
        "GAME CONTENTS": 16,
        "MAJOR UPDATES": 19,
        "SUPPORT": 4,
        "USEFUL INFO": 4
    },
    "gamenews": [
        {
            "campaignid": 0,
            "category": "USEFUL INFO",
            "headline": "<p>Your Return to Tibia</p>",
            "id": 1,
            "index": 1,
            "message": "<center>&nbsp;<img src=\"https://static.tibia.com/images/news/welcomeback01.png\" alt=\"\" width=\"193\" height=\"26\" /><br />&nbsp;<img src=\"https://static.tibia.com/images/news/line1px.png\" alt=\"\" width=\"550\" height=\"1\" />\n<p>You have chosen a great time to return to Tibia. Exciting new adventures are waiting for you! <br />Here are three tips to get you started: <br />&nbsp;</p>\n<table style=\"height: 33px; width: 307px;\" border=\"1\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td style=\"width: 297px; text-align: center;\">TIP #1: See what Thais has to offer!</td>\n</tr>\n</tbody>\n</table>\n<p>Thais is a good central starting point to explore the Tibian lands.<br />Let's have a look at a few interesting places close to you:</p>\n<p>&nbsp;<img src=\"https://static.tibia.com/images/news/welcomeback03new.png\" width=\"559\" height=\"458\" /></p>\n<table style=\"height: 33px; width: 540px;\" cellpadding=\"5\">\n<tbody>\n<tr style=\"height: 5px;\">\n<td style=\"width: 33px; height: 5px; text-align: center;\" valign=\"middle\"><img src=\"https://static.tibia.com/images/news/dailyrewardshrine_comp.png\" width=\"65\" height=\"54\" /></td>\n<td style=\"width: 474.183px; height: 5px;\" valign=\"middle\">Use reward shrines to pick up daily rewards for your character.</td>\n</tr>\n<tr style=\"height: 5px;\">\n<td style=\"width: 33px; height: 5px; text-align: center;\" valign=\"middle\"><img src=\"https://static.tibia.com/images/news/imbuingshrine.png\" width=\"55\" height=\"56\" /></td>\n<td style=\"width: 474.183px; height: 5px;\" valign=\"middle\">Unlock imbuing to temporarily boost your equipment via imbuing shrines.</td>\n</tr>\n<tr style=\"height: 5px;\">\n<td style=\"width: 33px; height: 5px; text-align: center;\" valign=\"middle\">\n<p><img src=\"https://static.tibia.com/images/news/depoticons2.png\" width=\"86\" height=\"32\" /></p>\n</td>\n<td style=\"width: 474.183px; height: 5px;\" valign=\"middle\">Visit depots to access your global depot chest, your global inbox,&nbsp;your stash and the Market where you can trade with other players.</td>\n</tr>\n<tr style=\"height: 5px;\">\n<td style=\"width: 33px; height: 5px; text-align: center;\" valign=\"middle\"><img src=\"https://static.tibia.com/images/news/trainingstatue.png\" width=\"67\" height=\"54\" /></td>\n<td style=\"width: 474.183px; height: 5px;\" valign=\"middle\">Use training statues or house beds to log out and train your skills while being offline. In Thais, these statues are scattered throughout the city. We have marked their location on the mini map in the picture above.</td>\n</tr>\n<tr style=\"height: 5px;\">\n<td style=\"width: 33px; height: 5px; text-align: center;\" valign=\"middle\">&nbsp;<img src=\"https://static.tibia.com/images/news/arenaflag.png\" width=\"61\" height=\"62\" /></td>\n<td style=\"width: 474.183px; height: 5px;\" valign=\"middle\">Visit PvP and PvE arenas to fight for fun without death penalty. Face other players or stand your ground against monster hordes.</td>\n</tr>\n</tbody>\n</table>\n<p>&nbsp;</p>\n<table style=\"height: 36px; width: 306px;\" border=\"1\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td style=\"width: 296px; text-align: center;\">TIP #2: Get a free adventurer's stone!</td>\n</tr>\n</tbody>\n</table>\n<br />\n<table style=\"height: 98px; width: 479px;\" cellpadding=\"4\">\n<tbody>\n<tr>\n<td style=\"width: 86.7167px; text-align: center; vertical-align: middle;\">\n<p><img src=\"https://static.tibia.com/images/news/adventurersstone.png\" width=\"23\" height=\"29\" /></p>\n</td>\n<td style=\"width: 781.283px;\">\n<p>Ask temple NPCs, such as Quentin in Thais, for an <em>adventurer's stone</em>.</p>\n<p>If you use this stone in a temple, you will be teleported right to the Adventurers' Guild. There, you can find lots of helpful things and NPCs in one place, e.g.: offline training statues, a daily reward shrine, and a banker.</p>\n</td>\n</tr>\n</tbody>\n</table>\n<p>&nbsp;</p>\n<table style=\"height: 36px; width: 306px;\" border=\"1\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td style=\"width: 296px; text-align: center;\">TIP #3: Socialise!</td>\n</tr>\n</tbody>\n</table>\n<br />\n<table style=\"height: 102px; margin-left: auto; margin-right: auto; width: 648px;\" cellpadding=\"5\">\n<tbody>\n<tr style=\"height: 65px;\">\n<td style=\"width: 411px; height: 65px;\" valign=\"middle\">\n<p>Enrich your game experience by teaming up with others.</p>\n<ul>\n<li>Hunt in parties, share XP and face mighty bosses together.</li>\n<li>Participate in world events and help your world succeed.</li>\n</ul>\n<p>No matter if you're looking for hunting advice, equipment recommendations, or just exciting stories - Tibians have a wealth of knowledge to share.</p>\n<ul>\n<li>Chat ingame or interact with fellow Tibians via the <a href=\"https://www.tibia.com/forum/?subtopic=communityboards\" target=\"_blank\" rel=\"noopener noreferrer\">official forum</a>, <a href=\"https://www.tibia.com/community/?subtopic=fansites\" target=\"_blank\" rel=\"noopener noreferrer\">fansites</a>, the <a href=\"http://www.facebook.com/tibia\" target=\"_blank\" rel=\"noopener noreferrer\">Tibia facebook</a> page or other social networks such as reddit.</li>\n<li>Watch how others play Tibia and see what tips they have to share in their streams and videos on Twitch and Youtube.</li>\n</ul>\n</td>\n<td style=\"width: 205px; height: 65px;\" valign=\"middle\">\n<p><img src=\"https://static.tibia.com/images/news/welcomeback04.png\" width=\"313\" height=\"237\" /></p>\n</td>\n</tr>\n</tbody>\n</table>\n<p>&nbsp;</p>\n<p>Now go forth, brave adventurer, and shape your own Tibian story!</p>\n<p>We are glad to have you back.</p>\n</center>",
            "publishdate": 1512032400,
            "type": "RETURNER"
        },
],
    "idOfNewestReadEntry": 77,
    "isreturner": true,
    "maxeditdate": 1647516842,
    "showrewardnews": true
 
En Tibia Client, es compendium.json en tibia/cache/compendium.
El problema es que puede copiar y pegar la información, el cliente "vuelve" al archivo original cada vez que cierra la sesión del cliente.

Ejemplo:
If I tried that too but it didn't work, we would have to see what file and structure of that js file that goes on the web so that it recognizes the communication information
 
If I tried that too but it didn't work, we would have to see what file and structure of that js file that goes on the web so that it recognizes the communication information
Yep, maybe similar as eventschedule.js, is scripted on src of many servers, then data/xml/events.xml you can insert an event.
But eventschedule.js if you edit it manually it works and save the information.
 
Yep, maybe similar as eventschedule.js, is scripted on src of many servers, then data/xml/events.xml you can insert an event.
But eventschedule.js if you edit it manually it works and save the information.

If it is what most comes to mind, since it is something from the client, it seems that it would be directly to start testing with structures either in xml, js or lua, to replicate it on the web through the login.php, the same server because it turns out that it is not saved because it is something that is always active and I think that it comes more from the web part than from the server, since it works very similar to the hints that are placed on the web so that it reads that information, now it would be to try over there because that same info must be read by the url services that the client reads in this case in my opinion
 
I'm experimenting because it has to do with the client's webservice, and this comes from the login.php of the web, it uses almost the same archetype of the eventschedule, it would be good to test and make it work since from there you could place information in real time, make it compatible that the data is thrown from an xml of the client, I attach the architecture for now that I can put together what makes up the xml to grab the data now we need to make the code (case) in the login.php so that the client can read it when entering the compendium dialog
XML:
<?xml version="1.0" encoding="UTF-8" ?>
<root>
  <categorycounts>
    <CLIENT FEATURES>13</CLIENT FEATURES>
    <GAME CONTENTS>15</GAME CONTENTS>
    <MAJOR UPDATES>20</MAJOR UPDATES>
    <SUPPORT>4</SUPPORT>
    <USEFUL INFO>3</USEFUL INFO>
  </categorycounts>
  <gamenews>
    <campaignid>0</campaignid>
    <category>GAME CONTENTS</category>
    <headline>&lt;p&gt;Prey Creatures&lt;/p&gt;</headline>
    <id>23</id>
    <index>6</index>
    <message>&lt;center&gt;Activate a prey to gain a bonus when hunting certain monsters!&lt;br /&gt; &amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/line1px.png&quot; alt=&quot;&quot; width=&quot;550&quot; height=&quot;1&quot; /&gt;
&lt;p&gt;Press &lt;img src=&quot;https://static.tibia.com/images/news/prey07.png&quot; alt=&quot;&quot; width=&quot;83&quot; height=&quot;42&quot; /&gt; to open the prey dialog.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p style=&quot;margin-right: 5px;&quot;&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey01.png&quot; alt=&quot;&quot; width=&quot;257&quot; height=&quot;171&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;(1) You can also click the prey button to open the prey window in your sidebar.&lt;/p&gt;
&lt;p&gt;(2) Left-click in the prey window to open the prey dialog.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;Select your prey or click here if you want to reroll the monsters to choose from:&lt;/p&gt;
&lt;center&gt;
&lt;p&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey02.png&quot; alt=&quot;&quot; width=&quot;109&quot; height=&quot;163&quot; /&gt;&lt;/p&gt;
&lt;/center&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;You get a free list reroll every 20 hours. The gold price for a list reroll depends on your character level.&lt;/p&gt;
&lt;center&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey04.png&quot; alt=&quot;&quot; width=&quot;215&quot; height=&quot;113&quot; /&gt;&lt;/p&gt;
&lt;/center&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;Once you have selected your prey, click here to activate it and get a random bonus: damage boost, damage reduction, bonus XP, or improved loot.&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p style=&quot;margin-right: 15px;&quot;&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey03.png&quot; alt=&quot;&quot; width=&quot;91&quot; height=&quot;95&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;If you are looking for a specific monster, you can use five Prey Wildcards to directly select the prey of your choice.&lt;/p&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;center&gt;
&lt;p&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey11.png&quot; alt=&quot;&quot; width=&quot;147&quot; height=&quot;116&quot; /&gt;&lt;/p&gt;
&lt;/center&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;Use a Prey Wildcard to reroll your bonus to get one with a higher value. &lt;br /&gt;Prey Wildcards can be purchased for Tibia Coins in the Store or can be obtained at the reward shrine.&amp;nbsp;&lt;/p&gt;
&lt;center&gt;
&lt;p style=&quot;margin-right: 1px;&quot;&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey05.png&quot; alt=&quot;&quot; width=&quot;215&quot; height=&quot;104&quot; /&gt;&lt;/p&gt;
&lt;/center&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;&lt;br /&gt;You want a different prey but would like to keep your current bonus?&lt;/p&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;Roll for a new monster list while you already have an active prey. Select a new prey from the list and activate it. Your hunting time will be reset to 2 hours.&lt;/p&gt;
&lt;center&gt;
&lt;p style=&quot;margin-bottom: 1px;&quot;&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey08.png&quot; alt=&quot;&quot; width=&quot;229&quot; height=&quot;79&quot; /&gt;&lt;/p&gt;
&lt;/center&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;Tick the option &quot;Automatic Bonus Reroll&quot; if you want to have your prey bonus rerolled automatically whenever it is about to expire. Please note that each Automatic Bonus Reroll consumes one of the&amp;nbsp;Prey Wildcards&amp;nbsp;you have bought in the Store.&lt;/p&gt;
&lt;center&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey10.png&quot; alt=&quot;&quot; width=&quot;215&quot; height=&quot;151&quot; /&gt;&lt;/center&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;&lt;br /&gt;You want a different bonus but would like to keep your current prey?&lt;/p&gt;
&lt;p style=&quot;margin-left: 30px; margin-bottom: 25px;&quot;&gt;Roll for a new bonus while you already have an active prey. Your hunting time will be reset to 2 hours with your new bonus.&lt;/p&gt;
&lt;center&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey09.png&quot; width=&quot;228&quot; height=&quot;79&quot; /&gt;&lt;/center&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;You have found your perfect prey and bonus combination? Tick the option &quot;Lock Prey&quot; and your prey time will be set back whenever it is about to expire. Please note that each time the Lock Prey option triggers, it will consume five of your Prey Wildcards.&lt;/p&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;center&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey12.png&quot; width=&quot;215&quot; height=&quot;59&quot; /&gt;&lt;/center&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;br /&gt;The prey window shows your current prey, your bonus and the remaining time for the prey. &lt;br /&gt;Hover over your prey for a tooltip with details.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey13.png&quot; alt=&quot;&quot; width=&quot;179&quot; height=&quot;215&quot; /&gt;&lt;/p&gt;
&lt;p&gt;By the way: Prey time only decreases while hunting!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/line1px.png&quot; alt=&quot;&quot; width=&quot;550&quot; height=&quot;1&quot; /&gt;&lt;/p&gt;
&lt;p&gt;You can activate up to 3 preys simultaneously. &lt;br /&gt;All players can use the first prey slot, Premium players can also use the second slot. Additional prey slots can be unlocked permanently by purchasing them for Tibia Coins in the Store.&lt;/p&gt;
&lt;/center&gt;</message>
    <publishdate>1537354800</publishdate>
    <type>REGULAR</type>
  </gamenews>
  <gamenews>
    <campaignid>0</campaignid>
    <category>USEFUL INFO</category>
    <headline>&lt;p&gt;Loyalty System&lt;/p&gt;</headline>
    <id>24</id>
    <index>2</index>
    <message>&lt;center&gt;Being a loyal premium player grants you additional rewards. &lt;br /&gt;
&lt;table style=&quot;height: 23px; margin-left: auto; margin-right: auto;&quot; width=&quot;55&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 45px;&quot;&gt;&lt;img src=&quot;https://static.tibia.com/images/news/line1px.png&quot; alt=&quot;&quot; width=&quot;550&quot; height=&quot;1&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Every already used premium day on your account equals one loyalty point. You can check your loyalty points on your account page under General Information.&lt;/p&gt;
&lt;table style=&quot;height: 150px; margin-left: auto; margin-right: auto;&quot; width=&quot;168&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 253px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/loyalty02b.png&quot; width=&quot;241&quot; height=&quot;151&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;Depending on the number of loyalty points on your account, you may receive an honourable title, appear in the loyalty highscores or even enjoy a bonus of up to 50% on your skill points.&lt;/p&gt;
&lt;table style=&quot;height: 39px; margin-left: auto; margin-right: auto;&quot; width=&quot;193&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 183px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/loyalty03.png&quot; width=&quot;291&quot; height=&quot;49&quot; align=&quot;middle&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have earned yourself a place in the loyalty highscores, you can select which of your characters should be displayed there.&lt;/p&gt;
&lt;p&gt;Click &lt;img src=&quot;https://static.tibia.com/images/news/manage_account.png&quot; vspace=&quot;1&quot; width=&quot;136&quot; height=&quot;27&quot; align=&quot;middle&quot; /&gt; on your account page to open your account management.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;table style=&quot;height: 266px; width: 564px; margin-left: auto; margin-right: auto;&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 206.433px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/loyalty05b.png&quot; alt=&quot;&quot; width=&quot;229&quot; height=&quot;106&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 451.567px;&quot; align=&quot;left&quot; valign=&quot;middle&quot;&gt;
&lt;p&gt;Click on &lt;em&gt;Loyalty Highscore Character&lt;/em&gt; in the navigation bar or scroll down to the respective section.&lt;/p&gt;
&lt;p&gt;Select the character of your choice via the dropdown menu. You can only select characters that are not hidden.&lt;/p&gt;
&lt;p&gt;You will appear in the loyalty highscores of the game world your selected character belongs to.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;table style=&quot;height: 23px; margin-left: auto; margin-right: auto;&quot; width=&quot;55&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 45px;&quot;&gt;&lt;img src=&quot;https://static.tibia.com/images/news/line1px.png&quot; alt=&quot;&quot; width=&quot;550&quot; height=&quot;1&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The manual on our website provides you with more details about the &lt;a href=&quot;http://www.tibia.com/gameguides/?subtopic=manual&amp;amp;section=accounts#loyalty&quot;&gt;loyalty system&lt;/a&gt;, including a list of all titles you can earn and an example of how the skill bonus exactly works.&lt;/p&gt;
&lt;/center&gt;</message>
    <publishdate>1497276000</publishdate>
    <type>REGULAR</type>
  </gamenews>

  <gamenews>
    <campaignid>0</campaignid>
    <category>GAME CONTENTS</category>
    <headline>&lt;p&gt;Exaltation Forge&lt;/p&gt;</headline>
    <id>77</id>
    <index>0</index>
    <message>&lt;center&gt;The Exaltation Forge allows players to upgrade weapons, armour, and helmets with powerful effects. Items can be increased in tiers, with the maximum number of tiers for an item being limited by its classification into one of four groups.&lt;br /&gt;
&lt;table style=&quot;height: 23px; margin-left: auto; margin-right: auto;&quot; width=&quot;55&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 45px;&quot;&gt;&lt;img src=&quot;https://static.tibia.com/images/news/line1px.png&quot; alt=&quot;&quot; width=&quot;550&quot; height=&quot;1&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;height: 242px; margin-left: auto; margin-right: auto; width: 485px;&quot; width=&quot;500&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 228px;&quot; valign=&quot;middle&quot;&gt;The Exaltation Forge lies north of the Adventurers&apos; Guild.&lt;/td&gt;
&lt;td style=&quot;width: 233.75px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/exaltationforge01.png&quot; width=&quot;192&quot; height=&quot;191&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Influenced Creatures&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;height: 152px; margin-left: auto; margin-right: auto; width: 594px;&quot; width=&quot;560&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 311.05px;&quot; valign=&quot;middle&quot;&gt;
&lt;p&gt;In order to make use of the forge, resources are required. The first one is &lt;em&gt;dust&lt;/em&gt;. In order to get dust, which is non-tradable, players have to kill &lt;em&gt;influenced&lt;/em&gt; monsters.&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 259.7px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/exaltationforge02.png&quot; width=&quot;180&quot; height=&quot;60&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;These creatures have a low chance to spawn in place of a regular monster and are stronger versions of regular monsters. The higher the number below their name, the stronger they are, and the higher the potential to yield more dust.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Fiendish Creatures&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;height: 155px; margin-left: auto; margin-right: auto; width: 584px;&quot; width=&quot;560&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 287.517px;&quot; valign=&quot;middle&quot;&gt;
&lt;p&gt;&lt;em&gt;Fiendish&lt;/em&gt; monsters are even stronger than influenced monsters. They also give more dust, as well as a new tradable resource called &lt;em&gt;slivers&lt;/em&gt;.&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 273.233px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/exaltationforge03.png&quot; width=&quot;204&quot; height=&quot;62&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Fiendish monsters are much rarer than influenced monsters. The spell Find Fiend indicates the direction to the nearest fiendish creature.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Dust Limit and Conversion&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;height: 277px; margin-left: auto; margin-right: auto; width: 655px;&quot; width=&quot;619&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 291.367px;&quot; valign=&quot;middle&quot;&gt;
&lt;p&gt;A player can only carry 100 dust at first, but this limit can be increased to a maximum of 225 by spending dust.&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 336.35px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/exaltationforge04.png&quot; width=&quot;306&quot; height=&quot;214&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Dust can also be converted into slivers, and slivers can be converted into exalted cores.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;height: 200px; margin-left: auto; margin-right: auto; width: 400px;&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 174px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/exaltationforge05.png&quot; width=&quot;174&quot; height=&quot;89&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 174px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/exaltationforge06.png&quot; width=&quot;174&quot; height=&quot;89&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Effects&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Upgrading an item through the Exaltation Forge provides it with the following effects:&lt;/p&gt;
&lt;ul&gt;
&lt;li style=&quot;text-align: center;&quot;&gt;Onslaught (for weapons): An attack may deal 60% bonus damage, which is additive to critical hits.&lt;/li&gt;
&lt;li style=&quot;text-align: center;&quot;&gt;Ruse (for armour): Provides a chance of completely avoiding damage from an attack.&lt;/li&gt;
&lt;li style=&quot;text-align: center;&quot;&gt;Momentum (for helmets): Grants a chance every two seconds to reduce all existing spell cooldowns by two seconds if the battle sign is present. This affects individual spell cooldown and the secondary group cooldown, but not the primary group cooldown.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A higher tier increases the trigger chance of these effects.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Fusion&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;height: 303px; margin-left: auto; margin-right: auto; width: 879px;&quot; width=&quot;700&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 542px;&quot; valign=&quot;middle&quot;&gt;
&lt;p&gt;Two of the same item need to be fused, in addition to a sum of gold (higher tiers demand higher prices), and 100 dust.&lt;/p&gt;
&lt;p&gt;Success of a fusion is not guaranteed &amp;ndash; there is a possibility that the second item will be either reduced by one tier, or, in case it was a tier 0 item, it will be destroyed. Using exalted cores, the success of the operation can be increased, however, and the risk of losing a tier gets reduced, should the fusion fail.&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 314px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/exaltationforge07.png&quot; width=&quot;312&quot; height=&quot;243&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Transfer&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;height: 294px; margin-left: auto; margin-right: auto; width: 930px;&quot; width=&quot;700&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 360px;&quot; valign=&quot;middle&quot;&gt;
&lt;p&gt;A a tier can be transferred from another item of the same classification. The target item, which is to receive the tier, has to be tier 0, while the source item, from which the tier is transferred, has to be at least tier 2. This process requires 100 dust, one exalted core, and a sum of gold.&lt;/p&gt;
&lt;p&gt;The transfer is guaranteed to succeed. The target item receives the source item&apos;s tier by a reduction of one tier, while the source item itself will be destroyed during the transfer.&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 424.317px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/exaltationforge08.png&quot; width=&quot;325&quot; height=&quot;243&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/center&gt;</message>
    <publishdate>1647514800</publishdate>
    <type>REGULAR</type>
  </gamenews>
  <gamenews>
    <campaignid>0</campaignid>
    <category>MAJOR UPDATES</category>
    <headline>&lt;p&gt;Summer Update 2022&lt;/p&gt;</headline>
    <id>78</id>
    <index>0</index>
    <message>&lt;center&gt;
&lt;table style=&quot;height: 88px;&quot; width=&quot;406&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 396px; vertical-align: top;&quot;&gt;&lt;center&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/su2022_compendium.jpg&quot; width=&quot;502&quot; height=&quot;372&quot; /&gt;
&lt;p&gt;If you would like to find out more, check the &lt;a href=&quot;http://www.tibia.com/news/?subtopic=newsarchive&amp;amp;id=6816&quot;&gt;release news&lt;/a&gt; on our website.&lt;/p&gt;
&lt;/center&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/center&gt;</message>
    <publishdate>1658131200</publishdate>
    <type>REGULAR</type>
  </gamenews>
  <idOfNewestReadEntry>0</idOfNewestReadEntry>
  <isreturner>false</isreturner>
  <maxeditdate>1658228863</maxeditdate>
  <showrewardnews>true</showrewardnews>
</root>

login.php code events

Code:
    case 'eventschedule':
        $eventlist = array();
        $lastupdatetimestamp = time();
        $file_path = Website::getWebsiteConfig()->getValue('serverPath') . 'data/XML/events.xml';
        if (!Website::fileExists($file_path)) {
            die(json_encode([]));
            break;
        }
        $xml = new DOMDocument;
        $xml->load($file_path);
        $tableevent = $xml->getElementsByTagName('event');
        foreach ($tableevent as $event) {
            if ($event) {
            $tmplist = array();
            $tmplist['colorlight'] = parseEvent($event->getElementsByTagName('colors'), false, 'colorlight', false);
            $tmplist['colordark'] = parseEvent($event->getElementsByTagName('colors'), false, 'colordark', false);
            $tmplist['description'] = parseEvent($event->getElementsByTagName('description'), false, 'description', false);
            $tmplist['displaypriority'] = (intval(parseEvent($event->getElementsByTagName('details'), false, 'displaypriority', false)));
            $tmplist['enddate'] = (intval(parseEvent($event, true, false, false)));
            $tmplist['isseasonal'] = parseEvent($event->getElementsByTagName('details'), false, 'isseasonal', true);
            $tmplist['name'] = $event->getAttribute('name');
            $tmplist['startdate'] = (intval(parseEvent($event, true, true, false)));
            $tmplist['specialevent'] = (intval(parseEvent($event->getElementsByTagName('details'), false, 'specialevent', false)));
            $eventlist[] = $tmplist;
            }
        }
        die(json_encode(compact('eventlist', 'lastupdatetimestamp')));
        break;
 
Here you are full ws_login.php

you must change
case 'news': (compendum system)
and




1660034086022.png

works perfect
PHP:
switch ($action) {
    case 'news':
        die('{
    "categorycounts": {
        "CLIENT FEATURES": 13,
        "GAME CONTENTS": 15,
        "MAJOR UPDATES": 20,
        "SUPPORT": 4,
        "USEFUL INFO": 3
    },
    "gamenews": [
        {
            "campaignid": 0,
            "category": "GAME CONTENTS",
            "headline": "<p>Prey Creatures</p>",
            "id": 23,
            "index": 6,
            "message": "<center>Activate a prey to gain a bonus when hunting certain monsters!<br /> &nbsp;<img src=\"https://static.tibia.com/images/news/line1px.png\" alt=\"\" width=\"550\" height=\"1\" />\n<p>Press <img src=\"https://static.tibia.com/images/news/prey07.png\" alt=\"\" width=\"83\" height=\"42\" /> to open the prey dialog.</p>\n<p>&nbsp;</p>\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"margin-right: 5px;\">&nbsp;<img src=\"https://static.tibia.com/images/news/prey01.png\" alt=\"\" width=\"257\" height=\"171\" /></p>\n</td>\n<td>\n<p>(1) You can also click the prey button to open the prey window in your sidebar.</p>\n<p>(2) Left-click in the prey window to open the prey dialog.</p>\n</td>\n</tr>\n</tbody>\n</table>\n<br />\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"margin-left: 30px;\">Select your prey or click here if you want to reroll the monsters to choose from:</p>\n<center>\n<p>&nbsp;<img src=\"https://static.tibia.com/images/news/prey02.png\" alt=\"\" width=\"109\" height=\"163\" /></p>\n</center></td>\n<td>\n<p style=\"margin-left: 30px;\">You get a free list reroll every 20 hours. The gold price for a list reroll depends on your character level.</p>\n<center>\n<p>&nbsp;</p>\n<p>&nbsp;<img src=\"https://static.tibia.com/images/news/prey04.png\" alt=\"\" width=\"215\" height=\"113\" /></p>\n</center></td>\n</tr>\n</tbody>\n</table>\n<br />\n<table>\n<tbody>\n<tr>\n<td>\n<p>&nbsp;</p>\n<p style=\"margin-left: 30px;\">Once you have selected your prey, click here to activate it and get a random bonus: damage boost, damage reduction, bonus XP, or improved loot.</p>\n</td>\n<td>\n<p style=\"margin-right: 15px;\">&nbsp;<img src=\"https://static.tibia.com/images/news/prey03.png\" alt=\"\" width=\"91\" height=\"95\" /></p>\n</td>\n</tr>\n</tbody>\n</table>\n<br />\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"margin-left: 30px;\">If you are looking for a specific monster, you can use five Prey Wildcards to directly select the prey of your choice.</p>\n<p style=\"margin-left: 30px;\">&nbsp;</p>\n<center>\n<p>&nbsp;<img src=\"https://static.tibia.com/images/news/prey11.png\" alt=\"\" width=\"147\" height=\"116\" /></p>\n</center></td>\n<td>\n<p style=\"margin-left: 30px;\">Use a Prey Wildcard to reroll your bonus to get one with a higher value. <br />Prey Wildcards can be purchased for Tibia Coins in the Store or can be obtained at the reward shrine.&nbsp;</p>\n<center>\n<p style=\"margin-right: 1px;\">&nbsp;<img src=\"https://static.tibia.com/images/news/prey05.png\" alt=\"\" width=\"215\" height=\"104\" /></p>\n</center></td>\n</tr>\n<tr>\n<td>\n<p style=\"margin-left: 30px;\"><br />You want a different prey but would like to keep your current bonus?</p>\n<p style=\"margin-left: 30px;\">Roll for a new monster list while you already have an active prey. Select a new prey from the list and activate it. Your hunting time will be reset to 2 hours.</p>\n<center>\n<p style=\"margin-bottom: 1px;\">&nbsp;<img src=\"https://static.tibia.com/images/news/prey08.png\" alt=\"\" width=\"229\" height=\"79\" /></p>\n</center>\n<p>&nbsp;</p>\n<p style=\"margin-left: 30px;\">Tick the option \"Automatic Bonus Reroll\" if you want to have your prey bonus rerolled automatically whenever it is about to expire. Please note that each Automatic Bonus Reroll consumes one of the&nbsp;Prey Wildcards&nbsp;you have bought in the Store.</p>\n<center>&nbsp;<img src=\"https://static.tibia.com/images/news/prey10.png\" alt=\"\" width=\"215\" height=\"151\" /></center></td>\n<td>\n<p style=\"margin-left: 30px;\"><br />You want a different bonus but would like to keep your current prey?</p>\n<p style=\"margin-left: 30px; margin-bottom: 25px;\">Roll for a new bonus while you already have an active prey. Your hunting time will be reset to 2 hours with your new bonus.</p>\n<center>&nbsp;<img src=\"https://static.tibia.com/images/news/prey09.png\" width=\"228\" height=\"79\" /></center>\n<p>&nbsp;</p>\n<p style=\"margin-left: 30px;\">You have found your perfect prey and bonus combination? Tick the option \"Lock Prey\" and your prey time will be set back whenever it is about to expire. Please note that each time the Lock Prey option triggers, it will consume five of your Prey Wildcards.</p>\n<p style=\"margin-left: 30px;\">&nbsp;</p>\n<center>&nbsp;<img src=\"https://static.tibia.com/images/news/prey12.png\" width=\"215\" height=\"59\" /></center>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n</td>\n</tr>\n</tbody>\n</table>\n<p><br />The prey window shows your current prey, your bonus and the remaining time for the prey. <br />Hover over your prey for a tooltip with details.</p>\n<p>&nbsp;<img src=\"https://static.tibia.com/images/news/prey13.png\" alt=\"\" width=\"179\" height=\"215\" /></p>\n<p>By the way: Prey time only decreases while hunting!</p>\n<p>&nbsp;<img src=\"https://static.tibia.com/images/news/line1px.png\" alt=\"\" width=\"550\" height=\"1\" /></p>\n<p>You can activate up to 3 preys simultaneously. <br />All players can use the first prey slot, Premium players can also use the second slot. Additional prey slots can be unlocked permanently by purchasing them for Tibia Coins in the Store.</p>\n</center>",
            "publishdate": 1537354800,
            "type": "REGULAR"
        },
        {
 

Attachments

Solution
excellent work we did and also thanks for your contribution and finish solving this, with teamwork things are achieved thanks
Here you are full ws_login.php

you must change
case 'news': (compendum system)
and




View attachment 69757

works perfect
PHP:
switch ($action) {
    case 'news':
        die('{
    "categorycounts": {
        "CLIENT FEATURES": 13,
        "GAME CONTENTS": 15,
        "MAJOR UPDATES": 20,
        "SUPPORT": 4,
        "USEFUL INFO": 3
    },
    "gamenews": [
        {
            "campaignid": 0,
            "category": "GAME CONTENTS",
            "headline": "<p>Prey Creatures</p>",
            "id": 23,
            "index": 6,
            "message": "<center>Activate a prey to gain a bonus when hunting certain monsters!<br /> &nbsp;<img src=\"https://static.tibia.com/images/news/line1px.png\" alt=\"\" width=\"550\" height=\"1\" />\n<p>Press <img src=\"https://static.tibia.com/images/news/prey07.png\" alt=\"\" width=\"83\" height=\"42\" /> to open the prey dialog.</p>\n<p>&nbsp;</p>\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"margin-right: 5px;\">&nbsp;<img src=\"https://static.tibia.com/images/news/prey01.png\" alt=\"\" width=\"257\" height=\"171\" /></p>\n</td>\n<td>\n<p>(1) You can also click the prey button to open the prey window in your sidebar.</p>\n<p>(2) Left-click in the prey window to open the prey dialog.</p>\n</td>\n</tr>\n</tbody>\n</table>\n<br />\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"margin-left: 30px;\">Select your prey or click here if you want to reroll the monsters to choose from:</p>\n<center>\n<p>&nbsp;<img src=\"https://static.tibia.com/images/news/prey02.png\" alt=\"\" width=\"109\" height=\"163\" /></p>\n</center></td>\n<td>\n<p style=\"margin-left: 30px;\">You get a free list reroll every 20 hours. The gold price for a list reroll depends on your character level.</p>\n<center>\n<p>&nbsp;</p>\n<p>&nbsp;<img src=\"https://static.tibia.com/images/news/prey04.png\" alt=\"\" width=\"215\" height=\"113\" /></p>\n</center></td>\n</tr>\n</tbody>\n</table>\n<br />\n<table>\n<tbody>\n<tr>\n<td>\n<p>&nbsp;</p>\n<p style=\"margin-left: 30px;\">Once you have selected your prey, click here to activate it and get a random bonus: damage boost, damage reduction, bonus XP, or improved loot.</p>\n</td>\n<td>\n<p style=\"margin-right: 15px;\">&nbsp;<img src=\"https://static.tibia.com/images/news/prey03.png\" alt=\"\" width=\"91\" height=\"95\" /></p>\n</td>\n</tr>\n</tbody>\n</table>\n<br />\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"margin-left: 30px;\">If you are looking for a specific monster, you can use five Prey Wildcards to directly select the prey of your choice.</p>\n<p style=\"margin-left: 30px;\">&nbsp;</p>\n<center>\n<p>&nbsp;<img src=\"https://static.tibia.com/images/news/prey11.png\" alt=\"\" width=\"147\" height=\"116\" /></p>\n</center></td>\n<td>\n<p style=\"margin-left: 30px;\">Use a Prey Wildcard to reroll your bonus to get one with a higher value. <br />Prey Wildcards can be purchased for Tibia Coins in the Store or can be obtained at the reward shrine.&nbsp;</p>\n<center>\n<p style=\"margin-right: 1px;\">&nbsp;<img src=\"https://static.tibia.com/images/news/prey05.png\" alt=\"\" width=\"215\" height=\"104\" /></p>\n</center></td>\n</tr>\n<tr>\n<td>\n<p style=\"margin-left: 30px;\"><br />You want a different prey but would like to keep your current bonus?</p>\n<p style=\"margin-left: 30px;\">Roll for a new monster list while you already have an active prey. Select a new prey from the list and activate it. Your hunting time will be reset to 2 hours.</p>\n<center>\n<p style=\"margin-bottom: 1px;\">&nbsp;<img src=\"https://static.tibia.com/images/news/prey08.png\" alt=\"\" width=\"229\" height=\"79\" /></p>\n</center>\n<p>&nbsp;</p>\n<p style=\"margin-left: 30px;\">Tick the option \"Automatic Bonus Reroll\" if you want to have your prey bonus rerolled automatically whenever it is about to expire. Please note that each Automatic Bonus Reroll consumes one of the&nbsp;Prey Wildcards&nbsp;you have bought in the Store.</p>\n<center>&nbsp;<img src=\"https://static.tibia.com/images/news/prey10.png\" alt=\"\" width=\"215\" height=\"151\" /></center></td>\n<td>\n<p style=\"margin-left: 30px;\"><br />You want a different bonus but would like to keep your current prey?</p>\n<p style=\"margin-left: 30px; margin-bottom: 25px;\">Roll for a new bonus while you already have an active prey. Your hunting time will be reset to 2 hours with your new bonus.</p>\n<center>&nbsp;<img src=\"https://static.tibia.com/images/news/prey09.png\" width=\"228\" height=\"79\" /></center>\n<p>&nbsp;</p>\n<p style=\"margin-left: 30px;\">You have found your perfect prey and bonus combination? Tick the option \"Lock Prey\" and your prey time will be set back whenever it is about to expire. Please note that each time the Lock Prey option triggers, it will consume five of your Prey Wildcards.</p>\n<p style=\"margin-left: 30px;\">&nbsp;</p>\n<center>&nbsp;<img src=\"https://static.tibia.com/images/news/prey12.png\" width=\"215\" height=\"59\" /></center>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n</td>\n</tr>\n</tbody>\n</table>\n<p><br />The prey window shows your current prey, your bonus and the remaining time for the prey. <br />Hover over your prey for a tooltip with details.</p>\n<p>&nbsp;<img src=\"https://static.tibia.com/images/news/prey13.png\" alt=\"\" width=\"179\" height=\"215\" /></p>\n<p>By the way: Prey time only decreases while hunting!</p>\n<p>&nbsp;<img src=\"https://static.tibia.com/images/news/line1px.png\" alt=\"\" width=\"550\" height=\"1\" /></p>\n<p>You can activate up to 3 preys simultaneously. <br />All players can use the first prey slot, Premium players can also use the second slot. Additional prey slots can be unlocked permanently by purchasing them for Tibia Coins in the Store.</p>\n</center>",
            "publishdate": 1537354800,
            "type": "REGULAR"
        },
        {
 
np btw did you get exaltation forge work? im tired to parse bytes and etc
i mean this
/data/modules/modules.xml

<module type="recvbyte" byte="237" script="debug/exaltation.lua" />
<module type="recvbyte" byte="192" script="debug/exaltation.lua" /> -->
192 = 0xC0 = History from mysql
did you know how bytes to construct?
local m = NetworkMessage()
m:addByte(0x87)
m:addU16(0)
m:addByte(0)
m:addByte(100)
m:sendToPlayer(player)
that what i got
1660035366261.png

as you can see i got 0/100
 
np btw did you get exaltation forge work? im tired to parse bytes and etc
i mean this
/data/modules/modules.xml


192 = 0xC0 = History from mysql
did you know how bytes to construct?

that what i got
View attachment 69759

as you can see i got 0/100
mmm I would not be able to tell you exactly why I am currently with version 12.72 and it does not have that system, I have not wanted to update it yet because it is very new and there are still bugs and all that in the new versions, the one I have is more stable in that sense, but I understand that the bytes it uses are 1 more than those it uses in hunting and prey
 
Working on Znote, some changes needs to be applied.

Perfect
Post automatically merged:

Here you are full ws_login.php

you must change
case 'news': (compendum system)
and




View attachment 69757

works perfect
PHP:
switch ($action) {
    case 'news':
        die('{
    "categorycounts": {
        "CLIENT FEATURES": 13,
        "GAME CONTENTS": 15,
        "MAJOR UPDATES": 20,
        "SUPPORT": 4,
        "USEFUL INFO": 3
    },
    "gamenews": [
        {
            "campaignid": 0,
            "category": "GAME CONTENTS",
            "headline": "<p>Prey Creatures</p>",
            "id": 23,
            "index": 6,
            "message": "<center>Activate a prey to gain a bonus when hunting certain monsters!<br /> &nbsp;<img src=\"https://static.tibia.com/images/news/line1px.png\" alt=\"\" width=\"550\" height=\"1\" />\n<p>Press <img src=\"https://static.tibia.com/images/news/prey07.png\" alt=\"\" width=\"83\" height=\"42\" /> to open the prey dialog.</p>\n<p>&nbsp;</p>\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"margin-right: 5px;\">&nbsp;<img src=\"https://static.tibia.com/images/news/prey01.png\" alt=\"\" width=\"257\" height=\"171\" /></p>\n</td>\n<td>\n<p>(1) You can also click the prey button to open the prey window in your sidebar.</p>\n<p>(2) Left-click in the prey window to open the prey dialog.</p>\n</td>\n</tr>\n</tbody>\n</table>\n<br />\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"margin-left: 30px;\">Select your prey or click here if you want to reroll the monsters to choose from:</p>\n<center>\n<p>&nbsp;<img src=\"https://static.tibia.com/images/news/prey02.png\" alt=\"\" width=\"109\" height=\"163\" /></p>\n</center></td>\n<td>\n<p style=\"margin-left: 30px;\">You get a free list reroll every 20 hours. The gold price for a list reroll depends on your character level.</p>\n<center>\n<p>&nbsp;</p>\n<p>&nbsp;<img src=\"https://static.tibia.com/images/news/prey04.png\" alt=\"\" width=\"215\" height=\"113\" /></p>\n</center></td>\n</tr>\n</tbody>\n</table>\n<br />\n<table>\n<tbody>\n<tr>\n<td>\n<p>&nbsp;</p>\n<p style=\"margin-left: 30px;\">Once you have selected your prey, click here to activate it and get a random bonus: damage boost, damage reduction, bonus XP, or improved loot.</p>\n</td>\n<td>\n<p style=\"margin-right: 15px;\">&nbsp;<img src=\"https://static.tibia.com/images/news/prey03.png\" alt=\"\" width=\"91\" height=\"95\" /></p>\n</td>\n</tr>\n</tbody>\n</table>\n<br />\n<table>\n<tbody>\n<tr>\n<td>\n<p style=\"margin-left: 30px;\">If you are looking for a specific monster, you can use five Prey Wildcards to directly select the prey of your choice.</p>\n<p style=\"margin-left: 30px;\">&nbsp;</p>\n<center>\n<p>&nbsp;<img src=\"https://static.tibia.com/images/news/prey11.png\" alt=\"\" width=\"147\" height=\"116\" /></p>\n</center></td>\n<td>\n<p style=\"margin-left: 30px;\">Use a Prey Wildcard to reroll your bonus to get one with a higher value. <br />Prey Wildcards can be purchased for Tibia Coins in the Store or can be obtained at the reward shrine.&nbsp;</p>\n<center>\n<p style=\"margin-right: 1px;\">&nbsp;<img src=\"https://static.tibia.com/images/news/prey05.png\" alt=\"\" width=\"215\" height=\"104\" /></p>\n</center></td>\n</tr>\n<tr>\n<td>\n<p style=\"margin-left: 30px;\"><br />You want a different prey but would like to keep your current bonus?</p>\n<p style=\"margin-left: 30px;\">Roll for a new monster list while you already have an active prey. Select a new prey from the list and activate it. Your hunting time will be reset to 2 hours.</p>\n<center>\n<p style=\"margin-bottom: 1px;\">&nbsp;<img src=\"https://static.tibia.com/images/news/prey08.png\" alt=\"\" width=\"229\" height=\"79\" /></p>\n</center>\n<p>&nbsp;</p>\n<p style=\"margin-left: 30px;\">Tick the option \"Automatic Bonus Reroll\" if you want to have your prey bonus rerolled automatically whenever it is about to expire. Please note that each Automatic Bonus Reroll consumes one of the&nbsp;Prey Wildcards&nbsp;you have bought in the Store.</p>\n<center>&nbsp;<img src=\"https://static.tibia.com/images/news/prey10.png\" alt=\"\" width=\"215\" height=\"151\" /></center></td>\n<td>\n<p style=\"margin-left: 30px;\"><br />You want a different bonus but would like to keep your current prey?</p>\n<p style=\"margin-left: 30px; margin-bottom: 25px;\">Roll for a new bonus while you already have an active prey. Your hunting time will be reset to 2 hours with your new bonus.</p>\n<center>&nbsp;<img src=\"https://static.tibia.com/images/news/prey09.png\" width=\"228\" height=\"79\" /></center>\n<p>&nbsp;</p>\n<p style=\"margin-left: 30px;\">You have found your perfect prey and bonus combination? Tick the option \"Lock Prey\" and your prey time will be set back whenever it is about to expire. Please note that each time the Lock Prey option triggers, it will consume five of your Prey Wildcards.</p>\n<p style=\"margin-left: 30px;\">&nbsp;</p>\n<center>&nbsp;<img src=\"https://static.tibia.com/images/news/prey12.png\" width=\"215\" height=\"59\" /></center>\n<p>&nbsp;</p>\n<p>&nbsp;</p>\n</td>\n</tr>\n</tbody>\n</table>\n<p><br />The prey window shows your current prey, your bonus and the remaining time for the prey. <br />Hover over your prey for a tooltip with details.</p>\n<p>&nbsp;<img src=\"https://static.tibia.com/images/news/prey13.png\" alt=\"\" width=\"179\" height=\"215\" /></p>\n<p>By the way: Prey time only decreases while hunting!</p>\n<p>&nbsp;<img src=\"https://static.tibia.com/images/news/line1px.png\" alt=\"\" width=\"550\" height=\"1\" /></p>\n<p>You can activate up to 3 preys simultaneously. <br />All players can use the first prey slot, Premium players can also use the second slot. Additional prey slots can be unlocked permanently by purchasing them for Tibia Coins in the Store.</p>\n</center>",
            "publishdate": 1537354800,
            "type": "REGULAR"
        },
        {

Did you know how to "force open" while login in game compendium Like on official ?
 
Last edited:
Working on Znote, some changes needs to be applied.

Perfect
Post automatically merged:



Did you know how to "force open" while login in game compendium Like on official ?

when you mean force exactly what do you mean? Because I always try to anchor it to the sources so that it is an initial and I combine it with client code so that everything is always in real time, at least I have done the compendium like this, I only needed to complete the login case in the manager
 
when you mean force exactly what do you mean? Because I always try to anchor it to the sources so that it is an initial and I combine it with client code so that everything is always in real time, at least I have done the compendium like this, I only needed to complete the login case in the manager
Well, if you update info, close client and open it again, it updates automatically info. This well is not a problem, is the last part.

I Mean when a player login,
Like looking in login.php for example, before code "boosted creature" like,
<open compendium> , i dont really know if is possible in lua to "show when login compendium".
player:sendTextMessage(MESSAGE_LOOT, "Today's boosted creature: " .. Game.getBoostedCreature() .. " \ Boosted creatures yield more experience points, carry more loot than usual and respawn at a faster rate.")

I mean this because is possible to show up a modal windows when login like:
doPlayerPopupFYI(creature, "Welcome to the server.")
 
Well, if you update info, close client and open it again, it updates automatically info. This well is not a problem, is the last part.

I Mean when a player login,
Like looking in login.php for example, before code "boosted creature" like,
<open compendium> , i dont really know if is possible in lua to "show when login compendium".
player:sendTextMessage(MESSAGE_LOOT, "Today's boosted creature: " .. Game.getBoostedCreature() .. " \ Boosted creatures yield more experience points, carry more loot than usual and respawn at a faster rate.")

I mean this because is possible to show up a modal windows when login like:
doPlayerPopupFYI(creature, "Welcome to the server.")

I think that if you manage it with storages, it would work for you, something that if it meets certain parameters, show the modal because if it is possible, now if you combine them together with the byte code, it may give you problems, if you put an external conditional it works for you
 
Well, if you update info, close client and open it again, it updates automatically info. This well is not a problem, is the last part.

I Mean when a player login,
Like looking in login.php for example, before code "boosted creature" like,
<open compendium> , i dont really know if is possible in lua to "show when login compendium".
player:sendTextMessage(MESSAGE_LOOT, "Today's boosted creature: " .. Game.getBoostedCreature() .. " \ Boosted creatures yield more experience points, carry more loot than usual and respawn at a faster rate.")

I mean this because is possible to show up a modal windows when login like:
doPlayerPopupFYI(creature, "Welcome to the server.")


by the way, by any chance were you able to make the 'token' case work for the two-factor? I have managed to implement what is the functional two-factor for the web, but I am testing to make it work with the client that asks for it if it has it active since I noticed that it also joins the login.php with the 'token' ase, now It is a matter of seeing the sources since there is also a code that accompanies this together with the webservice and mysql reading mechanisms, I have a lot of progress on this, do you dare to finish solving it and make it work?
 
Uh, Nop.
I just know html and css code, and a little bit lua, learning.
I found how to force open blessings for example on login, and i check compendium isnt scripted so idk the bytes sended and how script it in order to use onLogin,

Compendium.sendDialog(open.compendium)

Same for store didnt know the code

by the way, by any chance were you able to make the 'token' case work for the two-factor? I have managed to implement what is the functional two-factor for the web, but I am testing to make it work with the client that asks for it if it has it active since I noticed that it also joins the login.php with the 'token' ase, now It is a matter of seeing the sources since there is also a code that accompanies this together with the webservice and mysql reading mechanisms, I have a lot of progress on this, do you dare to finish solving it and make it work?
 
I'm experimenting because it has to do with the client's webservice, and this comes from the login.php of the web, it uses almost the same archetype of the eventschedule, it would be good to test and make it work since from there you could place information in real time, make it compatible that the data is thrown from an xml of the client, I attach the architecture for now that I can put together what makes up the xml to grab the data now we need to make the code (case) in the login.php so that the client can read it when entering the compendium dialog
XML:
<?xml version="1.0" encoding="UTF-8" ?>
<root>
  <categorycounts>
    <CLIENT FEATURES>13</CLIENT FEATURES>
    <GAME CONTENTS>15</GAME CONTENTS>
    <MAJOR UPDATES>20</MAJOR UPDATES>
    <SUPPORT>4</SUPPORT>
    <USEFUL INFO>3</USEFUL INFO>
  </categorycounts>
  <gamenews>
    <campaignid>0</campaignid>
    <category>GAME CONTENTS</category>
    <headline>&lt;p&gt;Prey Creatures&lt;/p&gt;</headline>
    <id>23</id>
    <index>6</index>
    <message>&lt;center&gt;Activate a prey to gain a bonus when hunting certain monsters!&lt;br /&gt; &amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/line1px.png&quot; alt=&quot;&quot; width=&quot;550&quot; height=&quot;1&quot; /&gt;
&lt;p&gt;Press &lt;img src=&quot;https://static.tibia.com/images/news/prey07.png&quot; alt=&quot;&quot; width=&quot;83&quot; height=&quot;42&quot; /&gt; to open the prey dialog.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p style=&quot;margin-right: 5px;&quot;&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey01.png&quot; alt=&quot;&quot; width=&quot;257&quot; height=&quot;171&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;(1) You can also click the prey button to open the prey window in your sidebar.&lt;/p&gt;
&lt;p&gt;(2) Left-click in the prey window to open the prey dialog.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;Select your prey or click here if you want to reroll the monsters to choose from:&lt;/p&gt;
&lt;center&gt;
&lt;p&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey02.png&quot; alt=&quot;&quot; width=&quot;109&quot; height=&quot;163&quot; /&gt;&lt;/p&gt;
&lt;/center&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;You get a free list reroll every 20 hours. The gold price for a list reroll depends on your character level.&lt;/p&gt;
&lt;center&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey04.png&quot; alt=&quot;&quot; width=&quot;215&quot; height=&quot;113&quot; /&gt;&lt;/p&gt;
&lt;/center&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;Once you have selected your prey, click here to activate it and get a random bonus: damage boost, damage reduction, bonus XP, or improved loot.&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p style=&quot;margin-right: 15px;&quot;&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey03.png&quot; alt=&quot;&quot; width=&quot;91&quot; height=&quot;95&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br /&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;If you are looking for a specific monster, you can use five Prey Wildcards to directly select the prey of your choice.&lt;/p&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;center&gt;
&lt;p&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey11.png&quot; alt=&quot;&quot; width=&quot;147&quot; height=&quot;116&quot; /&gt;&lt;/p&gt;
&lt;/center&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;Use a Prey Wildcard to reroll your bonus to get one with a higher value. &lt;br /&gt;Prey Wildcards can be purchased for Tibia Coins in the Store or can be obtained at the reward shrine.&amp;nbsp;&lt;/p&gt;
&lt;center&gt;
&lt;p style=&quot;margin-right: 1px;&quot;&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey05.png&quot; alt=&quot;&quot; width=&quot;215&quot; height=&quot;104&quot; /&gt;&lt;/p&gt;
&lt;/center&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;&lt;br /&gt;You want a different prey but would like to keep your current bonus?&lt;/p&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;Roll for a new monster list while you already have an active prey. Select a new prey from the list and activate it. Your hunting time will be reset to 2 hours.&lt;/p&gt;
&lt;center&gt;
&lt;p style=&quot;margin-bottom: 1px;&quot;&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey08.png&quot; alt=&quot;&quot; width=&quot;229&quot; height=&quot;79&quot; /&gt;&lt;/p&gt;
&lt;/center&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;Tick the option &quot;Automatic Bonus Reroll&quot; if you want to have your prey bonus rerolled automatically whenever it is about to expire. Please note that each Automatic Bonus Reroll consumes one of the&amp;nbsp;Prey Wildcards&amp;nbsp;you have bought in the Store.&lt;/p&gt;
&lt;center&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey10.png&quot; alt=&quot;&quot; width=&quot;215&quot; height=&quot;151&quot; /&gt;&lt;/center&gt;&lt;/td&gt;
&lt;td&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;&lt;br /&gt;You want a different bonus but would like to keep your current prey?&lt;/p&gt;
&lt;p style=&quot;margin-left: 30px; margin-bottom: 25px;&quot;&gt;Roll for a new bonus while you already have an active prey. Your hunting time will be reset to 2 hours with your new bonus.&lt;/p&gt;
&lt;center&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey09.png&quot; width=&quot;228&quot; height=&quot;79&quot; /&gt;&lt;/center&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;You have found your perfect prey and bonus combination? Tick the option &quot;Lock Prey&quot; and your prey time will be set back whenever it is about to expire. Please note that each time the Lock Prey option triggers, it will consume five of your Prey Wildcards.&lt;/p&gt;
&lt;p style=&quot;margin-left: 30px;&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;center&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey12.png&quot; width=&quot;215&quot; height=&quot;59&quot; /&gt;&lt;/center&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;br /&gt;The prey window shows your current prey, your bonus and the remaining time for the prey. &lt;br /&gt;Hover over your prey for a tooltip with details.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/prey13.png&quot; alt=&quot;&quot; width=&quot;179&quot; height=&quot;215&quot; /&gt;&lt;/p&gt;
&lt;p&gt;By the way: Prey time only decreases while hunting!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/line1px.png&quot; alt=&quot;&quot; width=&quot;550&quot; height=&quot;1&quot; /&gt;&lt;/p&gt;
&lt;p&gt;You can activate up to 3 preys simultaneously. &lt;br /&gt;All players can use the first prey slot, Premium players can also use the second slot. Additional prey slots can be unlocked permanently by purchasing them for Tibia Coins in the Store.&lt;/p&gt;
&lt;/center&gt;</message>
    <publishdate>1537354800</publishdate>
    <type>REGULAR</type>
  </gamenews>
  <gamenews>
    <campaignid>0</campaignid>
    <category>USEFUL INFO</category>
    <headline>&lt;p&gt;Loyalty System&lt;/p&gt;</headline>
    <id>24</id>
    <index>2</index>
    <message>&lt;center&gt;Being a loyal premium player grants you additional rewards. &lt;br /&gt;
&lt;table style=&quot;height: 23px; margin-left: auto; margin-right: auto;&quot; width=&quot;55&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 45px;&quot;&gt;&lt;img src=&quot;https://static.tibia.com/images/news/line1px.png&quot; alt=&quot;&quot; width=&quot;550&quot; height=&quot;1&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Every already used premium day on your account equals one loyalty point. You can check your loyalty points on your account page under General Information.&lt;/p&gt;
&lt;table style=&quot;height: 150px; margin-left: auto; margin-right: auto;&quot; width=&quot;168&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 253px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/loyalty02b.png&quot; width=&quot;241&quot; height=&quot;151&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;Depending on the number of loyalty points on your account, you may receive an honourable title, appear in the loyalty highscores or even enjoy a bonus of up to 50% on your skill points.&lt;/p&gt;
&lt;table style=&quot;height: 39px; margin-left: auto; margin-right: auto;&quot; width=&quot;193&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 183px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/loyalty03.png&quot; width=&quot;291&quot; height=&quot;49&quot; align=&quot;middle&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have earned yourself a place in the loyalty highscores, you can select which of your characters should be displayed there.&lt;/p&gt;
&lt;p&gt;Click &lt;img src=&quot;https://static.tibia.com/images/news/manage_account.png&quot; vspace=&quot;1&quot; width=&quot;136&quot; height=&quot;27&quot; align=&quot;middle&quot; /&gt; on your account page to open your account management.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;table style=&quot;height: 266px; width: 564px; margin-left: auto; margin-right: auto;&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 206.433px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/loyalty05b.png&quot; alt=&quot;&quot; width=&quot;229&quot; height=&quot;106&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 451.567px;&quot; align=&quot;left&quot; valign=&quot;middle&quot;&gt;
&lt;p&gt;Click on &lt;em&gt;Loyalty Highscore Character&lt;/em&gt; in the navigation bar or scroll down to the respective section.&lt;/p&gt;
&lt;p&gt;Select the character of your choice via the dropdown menu. You can only select characters that are not hidden.&lt;/p&gt;
&lt;p&gt;You will appear in the loyalty highscores of the game world your selected character belongs to.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;table style=&quot;height: 23px; margin-left: auto; margin-right: auto;&quot; width=&quot;55&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 45px;&quot;&gt;&lt;img src=&quot;https://static.tibia.com/images/news/line1px.png&quot; alt=&quot;&quot; width=&quot;550&quot; height=&quot;1&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;The manual on our website provides you with more details about the &lt;a href=&quot;http://www.tibia.com/gameguides/?subtopic=manual&amp;amp;section=accounts#loyalty&quot;&gt;loyalty system&lt;/a&gt;, including a list of all titles you can earn and an example of how the skill bonus exactly works.&lt;/p&gt;
&lt;/center&gt;</message>
    <publishdate>1497276000</publishdate>
    <type>REGULAR</type>
  </gamenews>

  <gamenews>
    <campaignid>0</campaignid>
    <category>GAME CONTENTS</category>
    <headline>&lt;p&gt;Exaltation Forge&lt;/p&gt;</headline>
    <id>77</id>
    <index>0</index>
    <message>&lt;center&gt;The Exaltation Forge allows players to upgrade weapons, armour, and helmets with powerful effects. Items can be increased in tiers, with the maximum number of tiers for an item being limited by its classification into one of four groups.&lt;br /&gt;
&lt;table style=&quot;height: 23px; margin-left: auto; margin-right: auto;&quot; width=&quot;55&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 45px;&quot;&gt;&lt;img src=&quot;https://static.tibia.com/images/news/line1px.png&quot; alt=&quot;&quot; width=&quot;550&quot; height=&quot;1&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;height: 242px; margin-left: auto; margin-right: auto; width: 485px;&quot; width=&quot;500&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 228px;&quot; valign=&quot;middle&quot;&gt;The Exaltation Forge lies north of the Adventurers&apos; Guild.&lt;/td&gt;
&lt;td style=&quot;width: 233.75px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/exaltationforge01.png&quot; width=&quot;192&quot; height=&quot;191&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Influenced Creatures&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;height: 152px; margin-left: auto; margin-right: auto; width: 594px;&quot; width=&quot;560&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 311.05px;&quot; valign=&quot;middle&quot;&gt;
&lt;p&gt;In order to make use of the forge, resources are required. The first one is &lt;em&gt;dust&lt;/em&gt;. In order to get dust, which is non-tradable, players have to kill &lt;em&gt;influenced&lt;/em&gt; monsters.&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 259.7px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/exaltationforge02.png&quot; width=&quot;180&quot; height=&quot;60&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;These creatures have a low chance to spawn in place of a regular monster and are stronger versions of regular monsters. The higher the number below their name, the stronger they are, and the higher the potential to yield more dust.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Fiendish Creatures&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;height: 155px; margin-left: auto; margin-right: auto; width: 584px;&quot; width=&quot;560&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 287.517px;&quot; valign=&quot;middle&quot;&gt;
&lt;p&gt;&lt;em&gt;Fiendish&lt;/em&gt; monsters are even stronger than influenced monsters. They also give more dust, as well as a new tradable resource called &lt;em&gt;slivers&lt;/em&gt;.&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 273.233px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/exaltationforge03.png&quot; width=&quot;204&quot; height=&quot;62&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Fiendish monsters are much rarer than influenced monsters. The spell Find Fiend indicates the direction to the nearest fiendish creature.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Dust Limit and Conversion&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;height: 277px; margin-left: auto; margin-right: auto; width: 655px;&quot; width=&quot;619&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 291.367px;&quot; valign=&quot;middle&quot;&gt;
&lt;p&gt;A player can only carry 100 dust at first, but this limit can be increased to a maximum of 225 by spending dust.&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 336.35px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/exaltationforge04.png&quot; width=&quot;306&quot; height=&quot;214&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Dust can also be converted into slivers, and slivers can be converted into exalted cores.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;height: 200px; margin-left: auto; margin-right: auto; width: 400px;&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 174px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/exaltationforge05.png&quot; width=&quot;174&quot; height=&quot;89&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 174px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/exaltationforge06.png&quot; width=&quot;174&quot; height=&quot;89&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Effects&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Upgrading an item through the Exaltation Forge provides it with the following effects:&lt;/p&gt;
&lt;ul&gt;
&lt;li style=&quot;text-align: center;&quot;&gt;Onslaught (for weapons): An attack may deal 60% bonus damage, which is additive to critical hits.&lt;/li&gt;
&lt;li style=&quot;text-align: center;&quot;&gt;Ruse (for armour): Provides a chance of completely avoiding damage from an attack.&lt;/li&gt;
&lt;li style=&quot;text-align: center;&quot;&gt;Momentum (for helmets): Grants a chance every two seconds to reduce all existing spell cooldowns by two seconds if the battle sign is present. This affects individual spell cooldown and the secondary group cooldown, but not the primary group cooldown.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A higher tier increases the trigger chance of these effects.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Fusion&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;height: 303px; margin-left: auto; margin-right: auto; width: 879px;&quot; width=&quot;700&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 542px;&quot; valign=&quot;middle&quot;&gt;
&lt;p&gt;Two of the same item need to be fused, in addition to a sum of gold (higher tiers demand higher prices), and 100 dust.&lt;/p&gt;
&lt;p&gt;Success of a fusion is not guaranteed &amp;ndash; there is a possibility that the second item will be either reduced by one tier, or, in case it was a tier 0 item, it will be destroyed. Using exalted cores, the success of the operation can be increased, however, and the risk of losing a tier gets reduced, should the fusion fail.&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 314px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/exaltationforge07.png&quot; width=&quot;312&quot; height=&quot;243&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;text-decoration: underline;&quot;&gt;Transfer&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;height: 294px; margin-left: auto; margin-right: auto; width: 930px;&quot; width=&quot;700&quot; cellpadding=&quot;5&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 360px;&quot; valign=&quot;middle&quot;&gt;
&lt;p&gt;A a tier can be transferred from another item of the same classification. The target item, which is to receive the tier, has to be tier 0, while the source item, from which the tier is transferred, has to be at least tier 2. This process requires 100 dust, one exalted core, and a sum of gold.&lt;/p&gt;
&lt;p&gt;The transfer is guaranteed to succeed. The target item receives the source item&apos;s tier by a reduction of one tier, while the source item itself will be destroyed during the transfer.&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 424.317px;&quot;&gt;
&lt;p&gt;&lt;img src=&quot;https://static.tibia.com/images/news/exaltationforge08.png&quot; width=&quot;325&quot; height=&quot;243&quot; /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/center&gt;</message>
    <publishdate>1647514800</publishdate>
    <type>REGULAR</type>
  </gamenews>
  <gamenews>
    <campaignid>0</campaignid>
    <category>MAJOR UPDATES</category>
    <headline>&lt;p&gt;Summer Update 2022&lt;/p&gt;</headline>
    <id>78</id>
    <index>0</index>
    <message>&lt;center&gt;
&lt;table style=&quot;height: 88px;&quot; width=&quot;406&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 396px; vertical-align: top;&quot;&gt;&lt;center&gt;&amp;nbsp;&lt;img src=&quot;https://static.tibia.com/images/news/su2022_compendium.jpg&quot; width=&quot;502&quot; height=&quot;372&quot; /&gt;
&lt;p&gt;If you would like to find out more, check the &lt;a href=&quot;http://www.tibia.com/news/?subtopic=newsarchive&amp;amp;id=6816&quot;&gt;release news&lt;/a&gt; on our website.&lt;/p&gt;
&lt;/center&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/center&gt;</message>
    <publishdate>1658131200</publishdate>
    <type>REGULAR</type>
  </gamenews>
  <idOfNewestReadEntry>0</idOfNewestReadEntry>
  <isreturner>false</isreturner>
  <maxeditdate>1658228863</maxeditdate>
  <showrewardnews>true</showrewardnews>
</root>

login.php code events

Code:
    case 'eventschedule':
        $eventlist = array();
        $lastupdatetimestamp = time();
        $file_path = Website::getWebsiteConfig()->getValue('serverPath') . 'data/XML/events.xml';
        if (!Website::fileExists($file_path)) {
            die(json_encode([]));
            break;
        }
        $xml = new DOMDocument;
        $xml->load($file_path);
        $tableevent = $xml->getElementsByTagName('event');
        foreach ($tableevent as $event) {
            if ($event) {
            $tmplist = array();
            $tmplist['colorlight'] = parseEvent($event->getElementsByTagName('colors'), false, 'colorlight', false);
            $tmplist['colordark'] = parseEvent($event->getElementsByTagName('colors'), false, 'colordark', false);
            $tmplist['description'] = parseEvent($event->getElementsByTagName('description'), false, 'description', false);
            $tmplist['displaypriority'] = (intval(parseEvent($event->getElementsByTagName('details'), false, 'displaypriority', false)));
            $tmplist['enddate'] = (intval(parseEvent($event, true, false, false)));
            $tmplist['isseasonal'] = parseEvent($event->getElementsByTagName('details'), false, 'isseasonal', true);
            $tmplist['name'] = $event->getAttribute('name');
            $tmplist['startdate'] = (intval(parseEvent($event, true, true, false)));
            $tmplist['specialevent'] = (intval(parseEvent($event->getElementsByTagName('details'), false, 'specialevent', false)));
            $eventlist[] = $tmplist;
            }
        }
        die(json_encode(compact('eventlist', 'lastupdatetimestamp')));
        break;
Maybe, did you figure out how to show achievements from player in client, bit similar as this?
 
Back
Top