First of all, sorry for my long inactivity.
Notes
To start a vote, you need to be a GM. The command to initiate a vote is !startvote <question> <options>. A gossip menu will be send to all players online. The vote automatically ends after (default) 2 minutes (however you can easily change this in configs\votesystem.conf) or when all players online have voted. You can also end the vote manually by typing !endvote.
Each option should be seperated by a space. If you want to use spaces in your options, quote the option.
For example:
I want to ask if everyone likes this server. Here's the command:
Code:
!startvote "Do you like the new server?" Yes No "I think it rocks :)" "I don't like it"
Screenshots
Installation
[COLOR="White"]
1. VoteSystem+Source 1.1.zip somewhere.
2. Apply patch VoteSystem_public_eventRemoveByPointer and VoteSystem_patch to <ArcEmu folder>/trunk/src (if you don't know how to apply patches look
here.)
3. Compile ArcEmu.
4. Compile VoteSystem.
7. Your VoteSystem.dll should be in ..\..\..\..\bin\$(ConfigurationName)\script_bin.
8. Put the VoteSystem.dll in the script_bin folder of your compiled ArcEmu.
Downloads
VoteSystem 1.2
Additional Information
Tested on ArcEmu rev 3087.
Feel free to report bugs.
Changelog
Code:
1.2:
- Both Debug and Release configuration are now set correctly
1.1:
- Started from scratch.
- Better chat mechanic.
- You can choose the options to pick from yourself.
- GossipMenu now pops up without an item.
- Vote stops when all online members voted.
- Results are now printed more clearly.
1.0.1:
- Fixed a bug where the script keeps repeating which option won the vote