O.P. Another Little Problem! For u no problem!
Hey,
i have already 2 scripts who tell the ppl random 25 sentences automatically when i type /sc1 and /sc2 that are the 2 scripts for conversations... Example: I type with my best friend and type /sc1 then i press the enter button and the script replace it with a random sentence from my script....
now thats the problem ....i wanted to do a third script that when i type for exemple /both that he replaces this with either /sc1 or /sc2 ... i have made such a script... he also replaces and types but then when i use this script ... he only types /sc1 or /sc2 and sends it .... not even replace it ... (u know? ^^) then when i would type with my fingers the /sc1 or /sc2 ... its as normal (replaced through random sentences...)
so i ask u why its not working?
my script for the /both is:
function OnEvent_ChatWndSendMessage(ChatWnd,Message){
var rn_txt = new Array();
rn_txt[1] = "hmmm...";
rn_txt[2] = "/sc1";
rn_txt[3] = "Hey This is a Bot ";
rn_txt[4] = "/sc2";
var i = Math.round(4*Math.random());
var RANDOMISM = Message.replace(/\/both/,rn_txt[i]);
return RANDOMISM;
}
Hope someone can help me in both Topics
|