Ulysses

Ulysses Stuff => Releases => Topic started by: Buzzkill on May 24, 2016, 10:32:31 AM

Title: SteamTeam - Steam Group Membership Award System
Post by: Buzzkill on May 24, 2016, 10:32:31 AM
SteamTeam - Steam Group Membership Award System
Written by Buzzkill -- thehundredacrebloodbath.com
https://github.com/100acrebb/thab_tools

(I apologize for the name. It's stupid, but it stuck)

SteamTeam is a framework for detecting player membership to a Steam group and awarding in-game bonuses as a result. It is currently a work in progress, and support for multiple groups and
multiple bonus types is forthcoming, as well as separating out and improving the configuration of groups/bonuses.


An example configuration is included in source, with notes on important values. This is probably the best approach to configuration documentation for now.

Membership is checked upon user initial spawn as well as every 10 mins.
NOTE: IT CURRENTLY ONLY SUPPORTS A SINGLE GROUP AND A SINGLE BONUS (Pointshop 1 points as well as a configurable callback -- see inline notes in source below).

Code: [Select]
-- One group for now
STEAMTEAM.Groups[1] = {}
-- URL of the target group
STEAMTEAM.Groups[1].URL = "http://steamcommunity.com/groups/100acrebb"
-- A configurable callback. In this example, I set a networked boolean if the user is a member of the above group.
-- I'm using this in other areas - for example, a custom icon in HatsChat
STEAMTEAM.Groups[1].OnIsMember = function(self, ply) ply:SetNWBool( "THABMember", true ) end
STEAMTEAM.Groups[1].Bonus = {}

-- One bonus for now
STEAMTEAM.Groups[1].Bonus[1] = {}
-- The bonus type (PSPOINTS only, for now)
STEAMTEAM.Groups[1].Bonus[1].Type = "PS1POINTS"
-- The number of points
STEAMTEAM.Groups[1].Bonus[1].Amount = 10000


https://github.com/100acrebb/thab_tools/blob/master/lua/autorun/server/steamteam.lua
Title: Re: SteamTeam - Steam Group Membership Award System
Post by: JamminR on May 24, 2016, 07:24:00 PM
Sweet!
Nice idea.
I think I've seen questions regarding this by some in dev corner, but never any of the discussion implemented.
Always appreciate your contributions here.
Thanks
Title: Re: SteamTeam - Steam Group Membership Award System
Post by: Letsfail on July 10, 2017, 09:32:14 AM
Hey,

nice script, but does it support Pointshop2?
Title: Re: SteamTeam - Steam Group Membership Award System
Post by: jay209015 on July 10, 2017, 01:25:12 PM
Really nice idea.

However, it appears the link is busted.
Title: Re: SteamTeam - Steam Group Membership Award System
Post by: JamminR on July 10, 2017, 02:04:24 PM
Corrected Link to go straight to the github listing.
Title: Re: SteamTeam - Steam Group Membership Award System
Post by: tjhooker73ps3 on July 12, 2017, 06:25:07 PM
Hey,

nice script, but does it support Pointshop2?

Shouldn't be that hard to replace PS1 calls with PS2_AddStandardPoints
Title: Re: SteamTeam - Steam Group Membership Award System
Post by: Phosphene on September 29, 2017, 04:12:54 PM
Hey, I tried myself but I can't get it working - how would I configure this to give DarkRP money? Thanks.