- ServUO Version
- Publish Unknown
- Ultima Expansion
- Mondain's Legacy
My shard is using RunUO Version 2.1, Build 6905.732
Core: Running on .NET Framework Version 4.0.30319
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I have been working on this off and on for a week now and have no more ideas if/how I can make it work.
I am trying to use 'OnSingleClick' to give house owners the ability to change an item's ItemID.
The reason I want to do this is because I already have 'OnDoubleClick' doing something different.
Here are my latest Errors:
and . . here is my 'OnSingleClick' section.
Is what I am trying even possible using 'OnSingleClick'? I so, can anyone tell me what I am doing wrong?
Would really appreciate help with this one.
Many Thanks
Core: Running on .NET Framework Version 4.0.30319
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I have been working on this off and on for a week now and have no more ideas if/how I can make it work.
I am trying to use 'OnSingleClick' to give house owners the ability to change an item's ItemID.
The reason I want to do this is because I already have 'OnDoubleClick' doing something different.
Here are my latest Errors:
Code:
Errors:
CS0201: Line 449: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement
CS0201: Line 456: Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement
and . . here is my 'OnSingleClick' section.
Code:
public virtual void OnSingleClick( Mobile from, Item item )
{
BaseHouse house = BaseHouse.FindHouseAt( from );
if ( house != null && house.IsOwner( from ) )
{
if ( Deleted || !from.CanSee( this ) )
return;
NetState ns = from.NetState;
if ( ns != null )
{
// Regular east facing bookcase
if ( this.ItemID == 0xA99 )
{
this.ItemID == 0xC15;
from.SendMessage("You change the style to a ruined bookcase.");
return;
}
// Regular east facing bookcase
else if ( this.ItemID == 0xC15 )
{
this.ItemID == 0xA99;
from.SendMessage("You change the style to a regular bookcase.");
return;
}
}
}
}
Is what I am trying even possible using 'OnSingleClick'? I so, can anyone tell me what I am doing wrong?
Would really appreciate help with this one.
Many Thanks