|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) | |
|
Forum Novice
|
Error:
Quote:
Code:
public override void OnResponse(NetState sender, RelayInfo info)
{
Mobile from = sender.Mobile;
if (info.ButtonID >= 1)
{
BaseAddon addon = new CarpetAddon(info.ButtonID - 1, m_Width, m_Height);
Server.Spells.SpellHelper.GetSurfaceTop(ref m_P3D);
List<Server.Multis.BaseHouse> houses = null;
AddonFitResult res = addon.CouldFit(m_P3D, m_Map, from, ref houses);
if (res == AddonFitResult.Valid)
addon.MoveToWorld(new Point3D(m_P3D), m_Map);
else if (res == AddonFitResult.Blocked)
from.SendLocalizedMessage(500269); // You cannot build that there.
else if (res == AddonFitResult.NotInHouse)
from.SendLocalizedMessage(500274); // You can only place this in a house that you own!
else if (res == AddonFitResult.DoorsNotClosed)
from.SendMessage("All doors must be closed!");
if (res == AddonFitResult.Valid)
{
m_Deed.Delete();
if (houses != null)
{
foreach (Server.Multis.BaseHouse h in houses)
h.Addons.Add(addon);
from.SendGump(new VariableCarpetPlacedGump(m_Deed));
}
}
else
{
addon.Delete();
}
}
}
}
__________________
|
|
|
|
|
|
|
#2 (permalink) |
|
Forum Novice
|
i suppose the problem is that you are passing a list as a ref and not a single object, so the compiler says you that he cannot convert a list of object to a single object(ehich is the parameter needed)...
__________________
------------------------------------------------------- |
|
|
|
|
|
#4 (permalink) |
|
Forum Novice
Join Date: Jul 2005
Posts: 138
|
nvm wrong script location
__________________
~Visionary Kingdom~ Shard Owner Scripts: Player Vendor Search Class Titles Well Addons Last edited by Yiffi; 01-30-2008 at 04:33 PM. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|