I'm trying to develop an admin code, but have one problem before I even start.
How can I set it so that I can give MY mob a set of verbs that no one else can access, and then how can I make a verb that will give permanent or temporary access to another mob?
ID:157590
Feb 7 2010, 1:07 am
|
|
Feb 7 2010, 5:40 am
|
|
In response to Blafblabla
|
|
Blafblabla wrote:
> That admin_check() verb is completely useless. The user shouldn't receive these verbs at all if they're not administration. It's essentially going client/verb/Hey_You() { src << "You're logged into the game! ^.^" } Also, you're far better off using a list to define staff members, as a game will at some stage, require more than one. |
SRI wrote:
How can I set it so that I can give MY mob a set of verbs that no one else can access To do something like this, you're best off using a list for staff member ckeys, and a datum to store the verbs to add to the user client on New(). As a basic example of what to do, you can do this: /* Just replace the ckeys in the admin list with the ckeys of the administration team you have. Things you'll need to know: client/New() client.ckey Lists in operator += operator typesof() client.verbs datum. All of that should explain what my snippet does and help you to expand it. It might look like a lot of reading, but it's not really, and all sums up to fairly basic stuff you'll need to successfully develop a game. Best to learn this stuff now rather than later. |
In response to Tiberath
|
|
Great, this helped a lot.
Thanks :) |