The online racing simulator
#1 - Krayy
[CODE] TeamChat Lapper script
Hi all,

Here's v1.0.0 of a module that had it's genesis in a discussion in the Config thread, being able to send a chat message to everyone in your team. To use it just save this file in your includes directory, rename it to TeamChat.lpr then add this module name to your addonsused.lpr file.

To use it in game, make sure that you and the other members of your team have their in game Name set with their team name in square brackets (this can be changed in the module) i.e. Krayy[LFSNZ]. Then when you type "!tc <msg>" everyone who has the same team name will see the message and no one else.

Any bugs, PM me or post here so I can fix it up.
Attached files
teamchat.lpr.101.txt - 2.5 KB - 342 views
#2 - Krayy
Updated code to ver 1.0.1 to fix a problem where the brackets are reversed i.e. Krayy]LFSNZ[ will now give Team warning rather than crash Lapper ;-)

NOTE: The code matches the FIRST occurrences of each bracket, so having your name as "Krayy[[lfsnz]" wil show team as [LFSNZ. I have to assume that people are not that stupid as to use heaps of square brackets in their name, unless that are l33t of course.

FGED GREDG RDFGDR GSFDG