Valhalla Legends Archive

Programming => Battle.net Bot Development => Battle.net Bot Development References => Topic started by: CrAz3D on May 13, 2003, 04:10 PM

Title: Creating a Channel Protection Feature
Post by: CrAz3D on May 13, 2003, 04:10 PM
I am working on my channel rpotection & I am able to check the safelist when people join, but when it is first enabled I am confusing on how to go about checking everyone that is already in the channel.  Might some one be able to help?
Title: Re:Channel protection
Post by: Grok on May 13, 2003, 05:12 PM
pseudocode


on protect-enable:
  for each person in userlist
     getAction = doJoinEvaluate( person )
     if getAction is NULL
     else
         person.perform getAction;
  get next person


Hope this helps.
Title: Re:Channel protection
Post by: CrAz3D on May 14, 2003, 04:22 PM
Thank you very much, that should help me quite a bit.