VIP chat?

Releases and bugs in here...
yakko
Posts: 258
Joined: 2003-01-27 06:04

VIP chat?

Post by yakko » 2003-02-18 15:16

Is there some chat script like the Opchat that'll allow VIPs and Ops to chat? I tried adding another

Code: Select all

   <OpChat Enabled="1">
      <MinLevel>2</MinLevel>
      <Nick>-=Operators=-</Nick>
   </OpChat>

but with a nick but that didn't work, but I didn't expect it too. Any ideas?

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 14:32

Post by Sedulus » 2003-02-18 17:06

yup,
something that involves lua, dchpp.clientPrivateMessage and dchpp.foreach( some_function, vip_level )
read the LuaScript.txt and start writing :)
(note the bug in clientPrivateMessage)
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

yakko
Posts: 258
Joined: 2003-01-27 06:04

Post by yakko » 2003-02-18 17:13

bah, i'm not much of a programmer so a lot of it is above my head, but I'll give it a shot i guess. It's just like writing batch files, right? :)

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 14:32

Post by Sedulus » 2003-02-18 17:27

suggestion:
use a good editor with syntax coloring.
I use vim myself, but there are others, see: http://lua.bcs-solutions.de/thread.php? ... &boardid=5
and of course you'll need the lua documentation: http://www.wraith.u-net.com/lua/ref5/man/ (which is the only page I could find that discusses lua5)
and you'll learn a lot by looking at the other scripts in the scripts dir
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

Who is online

Users browsing this forum: Google [Bot] and 0 guests