Resource icon

Ultima Store Easy Edit Edition. 1.0

Author
Triberius
Downloads
1
Views
29
First release
Last update

Ratings

0.00 star(s) 0 ratings
No permission to download Join the discussion

More resources from Triberius

Requirements
Designed and tested for ServUO Pub 57
This system is an easy drop-in replacement for the Ultima Store Service with the added bonus of a fully functional Promotional Codes system.

PLEASE BACKUP YOUR EXISTING ULTIMA STORE DIRECTORY PRIOR TO DROPPING IN THIS REPLACEMENT, IF YOU HAVE CUSTOM ENTRIES THEY WILL BE LOST OTHERWISE.

Ultima Store:
The Stock Ultima Store Service requires hard coded entries to populate the gump, this is tedious time consuming and annoying. This system loads entries from a structured .json file. A .json for the stock Ultima Store entries is included. Hard Coded entries are completely removed from UltimaStore.cs.

Example:

1782080244420.png


Categories must be separated by a comma following the closing ]
Entires are inside Curly Braces { } and seperated by a comma
Type defines the item
NameLines uses either Cliloc or Strings.
Tooltip must be a Cliloc or 0 if an item doesn't have a Cliloc
TooltipText must be a String or left empty if the item does have a Cliloc in Tooltip
The other entries should be self-explanatory

If you have already customized your Ultima Store via manual editing of entries or using another system, you must enter them into the proper categories in the supplied .json file or you will lose all your entries, backing up, and editing the supplied .json file is recommended prior to testing and pushing to a live shard.

Edits to the Ultima Store only take effect after a server restart.

Promotional Codes System.
Works in the similar manner as the new Ultima Store Service. Items definitions and their corresponding Promo Codes are stored in a .json file. When a player opens the Promotional Code gump from the Ultima Store, they enter a code, it is checked against the .json file, and if valid the item is placed in their pack. Codes are only usable once, once validated they are deleted from the file.

Items given out via promo codes are defined in both PromoCodeSystem.cs and in the .json.

1782081003638.png


Edit this section of PromoCode.cs to add additional items you wish to give out.

Go to any coupon code generator website and generate however many codes you wish, place the codes inside the PromoCodes.json file found in the Data folder of ServUO in the following format.

1782081432310.png


Promo Codes can be reloaded in game using the [promoreload command without restarting your server.

That's it, your Promotional Code system is working.
  • Like
Reactions: Taldor

Donations

Total amount
$30.00
Goal
$500.00

Shards

Back