|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#4 (permalink) |
|
Account Terminated
|
<sigh>
I guess your new to scripting...I will show you how this time, but please do a search next time there are so many questions everday enough to make somebody go mad Put this in any region file this is just an example and its not the whole method but not posted because its not important for this problem: [code:1]public class TrammelTown : GuardedRegion { public static new void Initialize() { Map.Trammel.Season = Map.Felucca.Season;[/code:1] |
|
|
|
|
|
#5 (permalink) |
|
Forum Expert
Join Date: Oct 2002
Location: In My Cold Cell
Age: 44
Posts: 1,848
|
Use this in your "Custom" folder( if you ever created such a folder. other wise just put it in the Scripts folder. Make any facet map season/rules you would like.
[code:1]using System; using Server; namespace Server.Regions { public class CustomSeasonChanges { public static void Initialize() { // Seasons are based on 5 different themes // 0 = Spring // 1 = Summer // 2 = Fall // 3 = Winter // 4 = Desolation //Map.Felucca.Season = 4; //Commented out due to I want the defualt for this map //Map.Trammel.Season = 1; //Commented out due to I want the defualt for this map Map.Ilshenar.Season = 2; Map.Malas.Season = 4; } } } namespace Server.Regions { public class CustomMapRules { public static void Initialize() { // MapRules are based on 2 different themes // = MapRules.FeluccaRules // = MapRules.TrammelRules //Map.Fellucca.Rules = MapRules.FeluccaRules;//Commented out due to I want the defualt for this map //Map.Trammel.Rules = MapRules.FeluccaRules; //Commented out due to I want the defualt for this map //Map.Ilshenar.Rules = MapRules.FeluccaRules; //Commented out due to I want the defualt for this map //Map.Malas.Rules = MapRules.FeluccaRules; } } }[/code:1] |
|
|
|
|
|
#7 (permalink) |
|
Forum Expert
|
just copy and paste the text from Mortis's post and save it as SeasonsRules.cs (or whatever.cs) and put it in a folder inside the scripts folder named Custom (make a folder in your runuo\scripts folder and name it custom that is). Then in that script you can tell each facet what seasons to look like and what rules to follow. Works pretty stick.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|