Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > NPC Server
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
__________________
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:05 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.