View Single Post
  #8  
Old 11-27-2006, 10:51 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Twinny View Post
Not sure what they are.. all I want to have is the ability for any to script to write to an offline player.

For example,
PHP Code:
function onPlayerLogout(pl)
{
  
pl.clientr.logout getTime();
  
pl._mudClear(); //Removes all clientr. beginning with 'mud'


It would be the same thing to clear them the moment they logged back on. Clearing their strings while they're offline does you no good, since no changes will be effected until the next time they log on anyways.

I don't really see why you would need to write to offline players, when you can do the same thing the moment they log on.

Have an NPC check to see if the player is online, and if they log off, then have it save to a DB or something and then have the DB be read when a player logs on and if their account is in the DB, then the strings would clear.


There are several ways you can do such a thing, or rather, create the same effect.