ScriptUO

Official ScriptUO EasyUO Scripts => Script Snippets => Topic started by: KilroyIsDead on June 05, 2009, 04:36:44 PM

Title: PG Mining Storage Server
Post by: KilroyIsDead on June 05, 2009, 04:36:44 PM
Updated to 0.25a
The inventory can be taken more than once now

This is a working alpha of PaulyGram's Mining Storage Server and a silly client

As the server progresses, I'll link in the miner which will eventually take the place of the silly client

Current Functions

Future Functions

This requires:
PG.Resources.Ore.suo http://www.scriptuo.com/index.php?topic=1661.0 (http://www.scriptuo.com/index.php?topic=1661.0)
PG.Generic.suo http://www.scriptuo.com/index.php?topic=1775.0 (http://www.scriptuo.com/index.php?topic=1775.0)

Oh yeah, this supports multiple clients and forces serial actions when two clients request an action that competes for a resourcse.  It disallows two clients from accessig the containers at the same time, for instance and therefore reduces the chance of a crash if you're dual clienting.

Setup files are shard based so on each shard you'd have to choose bank or house, but not both ;(

Code: [Select]
;=================================================================
; Library: PG.Mining.Storage.Server.suo
; Author: Paul Erickson
; Version: 0.01a
; Purpose:
;
; Dependancies: PG.Resource.Ore.suo
;               PG.Generic.suo
;
; Credits: Cheffe for EasyUO
;          TrailMix for ScriptUO (editor)
;                   and TrailMyx Sub Strings
;                   and the server model
;                   (I have since deviated greatly, but it was
;                   a good starting point)
;
; global name spaces: I break this out because I may not need all
;                     this data in one namespace at the same time.
;    PGMS_Constants - This is where we store the basic constants.
;                     This data should not be context sensitive.
;    PGMS_External - This is where we share information with other
;                    scripts at run-time.
;    PGMS_Inventory - This just holds the counts of inventory,
;                     # or ore piles by color, # of ingots by
;                     color, etc.
;    PGMS_Menu - This is menu colors and label locations
;
; Revision History:
; 000 PAE 06/01/2009 Initial build
; 001 PAE 06/03/2009 Drawing the Initial Menu 0.12a
;=================================================================