Graal Improvement Script: Vote System for Staff Priorities
2 Attachment(s)
This thread is for a Graal Improvement Script - a script that is freely distributed for any server to use (its creators credited of course ;)) for the general improvement of Graal servers.
The NPC I would like assistance to script is illustrated in the attached image. If any of you have ever used Dreamhost, you will be familiar with the concept. Summary: A player gets X ammount of vote points to spend. Suggestions are moderated by the staff and managed through a GUI. Access control to this will be set at the top of the script so servers can customize the staff detection to their current systems. (Ie, if player has a staff flag, or is in serverops, or a certain accounts list, etc.) Once a suggestion is added a player can spend their points to vote For or Against (+ or -) on a suggestion. The suggestion's rank is then calculated by tallying the For votes and subtracting the Against votes to give you the # of player points contributed to this suggestion by popular opinion. Example: HTML Code:
Move fishing house closer to unstick me? + 24 - If a suggestion is removed from the list, you regain those points to use elsewhere. You can remove or add points at any time as long as your total votes are less than the X number of points you have to spend. You'll see in the image below the Dreamhost system has different "costs" for votes on different things (they decide the cost of a vote based on the difficulty of implementing the idea). For our purposes, the costs will all initially be 1. (Ie, a vote costs 1 point.) It would be nice to add that feature in the future, but I'd really like to get a working version of this deployed ASAP :) Thank you in advance for the time put into this idea, your names will be credited in the script. You may also add a tasteful credit for players to see, be it an "About" button, or a small blurb somewhere saying "Created by ____" :) Collaborate! I don't want anybody bearing the whole load on these :) Also, if I've been unclear on anything just ask :) |
Goood luck, I wish I could help, but at the moment I don't have a computer, and I'm not going to try scripting on a phone ;)
|
Can't you just have a browser-version of it? Having Dreamhost or whatever manage it already instead of having it as an in-game version of it... Maybe if in-game is so important, have a browser in the game.
Way I see it is it's merely just reinventing the wheel. |
Quote:
|
Quote:
oh wait, they already do this |
Quote:
|
Quote:
|
This script would be pretty useful to have for replacing the common Yes/No or multiple choice voting system. Right now things are somewhat busy with the server I work on, but I'll try to start playing around with something soon.
|
I'm working on it right now ;o
I think I might be done later today tho, maybe |
well, I would be already done, but the script compiler hates me XD so good luck chompy
|
Well, it's making progress, but a little slower because of being busy (*cough* New Year *cough*)..
|
Post what you have guys, work together!
|
well got a little more complicated than i thought in the beginning xD
I'm stuck because of the Bug with the param going to 0(see my other thread here for that), but If you want I will post it even if its not fully finished NPC VotingControlSystem PHP Code:
too long for a post...(17k characters, 10k is limit lol) http://nopaste.info/1e0eb25243.html |
Hmm, I was mainly going to do it all in one NPC, but that would be odd, so I need to change my code :(
I was thinking of some features, dunno if they are needed tho: (This is the config() function) PHP Code:
And triggeraction() is being annoying from serverside to clientside when it works clientside to serverside :( |
use triggerserver/triggerclient?
|
All times are GMT +2. The time now is 04:37 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.