View Single Post
Old 09-08-2004, 11:58 AM   #1 (permalink)
lincy
Forum Novice
 
Join Date: Jul 2003
Posts: 111
Talking AccountAge class (utility) Ver 0.1

Here is the AccountAge class I use at my shard to check some special item only use-able by older player.

Install :

just drop this cs into any your customize script folder.


How to use :

at any item cs file. include this line :

Code:
using Server.Misc;
and then check the age in your item onequip() or doubleclick() .... etc.

Code:
if (AccountAge.CanUseItem(oMobile,nMinimumRewardLevel))
    {
         return true; (or sendgump ... etc)
    }
else
     {
          return false; (or  somethng ....)
     }
the nMinimumRewardLevel was base your system's reward setting. so, It's easy to fit your shard.

Enjoy ....
Attached Files
File Type: cs AccountAge.cs (1.5 KB, 27 views)
lincy is offline   Reply With Quote