Jump to content
Sign in to follow this  
pan

Broadcast Alarm

Recommended Posts

File Name: Broadcast Alarm

File Submitter: pan

File Submitted: 25 Dec 2013

File Category: Plugins

 

@balarm <color> <type> <file name> <message>

Type

0 - Global message

1 - Local message

 

File name

It's a file that is inside your grfwavfile.wav

WARNING! If nonexistent file is put all hexeds that receive this broadcast will crash!

 

Color

Uses the same configuration as '@kamic'

 

Source-code:

http://pastebin.com/TFS0GCDs v1.0

http://pastebin.com/idsFvmhJ v1.1

For more information see: http://herc.ws/board/topic/3525-broadcast-with-sound-alarm/

 

Click here to download this file

Share this post


Link to post
Share on other sites

Nice release.

 

I test it, It only can balarm one color. Type 0.

 

It's all black font when use other type, just like 1~9 or 00ff00.

Share this post


Link to post
Share on other sites

As far as I'm aware of it's working exactly the same way that @kamic is working, I don't know all colors but if you use 90 for instance it's dark blue

Share this post


Link to post
Share on other sites

post-1086-0-10906000-1388164999_thumb.jpg

 

like this, use color type 1~N, is all black. 

Use RGB like 00ff99, Tip skill errors.

 

And another question.

How to send long message with space in it. 

Edited by rosfus

Share this post


Link to post
Share on other sites

It's now can use the long messages. Nice job!

 

I think you can make it to a script command. It will be more useful.

 

Thanks for share. Happy new year!

Share this post


Link to post
Share on other sites

@kami <message>

@kamib <message>

@kamic <color> <message>

@lkami <message>

 

Announces a message without a name prefix.

@kami will broadcast in yellow text.

@kamib will broadcast in blue text.

@kamic will broadcast in the specified color (a hexadecimal value).

@lkami will broadcast on the attached character's current map.

 

Example:

@kamic FF0000 This message is in red.

 

On my server(running a 6 month outdated Hercules), kamic works fine. When I tried balarm on my test server with a fresh install, I tried to use FF0000 as a color, and it wouldn't work. Surprisingly, when I tried to do kamic, it also didn't work. Has the color system for broadcast colors changed? The doc file gives that exemple and it doesn't work.

Share this post


Link to post
Share on other sites

 

1>------ Build started: Project: balarm, Configuration: Debug Win32 ------
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppBuild.targets(299,5): warning MSB8004: Output Directory does not end with a trailing slash.  This build instance will add the slash as it is required to allow proper evaluation of the Output Directory.
1>  balarm.c
1>c:usersasusdesktopherculessrcpluginsbalarm.c(31): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:program files (x86)microsoft visual studio 10.0vcincludestdio.h(325) : see declaration of 'sscanf'
1>c:usersasusdesktopherculessrcpluginsbalarm.c(44): warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:program files (x86)microsoft visual studio 10.0vcincludestring.h(110) : see declaration of 'strcat'
1>     Creating library ..pluginsbalarm.lib and object ..pluginsbalarm.exp
1>LINK : fatal error LNK1561: entry point must be defined
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 

I get error when I try to Compile it :(

Share this post


Link to post
Share on other sites

Me compile fine, but show this error in emulator

 

[Warning]: HPM:plugin_load: failed to retrieve 'HPMDataCheckLen' for 'plugins/pl
ugin-balarm.dll', most likely not including HPMDataCheck.h, skipping...

 

how fix this?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.