|
Post by bulldogg on Oct 27, 2008 16:40:05 GMT
if i want to send a message to all players in a certain system how can i do this with the current plugin system.
could i loop over each player, check what system there in and if there in the corresponding system send them the message? if so how?
any other ways?
BD
|
|
|
Post by Eagle on Oct 28, 2008 7:13:54 GMT
The upcoming FLAC release will offer you a way to loop over online players. You could then query each for the system they reside in and in their callback delegate you'd be able to send the proper message if the system matches the target system.
Alternative would be to maintain an internal dictionary with the savegame path (lower cased) as key and as value either the system that player resides in at present or a new class type you create containing that data and perhaps more you wish to store. You can initialize the list using the technique above (looping all players) and maintain it by listening to EnteredSystem, CharacterLoad, LogOut etc.
|
|
|
Post by bulldogg on Nov 21, 2008 13:54:58 GMT
whats the text format code for system chat?
|
|
|
Post by Eagle on Nov 21, 2008 16:00:44 GMT
If you download the latest version of the plugin example project, you'll find the color code in there along with a working example of system chat implemented as a command, for the trailing byte you'd use 0x00 which is the default text format in fl
|
|
|
Post by bulldogg on Nov 21, 2008 16:45:01 GMT
cheers
|
|