Nytewyrm
Member
So i have been trying to figure out how to get some addon's to work with my shard, however i have ran into 2 of them that have the same exact problem. For my playermobile.cs file. I am no good at scripting i did add a () to it which made it sorta better so at the bottom i posted the whole script and the part where i think my problem is the problem lines are 1134, 1138 and 3490
S0506: Line 1134: 'Server.Mobiles.PlayerMobile.Hidden.get': cannot override inherited member 'Server.Mobile.Hidden.get' because it is not marked virtual,abstract, or override
CS0506: Line 1138: 'Server.Mobiles.PlayerMobile.Hidden.set': cannot override inherited member 'Server.Mobile.Hidden.set' because it is not marked virtual,abstract, or override
This is where i think the problem is
I have also attached my whole playermobile.cs file if anyone wants to see if they can figure out this problem i am no script master and can not so far when i add in the () it changes the output of the code.
S0506: Line 1134: 'Server.Mobiles.PlayerMobile.Hidden.get': cannot override inherited member 'Server.Mobile.Hidden.get' because it is not marked virtual,abstract, or override
CS0506: Line 1138: 'Server.Mobiles.PlayerMobile.Hidden.set': cannot override inherited member 'Server.Mobile.Hidden.set' because it is not marked virtual,abstract, or override
This is where i think the problem is
Code:
public override bool Hidden
{
get
{
return base.Hidden;
}
set
{
base.Hidden = value;
RemoveBuff( BuffIcon.Invisibility ); //Always remove, default to the hiding icon EXCEPT in the invis spell where it's explicitly set
if( !Hidden )
{
RemoveBuff( BuffIcon.HidingAndOrStealth );
}
else //if( !InvisibilitySpell.HasTimer( this ) )
{
BuffInfo.AddBuff( this, new BuffInfo( BuffIcon.HidingAndOrStealth, 1075655 ) ); //Hidden/Stealthing & You Are Hidden
}
}
}
I have also attached my whole playermobile.cs file if anyone wants to see if they can figure out this problem i am no script master and can not so far when i add in the () it changes the output of the code.
Attachments
Last edited: