Author Topic: ulib setting users  (Read 1699 times)

0 Members and 1 Guest are viewing this topic.

Offline tzahush

  • Newbie
  • *
  • Posts: 17
  • Karma: 1
ulib setting users
« on: November 06, 2014, 05:12:02 AM »
hey guys.
I want to make my ulx system integreated with mysql, and i need to find the place where the groups are being set when the players connect, so u guys got any idea where that is?

Offline Zmaster

  • Full Member
  • ***
  • Posts: 235
  • Karma: 25
Re: ulib setting users
« Reply #1 on: November 06, 2014, 09:07:17 AM »
-snip-
Read you post a with wrong
« Last Edit: November 06, 2014, 05:14:52 PM by Zmaster »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ulib setting users
« Reply #2 on: November 06, 2014, 04:01:33 PM »
I believe the direct answer to your question is here;
https://github.com/Nayruden/Ulysses/blob/master/ulib/lua/ulib/server/ucl.lua#L883
Immediately after PlayerAuth, ULib sets all types of UCL access/checks/etc.

If truly designing your own, become quite familiar with ULib's documentation;
UCL (User Control List) table functions are found here http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html.
http://ulyssesmod.net/docs/ shows the entire area of ULib functions of course.

Please, by all means, don't over-write any of our functions.
Ulib has some nice hooks that can be used if/when access changes if you wanted to add/change/pass data off to mysql.
See http://ulyssesmod.net/docs/index/Hooks.html

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming