Hi,
When user register to become agent, there are 2 cases
1. If user is Joomla user (already registered and logged in before), the system will get user_id and add new record (agent) to table #__osrs_agents
2. If user is non-registered user, the system will create new Joomla user, and then, it gets user_id adn add new agent.
The agent store function is in file components > com_osproperty > classes > agent.php
Thanks
Dam