Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Getting information from offline characters

Getting information from offline characters

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Marowi   (65 posts)  Bio
Date Sun 04 Jul 2004 01:04 PM (UTC)
Message
I'd like to know how to do this for two main applications.

When you attempt to loadup characters with a higher trust than your own, you receive a message saying "DON'T disturb me" or something (I've already changed this). I'd like to be able to check for a character's trust while their file is offline, rather than loading it up and then quitting it.

I'm using a pseudo-bounty code that I created myself, and the cost of bounty is dependant on the character's level. At the moment, the character obviously has to be online.

For both of these reasons, and perhaps a number more that haven't come to mind at this time, I'd like to know if and/or how to get information such as top_level and trust from a character pfile without them being online.

Marowi
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #1 on Sun 04 Jul 2004 03:16 PM (UTC)

Amended on Sun 04 Jul 2004 05:11 PM (UTC) by Greven

Message
You could copy fread_char and just remove everything but top_level and trust, having it ignore everything else, then if that works, close the file, and start with a proper read in.

[EDIT]

Sorry, had to run to work. Anyways, to be more specific, you basically wanna set up a copy of fread_char with only the t case left, and a continue in the default, to ignore whatever else may be read in from the file. From there, you can return the higher of the two, and then compare to the invokes trust/top_level. Should you be in a circumstance in which its ok, then you can load up the full pfile.

You can also take a look here, see if this help you out at all:

http://forums.alsherok.net/index.php?showtopic=642

Hope that helps.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Dace K   Canada  (169 posts)  Bio
Date Reply #2 on Tue 06 Jul 2004 05:34 AM (UTC)
Message
Check out Samson's finger snippet at http://www.afkmud.com/downloads.php.

Excellent example of loading up offline chars to check their status.

ASJ Games - .Dimension 2, Resident Evil, and snippets - oh my!
http://asj.mudmagic.com

Drop by the area archives and find something for your mud. http://areaarchives.servegame.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,161 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.