ExX
Member
I have a script that lets players set up a custom biography of themselves and other players read it. I also have a robe that gives you a random name with the NameMod value. What I am trying to figure out is how do I check to see if a player has a NameMod? I have been searching RunUO and these forums and can't seem to find an example.
I tried
but got this error
I'm prolly completely way off base. basically if a player has the robe on with the fake name I don't want players to see there true biography revealing who they are. So I am trying to do a NameMod check but don't know what value to check for?
I tried
Code:
else if ( targeted is PlayerMobile && targeted.NameMod )
{
from.SendMessage("There's nothing special about it, it isn't worth looking at...");
}
but got this error
Code:
Errors:
+ Custom/Commands/Look.cs:
CS1061: Line 49: 'object' does not contain a definition for 'NameMod' and no
extension method 'NameMod' accepting a first argument of type 'object' could 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.
I'm prolly completely way off base. basically if a player has the robe on with the fake name I don't want players to see there true biography revealing who they are. So I am trying to do a NameMod check but don't know what value to check for?