joshw
Sorceror
Ok working on a new boat sinking system have one problem
Now here is the script not sure cant figure this one out
Code:
RunUO - [https://github.com/runuo/] Version 2.5.0.24991
Core: Running on .NET Framework Version 4.0.30319
Core: Optimizing for 2 64-bit processors
Core: Server garbage collection mode enabled
RandomImpl: CSPRandom (Software)
Scripts: Compiling C# scripts...failed (1 errors, 72 warnings)
Errors:
+ Multis/Boats/High Seas/BaseGalleon.cs:
CS1502: Line 184: The best overloaded method match for 'Server.Map.GetMobile
sInRange(Server.Point3D, int)' has some invalid arguments
CS1503: Line 184: Argument 2: cannot convert from 'Server.Point3D' to 'int'
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 void OnSink(bool secondPass)
{
IPooledEnumerable IPE = Map.GetMobilesInRange(Location,HoldOffset);
ArrayList list = new ArrayList();
foreach( Mobile m in IPE )
{
Console.WriteLine("Mobile = {0}", m);
list.Add(m);
}
IPE.Free();
foreach( Mobile m in list )
{
if( Contains(m.X,m.Y) )
Strandedness.EventSink_Login( new LoginEventArgs(m) );
}
list.Clear();
list = null;
IPE = null;
if( secondPass )
OnSink(false);
}