ORPY

Member
ServUO Version
Publish 58
Ultima Expansion
Endless Journey
Trying to make a rune library in one of the buildings in New Haven. My issue is that other players can remove the runes from the runebooks I place. Is there away to avoid this? I went over the properties of the runebook, the level is set to Owner, but since it is not in an actual house, I think the system is not reading it properly.
 
Ok tonigh i will create a new runebook,just a copy without the rune removal option disabled.Now im at job sorry
 
Code:
        public bool IsOpen(Mobile toCheck)
        {
            if (toCheck is PlayerMobile pm && pm.HasGump(typeof(RunebookGump)))
            {
                return true;
            }

            return false;
        }

Can be refactored to :

Code:
        public bool IsOpen(Mobile toCheck)
        {
            return toCheck is PlayerMobile pm && pm.HasGump(typeof(RunebookGump));
        }

;)
 
Last edited:
Trying to make a rune library in one of the buildings in New Haven. My issue is that other players can remove the runes from the runebooks I place. Is there away to avoid this? I went over the properties of the runebook, the level is set to Owner, but since it is not in an actual house, I think the system is not reading it properly.
Why not just place a real house?
Or if you have the Townhouse system, use that to create a house region so you can secure the runebooks
 
Thanks all. @zerodowned I don't have a townhouse system. Sharing my files as I finally got it to work. :) Created a new item called Runebooklibrary, works same as a runebook, just does not allow anyone to remove the runes.

If anyone makes this code better, please share back. :)
 

Attachments

  • RunebookGump.cs
    34.7 KB · Views: 4
  • Runebook.cs
    36.2 KB · Views: 5

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back