Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Releases

Custom Script Releases This forum is where you can release your custom scripts for other users to use.

Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO.

Reply
 
Thread Tools Display Modes
Old 04-24-2007, 11:39 AM   #76 (permalink)
Forum Novice
 
qwerty84's Avatar
 
Join Date: Apr 2006
Location: Abbiategrasso, Italy
Age: 24
Posts: 134
Send a message via ICQ to qwerty84 Send a message via MSN to qwerty84
Default

I have of the large problems with English I try to signal with my possibility.
qwerty84 is offline   Reply With Quote
Old 04-24-2007, 11:46 AM   #77 (permalink)
Forum Novice
 
qwerty84's Avatar
 
Join Date: Apr 2006
Location: Abbiategrasso, Italy
Age: 24
Posts: 134
Send a message via ICQ to qwerty84 Send a message via MSN to qwerty84
Default

Code:
 + Multis/BaseHouse.cs:
    CS0429: Line 58: Unreachable expression code detected
    CS0162: Line 61: Unreachable code detected
 + Multis/HouseSign.cs:
    CS0429: Line 103: Unreachable expression code detected
    CS0162: Line 105: Unreachable code detected
This problem is resolving with removing following code?

remove in basehouse.cs:
Code:
public virtual bool IsInside( Point3D p, int height )
		{
			if ( Deleted )
				return false;

			MultiComponentList mcl = Components;

			int x = p.X - (X + mcl.Min.X);
			int y = p.Y - (Y + mcl.Min.Y);

			if ( x < 0 || x >= mcl.Width || y < 0 || y >= mcl.Height )
				return false;

			if ( this is HouseFoundation && y < (mcl.Height-1) && p.Z >= this.Z )
				return true;

			Tile[] tiles = mcl.Tiles[x][y];

			for ( int j = 0; j < tiles.Length; ++j )
			{
				Tile tile = tiles[j];
				int id = tile.ID & 0x3FFF;
				ItemData data = TileData.ItemTable[id];

				// Slanted roofs do not count; they overhang blocking south and east sides of the multi
				if ( (data.Flags & TileFlag.Roof) != 0 )
					continue;

				// Signs and signposts are not considered part of the multi
				if ( (id >= 0xB95 && id <= 0xC0E) || (id >= 0xC43 && id <= 0xC44) )
					continue;

				int tileZ = tile.Z + this.Z;

				if ( p.Z == tileZ || (p.Z + height) > tileZ )
					return true;
			}

			return false;
		}
And add this code:
Code:
public virtual bool IsInside(Point3D p, int height)
        {
            Sector sector = Map.GetSector(p);

            foreach (BaseMulti m in sector.Multis)
            {
                if (m != this
                && m is Knives.TownHouses.TownHouse
                && ((Knives.TownHouses.TownHouse)m).ForSaleSign is Knives.TownHouses.RentalContract
                && ((Knives.TownHouses.TownHouse)m).IsInside(p, height))
                    return false;
            }

            return Region.Contains(p);
        }

?????????

excuse my terible english
qwerty84 is offline   Reply With Quote
Old 04-25-2007, 10:29 AM   #78 (permalink)
Forum Expert
 
kmwill23's Avatar
 
Join Date: Feb 2003
Location: Phoenix, Arizona
Age: 31
Posts: 1,118
Send a message via MSN to kmwill23
Default

I know exactly what you are asking =)

That part bugs me too. It's been a while since I've looked at it, maybe I'll find something new.
__________________
"Morality is a lonely path." - Me
kmwill23 is offline   Reply With Quote
Old 05-06-2007, 01:17 PM   #79 (permalink)
Newbie
 
Dr. Phillie's Avatar
 
Join Date: Apr 2007
Age: 22
Posts: 77
Default

Leave house/ban bug, we need patch for this, NOW!
Dr. Phillie is offline   Reply With Quote
Old 05-06-2007, 02:24 PM   #80 (permalink)
Forum Expert
 
Join Date: Oct 2002
Age: 45
Posts: 4,370
Default

Well. That was rude.
__________________
HellRazor is offline   Reply With Quote
Old 05-06-2007, 02:46 PM   #81 (permalink)
Newbie
 
Dr. Phillie's Avatar
 
Join Date: Apr 2007
Age: 22
Posts: 77
Default

Dont take it too serious
Dr. Phillie is offline   Reply With Quote
Old 05-06-2007, 03:00 PM   #82 (permalink)
Forum Expert
 
Join Date: Oct 2002
Age: 45
Posts: 4,370
Default

But the internet is SERIOUS BUSINESS! :P

Throw a smiley on the end next time. Otherwise the joke gets lost in the translation.
__________________
HellRazor is offline   Reply With Quote
Old 05-06-2007, 03:47 PM   #83 (permalink)
Newbie
 
Dr. Phillie's Avatar
 
Join Date: Apr 2007
Age: 22
Posts: 77
Default

Okey papa bear
Dr. Phillie is offline   Reply With Quote
Old 05-06-2007, 07:54 PM   #84 (permalink)
Forum Expert
 
kmwill23's Avatar
 
Join Date: Feb 2003
Location: Phoenix, Arizona
Age: 31
Posts: 1,118
Send a message via MSN to kmwill23
Default

Once I get around to uploading the new version, the fix is in there =) RL is dragging me along atm!
__________________
"Morality is a lonely path." - Me
kmwill23 is offline   Reply With Quote
Old 05-07-2007, 11:37 AM   #85 (permalink)
Newbie
 
Dr. Phillie's Avatar
 
Join Date: Apr 2007
Age: 22
Posts: 77
Default

Any plans when you will release the 2.1?
My players are getting angry about that bug :P
Any way of some small Hotfix for that?
Dr. Phillie is offline   Reply With Quote
Old 05-14-2007, 12:48 AM   #86 (permalink)
Forum Expert
 
kmwill23's Avatar
 
Join Date: Feb 2003
Location: Phoenix, Arizona
Age: 31
Posts: 1,118
Send a message via MSN to kmwill23
Default

Update!

It's a bit late, but here you go =) Let me know if there are any problems!
__________________
"Morality is a lonely path." - Me
kmwill23 is offline   Reply With Quote
Old 05-14-2007, 09:23 AM   #87 (permalink)
Newbie
 
Dr. Phillie's Avatar
 
Join Date: Apr 2007
Age: 22
Posts: 77
Default

Code:
Errors:
 + custom/Town Houses v2.01/Misc/GumpResponse.cs:
    CS0266: Line 28: Cannot implicitly convert type 'System.Collections.Generic.
IEnumerable<Server.Gumps.Gump>' to 'System.Collections.Generic.List<Server.Gumps
.Gump>'. An explicit conversion exists (are you missing a cast?)
Dr. Phillie is offline   Reply With Quote
Old 05-14-2007, 03:40 PM   #88 (permalink)
Forum Expert
 
kmwill23's Avatar
 
Join Date: Feb 2003
Location: Phoenix, Arizona
Age: 31
Posts: 1,118
Send a message via MSN to kmwill23
Default

You are using RunUO 1.0?

Thanks for finding this, I will update it immediately.

~

Addition:

Try this file and let me know =)
__________________
"Morality is a lonely path." - Me

Last edited by kmwill23; 05-14-2007 at 10:10 PM.
kmwill23 is offline   Reply With Quote
Old 05-14-2007, 04:29 PM   #89 (permalink)
Newbie
 
Dr. Phillie's Avatar
 
Join Date: Apr 2007
Age: 22
Posts: 77
Default

Code:
Errors:
 + custom/Town Houses v2.01/Misc/GumpResponse.cs:
    CS1502: Line 28: The best overloaded method match for 'System.Collections.Ar
rayList.ArrayList(int)' has some invalid arguments
    CS1503: Line 28: Argument '1': cannot convert from 'System.Collections.Gener
ic.IEnumerable<Server.Gumps.Gump>' to 'int'
RunUO 2 svn
Dr. Phillie is offline   Reply With Quote
Old 05-14-2007, 04:31 PM   #90 (permalink)
Forum Expert
 
Join Date: Feb 2003
Location: East Coast USA
Posts: 1,364
Default

With RunUO 2.0 SVN I got this error with the new Townhouses download:

Errors:
+ _Custom/Packages/Knives/Town Houses v2.01/Misc/GumpResponse.cs:
CS0266: Line 28: Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<Server.Gum ps.Gump>' to 'System.Collections.Generic.List<Server.Gumps.Gump >'. An explicit conversion exists (are you missing a cast?)

I tried that updated GumpResponse.cs and got:

Errors:
+ _Custom/Packages/Knives/Town Houses v2.01/Misc/GumpResponse.cs:
CS1502: Line 28: The best overloaded method match for 'System.Collections.ArrayList.ArrayList(int)' has some invalid arguments
CS1503: Line 28: Argument '1': cannot convert from System.Collections.Generic.IEnumerable<Server.Gump s.Gump>' to 'int'
__________________
the-retelling.org : scripts and tech demo
Alari is offline   Reply With Quote
Old 05-14-2007, 10:09 PM   #91 (permalink)
Forum Expert
 
kmwill23's Avatar
 
Join Date: Feb 2003
Location: Phoenix, Arizona
Age: 31
Posts: 1,118
Send a message via MSN to kmwill23
Default

That was me assuming RunUO 1.0 =)

Try this new one. Removing the one that didn't work!
Attached Files
File Type: cs GumpResponse.cs (6.0 KB, 157 views)
__________________
"Morality is a lonely path." - Me
kmwill23 is offline   Reply With Quote
Old 05-15-2007, 02:03 AM   #92 (permalink)
Forum Expert
 
Join Date: Feb 2003
Location: East Coast USA
Posts: 1,364
Default

It compiles. ^.^ (Haven't tested it yet, but I'm sure it works) Thanks!
__________________
the-retelling.org : scripts and tech demo
Alari is offline   Reply With Quote
Old 06-02-2007, 07:18 AM   #93 (permalink)
Forum Newbie
 
Zorteper's Avatar
 
Join Date: Mar 2006
Posts: 2
Exclamation 'VersionHouse' NameSpace

I get this Error when Compiling :
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
 + Custom/Town Houses v2.01/Items/TownHouse.cs:
    CS0246: Line 10: The type or namespace name 'VersionHouse' could not be found (are you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
The line @ that spot is :
Code:
	public class TownHouse : VersionHouse
Can't seem to find a Solution for this one... Please advice
Zorteper is offline   Reply With Quote
Old 06-02-2007, 08:32 AM   #94 (permalink)
Forum Novice
 
Join Date: Oct 2003
Age: 27
Posts: 154
Send a message via ICQ to Neouni
Default

RUOVersion.cs defines it,
you probably didn't install it properly
Neouni is offline   Reply With Quote
Old 06-02-2007, 08:49 AM   #95 (permalink)
Forum Newbie
 
Zorteper's Avatar
 
Join Date: Mar 2006
Posts: 2
Default

Quote:
Originally Posted by Neouni View Post
RUOVersion.cs defines it,
you probably didn't install it properly
d'oh ... That did the trick

I misread... sorry.. I thought you only needed RUOVersion.cs if you ran on the 1.0 Core... Thanks alot, Neouni
Zorteper is offline   Reply With Quote
Old 06-05-2007, 12:10 PM   #96 (permalink)
Newbie
 
moonrune's Avatar
 
Join Date: Oct 2006
Posts: 55
Default

Thanks, this town house system is really wonderful and bring a new live in the shard cities.
moonrune is offline   Reply With Quote
Old 06-16-2007, 08:27 PM   #97 (permalink)
Newbie
 
Gaia the Goddess's Avatar
 
Join Date: Sep 2006
Location: Alabama
Age: 29
Posts: 38
Send a message via AIM to Gaia the Goddess
Default

When a player demolished, the server crashes and I get this error:

Any fix for this?
Code:
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Server.Map.RemoveMulti(BaseMulti m, Sector start, Sector end)
   at Server.Map.OnLeave(Item item)
   at Server.Item.Delete()
   at Server.Gumps.HouseDemolishGump.OnResponse(NetState state, 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 in advanced !!
Gaia the Goddess is offline   Reply With Quote
Old 06-17-2007, 02:16 AM   #98 (permalink)
Forum Expert
 
kmwill23's Avatar
 
Join Date: Feb 2003
Location: Phoenix, Arizona
Age: 31
Posts: 1,118
Send a message via MSN to kmwill23
Default

This crash is caused by a RunUO 2.0 bug. If you are able to download and compile the most recent SVN, the problem is corrected.
__________________
"Morality is a lonely path." - Me
kmwill23 is offline   Reply With Quote
Old 06-23-2007, 09:56 PM   #99 (permalink)
Newbie
 
Rhionnan's Avatar
 
Join Date: Feb 2004
Location: Canada
Age: 43
Posts: 68
Default

What files on the SVN that thing just confuses the heck out of me.
Rhionnan is offline   Reply With Quote
Old 06-23-2007, 10:29 PM   #100 (permalink)
Newbie
 
Drachnyen's Avatar
 
Join Date: Jun 2007
Location: Sleeping In Your Bed
Age: 18
Posts: 50
Send a message via MSN to Drachnyen
Default

If I was gonna give you a grade on all your scripts i would give you a
A++++++++++ Because Your Scripts Are Allways great man
Drachnyen 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