|
||
|
|||||||
| RunUO Post Archive The Archvie |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Hax Your Face.
Join Date: Jun 2004
Age: 21
Posts: 820
|
Just something that came to mind when reading this post:
Lag spike when users enter dungeons Basically what I mean is for the current primary base classes ( namely Mobile and Item class ), have something such as this.. public virtual AccessLevel AccessToAdd{ get{ return AccessLevel.Administrator } } and then in the Add command have it read the AccessToAdd prop of the object it's trying to create. This way there can be a dynamic way of changing requirement to add things, and gives administrators more freedom to let their lower-access staff still be of sufficient use, while preventing abuse. |
|
|
|
|
|
#2 (permalink) |
|
Join Date: Oct 2002
Age: 23
Posts: 4,689
|
Even better... make another attribute (since the Constructable attribute is in the core).. and have the accesslevel be a parameter of it. Then read it like you do for properties.
If its implimented in a release.. then they can make it a parameter of the constructable attribute obviously. |
|
|
|
|
|
#4 (permalink) |
|
Hax Your Face.
Join Date: Jun 2004
Age: 21
Posts: 820
|
I'm not really familiar with attributes yet, but --
Outkast, which 'version' of the solution? I know that the way I suggested can be added to, say, BaseCreature ( because if memory serves any mobile you'll be creating in-game is a derived class of BC ), but this wouldn't really be possible for Items. Many items stem as direct derivatives from the Item class, rather than with some mediator outside of the core. |
|
|
|
|
|
#5 (permalink) | |
|
Forum Expert
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
|
Quote:
You just add the attributes on the items you want to restrict. Your original suggestion has the same problem that I think you are eluding to. In order to change restrictions, you'd need to override it for a base class for every item. With attributes you'd have to do the same thing, but can be implemented without Core changes. |
|
|
|
|
|
|
#6 (permalink) | |
|
Hax Your Face.
Join Date: Jun 2004
Age: 21
Posts: 820
|
Firstly, I should have been a little more clear when saying:
Quote:
Anyway, I'm drifting: I pretty much see your point. Realistically someone isn't going to restrict that many items, and even if they do they'll have to include a seperate override for each. *Shrugs* I still think it's a viable idea, though. ![]() |
|
|
|
|
|
|
#7 (permalink) |
|
Join Date: Oct 2002
Age: 23
Posts: 4,689
|
It would be great if you implimented it into BaseCreature, and had a BaseItem class to impliment there... then you could override for specific items. Then again... you could just set the base accesslevel needed to add npcs/items in the add command, then have the attributes specific for the items/mobiles you want to restrict. Would be alot easier that way.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|