RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[runuo 2.2] avelyn's player government system

Avelyn

Sorceror
This is the newest version of my Government System. It has been updated with a current SVN (a few weeks ago). I have verified it can be dropped into a clean server and it works fine.

This system allows players to create towns that are recognized by the server and moongates, and also create public buildings such as stables, moongates, banks, markets etc.

Changes from 2.21:

Bug Fixes

Integration with Knives Chat (included)

Town Vendor clean up algorithms.

Removed the Option of the crafting system to create house deeds. You now just use the included City Manager NPC vendor for your deeds. Set whatever prices you like.

Removed the optional addon scripts, they are now mandatory.

Updated the GovHelp Dump.

Known Issues:
Typos.... forever typos on the gumps... I am aware of them, they will get fixed.



Install:
ALWAYS INSTALL SYSTEMS THIS BIG ON A TEST SHARD FIRST!

IF you use Knives Chat already, copy the InternalChatMessage.cs file from the Knives folder in this distro and delete the rest of it.

If you don't use it but want to, don't change anything in the distro.

If you don't use it and don't want to, delete the entire Knives folder AND edit the CityManagementStone.cs file in the Government System/Items/Stones folder and change the top line that says #define ChatEnabled to //#define ChatEnabled.

If you have a clean server, just find each of the files that are in the Distro folder and overwrite yours. You will need to search through your script folders to find them all.

If you have edited any of these files you will need to merge the changes from this system into yours correctly.

Once the distros are done, copy the Government System folder into a custom script folder.

That should be it. I will paste the changelog from the previous thread which includes some commands and instructions here.

If you have problems/questions post here and I will try and get them answered. This requires some work to get it working and realize all it can do, its a pretty big system.

If you had a previous version of these system running you should get a message on your server console that you need to update once this is installed. Log into the shard on an administrator account and run [upgradecitysystem.

Edit PlayerGovernmentSystem.cs and change the values such as city titles, number of members, how often it updates and charges members.


Additions to the system ver 2.21:

Squashed a lot of existing bugs.

The big update is the addition of a new city structure-- The city Market. This is a version of my NPC controlled vendor mall for your player run city. It allows the town to have a central place for commerce. Any member can place a city player vendor here for free. Also, non citizens may rent space and place their vendors in towns that have a lot of traffic so they can sell their stuff. The mayor selects the sales tax for all vendors in the city and will be taken out of all purchases and deposited into the city treasury. The tax rate is noted on the vendor gump. Finally, as an added bonus, the city market will spawn 2 npc town vendors for the members of the town to buy and sell from so they may not need to go into the main towns as much. The vendor types are selected from a list and will change on every update.

Addition of an upgrade system which will allow updates without having to change existing cities. When you upgrade the system, it will compare the old and new version numbers and tell you in the Console window if you need to run the update command. If not, it will report that the system is current.

Included is the 2.01 version of my vendor mall system which is required for the markets. Of course since the system is included you can use it outside of the cities also!

Optimized the way cities delete and the cleanup of all addons, vendors, items and buildings.


Additions to the system ver 2.00:

It is optional to allow the mayor to place normal house addons in the city as decoration

Added a City Player Vendor which is the only player vendor allowed in the town. It will allow the mayor to take sales tax from whatever the vendor sells for the town. (Named income tax)

Added the resource box system (Thanks Al_i_en!!) with a special box for towns that all citizens may access to store resources and work together.

Added a 3 time per city update limit on corpse retrieval and made it only for citizens

Added an Assistant Mayor position that is picked by the current mayor to take over in the event the mayor leaves the town, if none is picked a new mayor is picked at random and an election is forced.

Added an NPC vendor that sells all city deeds in case you dont want the crafting items.

Added an admin command that will update the city when the command is run and the stone is clicked.


Once you get it installed and compiled use the [govhelp command to learn more about how the sytem works.

Other Commands:
[FindCities -Lists all current active cities
[CityUpdate -Target a city stone to force an update
[Movevendor - Allows a mayor to move a city vendor or city resource box
[upgradecitysystem - An Admin needs to run this when the console tells you to
 

Attachments

  • Player Government System 2.23.zip
    474.5 KB · Views: 249

Tru

Knight
Excellent...I'm going to update my version and then probably release the XML Siege updates and the Army extension of this system.
 

Tru

Knight
Did you forget to remove part of another system?? ie using Server.Engines.ConPVP;

Errors:
+ Custom/Government System/Distro/PlayerMobile.cs:
CS0234: Line 10: The type or namespace name 'ConPVP' does not exist in the n
amespace 'Server.Engines' (are you missing an assembly reference?)
CS0234: Line 3514: The type or namespace name 'ConPVP' does not exist in the
namespace 'Server.Engines' (are you missing an assembly reference?)
CS0234: Line 3515: The type or namespace name 'ConPVP' does not exist in the
namespace 'Server.Engines' (are you missing an assembly reference?)
CS0234: Line 3517: The type or namespace name 'ConPVP' does not exist in the
namespace 'Server.Engines' (are you missing an assembly reference?)
CS0234: Line 3522: The type or namespace name 'ConPVP' does not exist in the
namespace 'Server.Engines' (are you missing an assembly reference?)


Or a couple..
+ Custom/Government System/Distro/PlayerMobile.cs:
CS0117: Line 338: 'Server.Items.CandyCane' does not contain a definition for
'GetToothAche'
CS0117: Line 339: 'Server.Items.CandyCane' does not contain a definition for
'SetToothAche'
 
Thanks for that tru. i saw those errors and was like "whaaaa?"

~EDIT
Tru, yours gave me errors for dual context... are you sure that you didn't remove something? i tried the one from main package and works
 

Avelyn

Sorceror
Did you forget to remove part of another system?? ie using Server.Engines.ConPVP;

Errors:
+ Custom/Government System/Distro/PlayerMobile.cs:
CS0234: Line 10: The type or namespace name 'ConPVP' does not exist in the n
amespace 'Server.Engines' (are you missing an assembly reference?)
CS0234: Line 3514: The type or namespace name 'ConPVP' does not exist in the
namespace 'Server.Engines' (are you missing an assembly reference?)
CS0234: Line 3515: The type or namespace name 'ConPVP' does not exist in the
namespace 'Server.Engines' (are you missing an assembly reference?)
CS0234: Line 3517: The type or namespace name 'ConPVP' does not exist in the
namespace 'Server.Engines' (are you missing an assembly reference?)
CS0234: Line 3522: The type or namespace name 'ConPVP' does not exist in the
namespace 'Server.Engines' (are you missing an assembly reference?)


Or a couple..
+ Custom/Government System/Distro/PlayerMobile.cs:
CS0117: Line 338: 'Server.Items.CandyCane' does not contain a definition for
'GetToothAche'
CS0117: Line 339: 'Server.Items.CandyCane' does not contain a definition for
'SetToothAche'

The ConPVP system is the new Dueling system that is part of SA and is in the SVN. I assume the other is also since I didnt add it. Those files are off a clean server.
 

Irel

Page
Seems interesting! can't wait to test it! seems wonderful from the description you gave. I hope it works
Thanks!!!!
-Irel
 

Avelyn

Sorceror
Seems interesting! can't wait to test it! seems wonderful from the description you gave. I hope it works
Thanks!!!!
-Irel
I've been running this system on a shard for almost 6 years. Once it's set up it works well. You will probably run it for a month and still not find out everything it can do! I still run into things that I don't remember writing..
 

Irel

Page
I've been running this system on a shard for almost 6 years. Once it's set up it works well. You will probably run it for a month and still not find out everything it can do! I still run into things that I don't remember writing..
wonderful cant wait i have seen parts of what it can do and it is quite unbelievable can't wait to see how the players will like it they will probably go nuts for it
 

jamesreg

Sorceror
What do you have to do if you are getting that conpvp error? I know its not his system but what do you have to edit or add or do if you are getting it?
 

Gamble

Traveler
Ok I got three errors probably because I am not sure where to put the Public Moongate, PlayerVendorDeed, and PlayerVendorGump. Where should each of these go in the shard file?
 

Tru

Knight
Ok I got three errors probably because I am not sure where to put the Public Moongate, PlayerVendorDeed, and PlayerVendorGump. Where should each of these go in the shard file?
Can go anywhere in scripts folder...post errors.
 

Avelyn

Sorceror
Ok I got three errors probably because I am not sure where to put the Public Moongate, PlayerVendorDeed, and PlayerVendorGump. Where should each of these go in the shard file?

You need to find the existing files and remove them or if you have edits in them already, merge them.
 

jamesreg

Sorceror
No i got it working on Regular runuo 2.2 but have not got it working on an orbs 3.0 server yet. Im putting together one of each server for two different projects
 

Avelyn

Sorceror
No i got it working on Regular runuo 2.2 but have not got it working on an orbs 3.0 server yet. Im putting together one of each server for two different projects

I was going to look into this because I'm curious but I'm still awaiting activation on their forums. Private bunch it seems.
 
Top