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!

[2.0] Updated 8th anniversary Fountain of Life

[2.0] Updated 8th anniversary Fountain of Life

Updated this http://www.runuo.com/forums/showthread.php?t=68640 to work with 2.0, thus it no longer works with 1.0.
Once again my gratitude to Erica, who made this as much OSI like as I could hope for.

Istallation:
Get the zip.
The scripts from the new folder go in your desired custom script folder.
If you didnt change your distro scripts which are in the default folder yet, then you can just overwrite them.
Scripts\Items\Skill Items\Misc\bandage.cs
Scripts\Multis\BaseHouse.cs
Otherwise go through the scripts and do the commented changed by hand.

Description:
http://www.uo.com/theeighthage/items.shtml Fountain of life house addon container, which transforms bandages to enhanced bandages on drop into. 10 every 24 hours.

Changelog:
Versions prior 1.2c
Fixed glitches with moving fountains and demolishing house.
Important BugFix in 1.2b redownload, install ( BaseHouse.cs, BaseAddonContainerDeed.cs and BaseAddonContainer.cs were changed )
After you installed the scripts, booted, saved and shut down the shard remove in BaseHouse.cs:

Code:
// HotFix for fountain of life start - can be removed after shard saved again
object o;
for ( int i = 0; i < m_Addons.Count; )
{
 o = (object)m_Addons[i]; 
 if ( o is BaseAddonContainer )
  m_Addons.RemoveAt( i );
 else
  ++i;
}
ArrayList templist = new ArrayList();
for ( int i = 0; i < m_Secures.Count; ++i )
{
 if ( m_Secures[i] == null )
  continue;
 o = (object)m_Secures[i];
 if ( !templist.Contains( o ) )
  templist.Add( o );
}
m_Secures = templist;
// Hotfix for fountain of life end
Note: If you do a fresh install you can remove above code from BaseHouse.cs directly.

I didn't pay attention and a really malicious bug found it's way in, but this removes his eggs. :p
Sorry ppl!
Version 1.2c to 1.3 - Fixed bug where fresh placed fountains were movable. Removed code for [move from staff, because it caused too much unwanted behaiour.
Files changed:
BaseHouse.cs - OnAfterDelete()
BaseAddonContainer - Plug and play

Version 1.3
 

Attachments

  • FountainOfLive.zip
    25.9 KB · Views: 125

dragonlady

Sorceror
after placing in the fountain script, i got this after someone tried to customize there house

Server Crash Report
===================

RunUO Version 2.0, Build 2357.32527
Operating System: Microsoft Windows NT 5.1.2600 Service Pack 2
.NET Framework: 2.0.50727.42
Time: 6/23/2006 10:43:18 PM
Mobiles: 6649
Items: 117746
Clients:
- Count: 1
+ 70.52.162.9: (account = xxxx) (mobile = 0x1589 'Ultra Electra')

Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Items.BaseAddonContainer.CouldFit(IPoint3D p, Map map, Mobile from, BaseHouse& house)
at Server.Items.BaseAddonContainer.CouldFit(IPoint3D p, Map map)
at Server.Multis.BaseHouse.RestoreRelocatedEntities()
at Server.Multis.HouseFoundation.EndConfirmCommit(Mobile from)
at Server.Multis.ConfirmCommitGump.OnResponse(NetState sender, RelayInfo info)
at Server.Network.PacketHandlers.DisplayGumpResponse(NetState state, PacketReader pvSrc)
at Server.Network.MessagePump.HandleReceive(NetState ns)
at Server.Network.MessagePump.Slice()
at Server.Core.Main(String[] args)
 
Thanks dragonlady, got a debug report here and trying to figure out a fix. Will be done within the next hour I think.
 
Bug removed, eggs killed (or the other way round) and some editing comming up, but nothing that would take too much time. :) - Took me more than an hour to figure a fix tho lol
 

dragonlady

Sorceror
Hmm seem's after my restart i got this error but they only thing that was put into my shard was this script, wondering if anything for the accounts were chaged in the script b/c i have no clue what to do hehe

RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 11 warnings)
Warnings:
+ Items/Custom Script/Custom Commands/ShardInfo.cs:
CS0105: Line 13: The using directive for 'Server.Network' appeared previousl
y in this namespace
+ Items/Custom Script/Custom Quest/VampireQuest/VampQuestItems/Drac Required it
ems/DraculasTeleporter.cs:
CS0114: Line 21: 'Server.Items.DraculasTeleporter.Location' hides inherited
member 'Server.Item.Location'. To make the current member override that implemen
tation, add the override keyword. Otherwise add the new keyword.
CS0108: Line 28: 'Server.Items.DraculasTeleporter.Map' hides inherited membe
r 'Server.Item.Map'. Use the new keyword if hiding was intended.
+ Items/Custom Script/Publisher/Publisher/Publisher.cs:
CS0108: Line 18: 'Server.Mobiles.Publisher.PlaySound' hides inherited member
'Server.Mobile.PlaySound(int)'. Use the new keyword if hiding was intended.
+ Items/Custom Script/Custom Armor/Other/SkelHelml.cs:
CS0162: Line 72: Unreachable code detected
+ Items/Custom Script/Custom Commands/FindhouseSys.cs:
CS0168: Line 137: The variable 'online' is declared but never used
+ Items/Custom Script/Custom Monster/TrainingElemental/TrainingElemental.cs:
CS0429: Line 78: Unreachable expression code detected
CS0162: Line 79: Unreachable code detected
+ Items/Custom Script/Custom Quest/ElainQuest/Mobiles/Andora.cs:
CS0219: Line 34: The variable 'hairHue' is assigned but its value is never u
sed
+ Items/Custom Script/Custom Quest/ElainQuest/Mobiles/ErikSullivan.cs:
CS0219: Line 35: The variable 'hairHue' is assigned but its value is never u
sed
+ Items/Custom Script/Custom Quest/SpellcrafterQuest/SpellcrafterQuest/Balto.cs
:
CS0219: Line 31: The variable 'hairHue' is assigned but its value is never u
sed
+ Items/Custom Script/Custom Quest/SpellcrafterQuest/SpellcrafterQuest/Gallin.c
s:
CS0219: Line 31: The variable 'hairHue' is assigned but its value is never u
sed
+ Items/Custom Script/Custom Quest/SpellcrafterQuest/SpellcrafterQuest/SCAppren
.cs:
CS0219: Line 49: The variable 'hairHue' is assigned but its value is never u
sed
Errors:
+ Accounting/Account.cs:
CS0029: Line 44: Cannot implicitly convert type 'System.Collections.Generic.
List<Server.Multis.BaseHouse>' to 'System.Collections.ArrayList'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 
dragonlady said:
Hmm seem's after my restart i got this error but they only thing that was put into my shard was this script, wondering if anything for the accounts were chaged in the script b/c i have no clue what to do hehe

RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 11 warnings)
Warnings:
+ Items/Custom Script/Custom Commands/ShardInfo.cs:
CS0105: Line 13: The using directive for 'Server.Network' appeared previousl
y in this namespace
+ Items/Custom Script/Custom Quest/VampireQuest/VampQuestItems/Drac Required it
ems/DraculasTeleporter.cs:
CS0114: Line 21: 'Server.Items.DraculasTeleporter.Location' hides inherited
member 'Server.Item.Location'. To make the current member override that implemen
tation, add the override keyword. Otherwise add the new keyword.
CS0108: Line 28: 'Server.Items.DraculasTeleporter.Map' hides inherited membe
r 'Server.Item.Map'. Use the new keyword if hiding was intended.
+ Items/Custom Script/Publisher/Publisher/Publisher.cs:
CS0108: Line 18: 'Server.Mobiles.Publisher.PlaySound' hides inherited member
'Server.Mobile.PlaySound(int)'. Use the new keyword if hiding was intended.
+ Items/Custom Script/Custom Armor/Other/SkelHelml.cs:
CS0162: Line 72: Unreachable code detected
+ Items/Custom Script/Custom Commands/FindhouseSys.cs:
CS0168: Line 137: The variable 'online' is declared but never used
+ Items/Custom Script/Custom Monster/TrainingElemental/TrainingElemental.cs:
CS0429: Line 78: Unreachable expression code detected
CS0162: Line 79: Unreachable code detected
+ Items/Custom Script/Custom Quest/ElainQuest/Mobiles/Andora.cs:
CS0219: Line 34: The variable 'hairHue' is assigned but its value is never u
sed
+ Items/Custom Script/Custom Quest/ElainQuest/Mobiles/ErikSullivan.cs:
CS0219: Line 35: The variable 'hairHue' is assigned but its value is never u
sed
+ Items/Custom Script/Custom Quest/SpellcrafterQuest/SpellcrafterQuest/Balto.cs
:
CS0219: Line 31: The variable 'hairHue' is assigned but its value is never u
sed
+ Items/Custom Script/Custom Quest/SpellcrafterQuest/SpellcrafterQuest/Gallin.c
s:
CS0219: Line 31: The variable 'hairHue' is assigned but its value is never u
sed
+ Items/Custom Script/Custom Quest/SpellcrafterQuest/SpellcrafterQuest/SCAppren
.cs:
CS0219: Line 49: The variable 'hairHue' is assigned but its value is never u
sed
Errors:
+ Accounting/Account.cs:
CS0029: Line 44: Cannot implicitly convert type 'System.Collections.Generic.
List<Server.Multis.BaseHouse>' to 'System.Collections.ArrayList'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
A lot of warnings hehe.
I used the svn BaseHouse.cs from revision 57... My fault sorry...
Anyways the bug rooted a bit deeper, than I thought.
I've uploaded a new version, which works pretty well.
 
Top