Author Topic: Processing of Events saved in the database  (Read 1604 times)

Donari Tyndale

  • Hydlaa Notable
  • *
  • Posts: 748
    • View Profile
Processing of Events saved in the database
« on: March 06, 2007, 07:34:27 pm »
I am wondering, where are the events found in the progress_events.sql file from the database processed? Is there some kind of list of possible parameters somewhere?

Ralleyon

  • Hydlaa Citizen
  • *
  • Posts: 304
  • Protector in the Survivors of Vaern
    • View Profile
Re: Processing of Events saved in the database
« Reply #1 on: March 13, 2007, 09:16:58 am »
The processing of the events is done server side as far as I can figure.

The database itself yields a truckload of examples, but if that is not enough, my best bet to understand what's going on is... here and there
To see the world in a grain of sand
And Heaven in a wild flower,
Hold Infinity in the palm of your hand
And Eternity in an hour.
     
   [William Blake - Auguries of Innocence]

acraig

  • Administrator
  • Veteran
  • *
  • Posts: 1562
    • View Profile
Re: Processing of Events saved in the database
« Reply #2 on: June 28, 2007, 05:18:25 pm »
I am wondering, where are the events found in the progress_events.sql file from the database processed? Is there some kind of list of possible parameters somewhere?

These are mostly scripts that are run based on various events that happen in game.  For example, when you equip a speical ring it might have an event scripted to it ( something like gives faction to orcs ).  So in the item_stats table this item is given the event "equip_ring_faction".   And inside the progression_events table there is:

"equip_ring_faction", "<evt><faction name="orcs" value="100"/></evt>"

So when you equip the right it does an event with the faction operation to increase it by 100.  When you remove the right it does the same event but in reverse.   Events can be simple operations like this or complex ones that do calculations and can take parameters.


----------
Andrew
"For all I know, she's lying, everyone's lying; welcome to the Internet"