Go Back   RunUO - Ultima Online Emulation > RunUO > New Join Forum

New Join Forum So your new to RunUO and looking to work with people that are new, this is the place.

Reply
 
Thread Tools Display Modes
Old 06-27-2006, 05:42 AM   #1 (permalink)
Forum Novice
 
Join Date: Mar 2003
Posts: 132
Default how to enable treasures of tokuno

i found none about it in entire forum, so i decide to post one

according to 2.0 changelog -
"Treasures of Tokuno system added. Defaults to requiring the expansion to be set to SE and only SE."
but i still don't know how to enable TOT
only in ..\Scripts\Misc\CurrentExpansion.cs
Code:
private static readonly Expansion Expansion = Expansion.ML;

public static void Configure()
{
	Core.Expansion = Expansion;

	bool Enabled = Core.AOS;
how to enable TOT? need help ,thx
also, i wander if i set "Expansion.SE", does ML function still enable ?
1235 is offline   Reply With Quote
Old 06-27-2006, 10:38 AM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
also, i wander if i set "Expansion.SE", does ML function still enable ?
If you set the expansion to support SE features why would it support ML features? If you want to enable this system you need set the expansion to SE just like the changelog said.
Phantom is offline   Reply With Quote
Old 06-27-2006, 11:01 AM   #3 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

in TreasuresOfTokuno.cs change this line

Code:
private static bool m_Enabled = (Core.Expansion == Expansion.SE);
to something like

Code:
private static bool m_Enabled = (Core.Expansion >= Expansion.SE);
and then it will work for SE or ML
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Old 06-28-2006, 01:34 AM   #4 (permalink)
Forum Novice
 
Join Date: Mar 2003
Posts: 132
Default

i would say "thank you" first
but are you sure ">=" works ? i don't think Expansion.ML >= SE, there's no arithmetical or logical relationship between them.
maybe "!=" is a nice choice, any idea ?

by the way
Code:
private static readonly Expansion Expansion = Expansion.ML;

public static void Configure()
{
	Core.Expansion = Expansion;

	bool Enabled = Core.AOS;
in code above, if the expansion is ML, what does this mean "bool Enabled = Core.AOS;" ?
in my opinion, Expansion is enable when core.AOS is true, but isn't RunUO2.0-core SE ? otherwise it can't support SE function
still confused... need help!

Last edited by 1235; 06-28-2006 at 05:21 AM.
1235 is offline   Reply With Quote
Old 06-28-2006, 05:45 AM   #5 (permalink)
Master of the Internet
 
Join Date: Aug 2003
Posts: 5,688
Default

'Expansion' is an enum which simple maps the names AOS, SE, and ML to the values 1, 2, and 3, so the answer is, yes, it will work.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "

For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum
ArteGordon is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5