[release] CrazyText v1.4 {UPDATE} |
Author: |
Message: |
skyserpent
Junior Member
Bacon
Posts: 96
32 / / –
Joined: Aug 2006
|
O.P. RE: [release] CrazyText v0.2
can anyone help with why this code isnt working??
code:
code: var ScriptEnabled = false;
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
if(Message == "ctstart!") ScriptEnabled = true;
if(Message == "ctstop!") ScriptEnabled = false;
}
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
if(ScriptEnabled) {
Message = Message.replace(/a/gi,"α");
Message = Message.replace(/b/gi,"в");
Message = Message.replace(/c/gi,"¢");
Message = Message.replace(/d/gi,"∂");
Message = Message.replace(/e/gi,"є");
Message = Message.replace(/f/gi,"ƒ");
Message = Message.replace(/h/gi,"н");
Message = Message.replace(/i/gi,"ι");
Message = Message.replace(/j/gi,"נ");
Message = Message.replace(/k/gi,"к");
Message = Message.replace(/l/gi,"ℓ");
Message = Message.replace(/m/gi,"м");
Message = Message.replace(/n/gi,"η");
Message = Message.replace(/o/gi,"σ");
Message = Message.replace(/p/gi,"ρ");
Message = Message.replace(/r/gi,"я");
Message = Message.replace(/t/gi,"т");
Message = Message.replace(/u/gi,"υ");
Message = Message.replace(/v/gi,"ν");
Message = Message.replace(/w/gi,"ω");
Message = Message.replace(/x/gi,"χ");
Message = Message.replace(/y/gi,"у");
}
}
|
|
09-18-2006 08:46 PM |
|
|
NanaFreak
Scripting Contest Winner
Posts: 1476 Reputation: 53
32 / /
Joined: Jul 2006
|
RE: [release] CrazyText v0.2
it lets / commands work
|
|
09-18-2006 08:53 PM |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: [release] CrazyText v0.2
quote: Originally posted by skyserpent
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
if(Message == "ctstart!") ScriptEnabled = true;
if(Message == "ctstop!") ScriptEnabled = false;
}
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
Because you are calling the same function twice.
Attachment: CrazyText_v0.2.plsc (1.26 KB)
This file has been downloaded 421 time(s).
|
|
09-18-2006 09:03 PM |
|
|
skyserpent
Junior Member
Bacon
Posts: 96
32 / / –
Joined: Aug 2006
|
O.P. RE: RE: [release] CrazyText v0.2
quote: Originally posted by SonicSpam
1337
Good job
edit: add a option to [enable/disable] the 'font' without actually stopping the script
DONE!
quote: Originally posted by Chris4
BUG
You can't do any "/" commands
FIXED!
thanks matty for helping
This post was edited on 09-18-2006 at 09:16 PM by skyserpent.
|
|
09-18-2006 09:12 PM |
|
|
Chris4
Elite Member
Posts: 4461 Reputation: 84
33 / /
Joined: Dec 2004
|
RE: RE: RE: [release] CrazyText v0.2
quote: Originally posted by skyserpent
quote: Originally posted by Chris4
BUG
You can't do any "/" commands
FIXED!
thanks matty for helping
Sure?
I can't get it working. I've got v0.3 ?
Meh, it was because I still had v0.2 running aswell. So I removed that, then v0.3 wasn't working. I removed it and added it again, won't work
This post was edited on 09-18-2006 at 11:14 PM by Chris4.
|
|
09-18-2006 11:12 PM |
|
|
joeklc
New Member
Posts: 1
46 / / –
Joined: Sep 2006
|
RE: [release] CrazyText v0.3
can anyone show some tutorial ?
i really donno how it work de
This post was edited on 09-20-2006 at 12:06 PM by joeklc.
|
|
09-20-2006 12:04 PM |
|
|
skyserpent
Junior Member
Bacon
Posts: 96
32 / / –
Joined: Aug 2006
|
O.P. RE: [release] CrazyText v0.3
quote: Originally posted by skyserpent
Instructions: Make sure the script is enabled in script preference menu then to start it up send "ctstart!" (without quotes) to a random contact. To stop the script send "ctstop!" (without quotes) to a random contact.
AND... the GUI is nearly done
preview:
still no bug fixes for the web links and emoticons yet though any help?
This post was edited on 09-20-2006 at 04:23 PM by skyserpent.
|
|
09-20-2006 03:12 PM |
|
|
Menthix
forum admin
Posts: 5537 Reputation: 102
40 / /
Joined: Mar 2002
|
RE: [release] CrazyText v0.3
Two suggestions:
- Instead of regular messages ("ctstart!" and "ctstop!"), use Plus! commands ("/ctstart" and "/ctstop"). Proper Plus! commands are easier to use since they appear in the Plus! command helper.
- Make at least the deault emoticons parsable. Right now when I type " " the "p" gets changed so it wont display the emoticon.
|
|
09-22-2006 04:08 PM |
|
|
skyserpent
Junior Member
Bacon
Posts: 96
32 / / –
Joined: Aug 2006
|
O.P. RE: [release] CrazyText v0.3
ok thanks for the suggestions... but do you know how to make the default emoticons parsable?? does anyone?
|
|
09-22-2006 04:10 PM |
|
|
Matti
Elite Member
Script Developer and Helper
Posts: 1646 Reputation: 39
32 / /
Joined: Apr 2004
|
RE: [release] CrazyText v0.3
code: Original from the Timezone script
var EmoCI = /(:((-?(\)|D|>|O|P|\(|<|@|S|\$|\||\[)|-(\*|#))|'\()|;-?\)|\([A-IK-PRTUW-Z068@&{}#%*~^]\))/i
var EmoCS = /(8(o\||-\))|<:o\)|\+o\(|\((brb|pi|\|\||sn|bah|tu|pl|ip|li|st|um|co|mp|ap|au|so|ci|yn|h5|xx|mo)\))/
if(EmoCI.test(Message) || EmoCS.test(Message)) {
//There are emoticons in the message
//Here you will have to find a way to not replace emoticons, good luck!
} else {
//There are no emoticons in the message
}
This post was edited on 09-22-2006 at 04:26 PM by Matti.
|
|
09-22-2006 04:26 PM |
|
|
Pages: (7):
« First
«
1
[ 2 ]
3
4
5
6
»
Last »
|
|