Auto Join Script
Trying to make a list of players that I will always auto join weather it is player combat or just regular npc combat.
Problem I'm having is it creates the array it adds players names to the array, but once I rescue them it takes them out of the array. I'm not the best at java so I'm looking for a little assist. Thanks In advance. Code:
#var autojoin 0 |
Okay, I got it to work, if the player has no other augments in their name. If there is anything else in their name this won't work.
Code:
#var autojoin 0 |
Try stripping out everything but the name, after all the name is in White while the rest is cyan.
|
Quote:
I have been told 3 times to base it off the color of the name. I do not know how to do that. |
|
They're talking about writing a response (in JScript, rather than just UMC/JMC) based on the full string including the ANSI escape sequences.
When you write an action, you're working with the plain text, but the actual text data sent to your client includes escape sequences which change the text color. There's a list at http://ascii-table.com/ansi-escape-sequences.php |
Rar is there wa way to see the exact line with escapes in your client?
|
Quote:
#alias {capture}{#action {%0$$0%1}{#scr showString(%0$$0%1);#unaction {%0$$0%1}} So if I were looking for the full ANSI string for say, Caller clan chat, I could type "capture Caller:". The next time a string with "Caller:" appeared, it would send that line to the showString function. In the showString function, I would take the string passed to it, then do a simple search and replace of ASCII #27, which is the character used to initiate an escape sequence, to something readable (e.g. "<ESC>"). Then the function would spit that string back out for viewing. Since the escape char #27 was no longer present, the string would show with the code laid out - the color codes and such are treated as plain text since there's no esc char. (There are other concerns that pop up in practical usage - for example, you'll need to do more replaces if semicolons are your client command delimiter, since many codes are of the form <ESC>#;##m. The above is the main gist of the solution, though.) |
Thanks that should at least help him get the colour info to work with and might give me a few ideas too.
|
I know nothing about coding this stuff or anything. I know bellum uses nembot as do many of you guys. Is it possible ( or easier ) to make it into a 'profile script' of sorts via nembot versus straight jmc or umc?
|
All times are GMT. The time now is 01:54 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.