|
||
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#77 (permalink) |
|
Forum Novice
|
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
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;
}
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 |
|
|
|
|
|
#87 (permalink) |
|
Newbie
Join Date: Apr 2007
Age: 22
Posts: 77
|
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?)
|
|
|
|
|
|
#89 (permalink) |
|
Newbie
Join Date: Apr 2007
Age: 22
Posts: 77
|
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'
|
|
|
|
|
|
#90 (permalink) |
|
Forum Expert
Join Date: Feb 2003
Location: East Coast USA
Posts: 1,364
|
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 |
|
|
|
|
|
#93 (permalink) |
|
Forum Newbie
Join Date: Mar 2006
Posts: 2
|
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.
Code:
public class TownHouse : VersionHouse |
|
|
|
|
|
#97 (permalink) |
|
Newbie
|
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) |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|