Thread: disable sendpm
View Single Post
  #21  
Old 09-15-2002, 11:29 AM
bigkow44 bigkow44 is offline
Registered User
bigkow44's Avatar
Join Date: Dec 2001
Location: Inside my head.
Posts: 610
bigkow44 is on a distinguished road
Quote:
Originally posted by Torankusu
Just have it remove and add flags.
Like:
NPC Code:

if (actionplayeronline){
if (!hasread1){
sendpm blah;
set hasread1;
}
}



And then later check for stuff like:
NPC Code:

if (actionplayeronline)
if (hasread1 && !hasread2){
unset hasread1;
sendpm message;
set hasread2;
}
}



But, you might have to unset every old flag every time, if you want to take up less space.

Your method might work, I didn't put much thought into doing it that way though. If you wish, I'll try to help you do that way.
if (!hasreadpm1 and 2)
and so on is bad because what if the player has missed a few news posts? A string would be better. Muuuch better
__________________