Skip to content

Commit

Permalink
Add getting points via mysql info
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinFunk committed Apr 22, 2016
1 parent 0a90e87 commit d8e8b4d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions developer/points.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,30 @@ There is also a console command available to give points to a specific steamid.

**points**: Amount of points to give

Getting via MySQL (for loadingscreens etc)
******************************************
To get a player's points from a pointshop2 mysql database you can use the following query:

.. highlight:: sql
.. code-block:: sql
SELECT w.points AS points, w.premiumPoints AS premiumPoints
FROM ps2_wallet w, libk_player p
WHERE w.ownerId = p.id
AND p.player = "STEAM_0:0:19299911"
To get points via steamid64 you can use this query:

.. highlight:: sql
.. code-block:: sql
SELECT w.points AS points, w.premiumPoints AS premiumPoints
FROM ps2_wallet w, libk_player p
WHERE w.ownerId = p.id
AND p.steam64 = "76561197998865550"
The result row of these queries will contain a points and premiumPoints collumn.

Giving Items
============

Expand Down

0 comments on commit d8e8b4d

Please sign in to comment.