Ulysses Stuff > Releases
AutoPromote: The Continuation
emilhem:
--- Quote from: HOLOGRAPHICpizza on January 14, 2009, 07:51:18 PM ---AutoPromote is a lightweight UTime-integrated alternative to other promotion systems such as APromotion.
--- End quote ---
Since it has been forever since the last developer of AutoPromote gave it up, I fixed it and created a new topic for it.
Original topic
Feature suggestions are accepted but I can't promise anything. I might take on AutoPromote XGUI soon though.
FAQ:
--- Code: ---Q: What is AutoPromote?
A: AutoPromote automatically promotes players to different groups based on their time on the server.
Q: Requirements for AutoPromote?
A: AutoPromote requires ULX, ULib, and UTime!
Q: How do I set different groups to be promoted?
A: In the file lua/ulx/modules/sh/autopromote.lua you can add/change groups in the promotes array at the top.
This is the format: { hours = [The amount of hours a player need to level up], group = "[Groupname CASE SENSITIVE!]", name = "[Name to be displayed when player is promoted]" }
Example: { hours = 5, group = "Regular", name = "Regular" }
--- End code ---
Changelog:
--- Code: ---Version 4.1 (2013-06-25)
Released by Emilhem
*It really works now with Garry's Mod 13!
*Added more documentation in code how to not "create" the unlimited promotion "bug".
*Added the option to disable sound while keeping the effects turned on. And you can do the opposite as well.
*Added console message when player joins that says how many hours he/she's been on.
*Changed folder and file names to lowcaps to make it easier to administer on GNU/Linux OS's.
----------------------
Version 4.0
Released by Emilhem
*Works with Garry's Mod 13!
----------------------
Version 3.2
Released by Smithy
*Fixed a pretty major flaw in the code, where it would only exclude the last group in the excludes table.
----------------------
Version 3.1
Released by HOLOGRAPHICpizza
*Now loads as a ULX module.
*Calls ULX promote function directly, instead of through a console command.
----------------------
Version 3.0
Released by Smithy
*Fixed and simplified code, almost a complete rewrite (based on V2)
*Added chat notifications for when you get promoted.
----------------------
Version 2.0
Released by Major_Pain
*Fixed code
*Almost complete rewrite
---------------------
Version 1.0
Released by HOLOGRAPHICpizza
*Initial release
*Autopromotion based on UTime, groups and times defined in the script
--- End code ---
License:
--- Code: ---The MIT License
Copyright (c) 2009 Michael Craft (HOLOGRAPHICpizza)
Copyright (c) 2009 Major_Pain
Copyright (c) 2009 Smithy
Copyright (c) 2013 Emil Hemdal (Emilhem)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
--- End code ---
You need to be signed in to see the attachment!
JamminR:
Continuum
:P
Go ahead and work on XGUI too.
They'll go hand in hand.
Megiddo:
Well done!
sabo:
I am not sure if the Exmaple is correct:
--- Code: ---Example: { hours = 5, group = "Regular", name = "Regular" }
--- End code ---
It says group = "Regular"
Note the capital R.
Since groups are case sensitive wouldnt all groups be small letters in ULX or am I missing something O.o
Also cookies to you! I will be trying this out and see if it works with my Scoreboard Rank Bar :o
emilhem:
--- Quote from: sabo on June 27, 2013, 06:48:06 AM ---I am not sure if the Exmaple is correct:
--- Code: ---Example: { hours = 5, group = "Regular", name = "Regular" }
--- End code ---
It says group = "Regular"
Note the capital R.
Since groups are case sensitive wouldnt all groups be small letters in ULX or am I missing something O.o
Also cookies to you! I will be trying this out and see if it works with my Scoreboard Rank Bar :o
--- End quote ---
I've tested it. Apparently it is case sensitive. I tried with a group called "captain" and it promoted me but it continued every 15 seconds and the promotion didn't stick till the next time I joined! Then I tried with "Captain" and it worked as it should. Could anyone confirm that I'm right or that it does as it is supposed to? I should be since I've done extensive testing with a friend.
Navigation
[0] Message Index
[#] Next page
Go to full version