Thread

Nasty console message problem [attachment ~3.20 KB] (Sdk)

Nasty console message problem [attachment ~3.20 KB] // Sdk

1  |  

silenced

Jun 1, 2002, 12:04pm
Hey all,
I need some expert help here. When I try to use the enclosed sdk app, the
bot messes up and repeats a aw_console_message when it was supposed to say
something else. Say you click the "switch" but you clicked "cable" before
that.. it'll repeat the cable one, if you click "switch" again, then it'll
say it right.

But there's also another problem. Say a person last clicked switch and the
person that has their name in aw_avatar_add enters, it'll say the switch's
message.

Any help would be great on solving this problem.

--Bowen--

Have $3... want a website?
http://www.smartpenguin.com/affiliate.php?id=12



begin 666 consolebot.cpp
M(VEN8VQU9&4 at (F%W+F at B#0HC:6YC;'5D92 \<W1D:6\N:#X-"B-I;F-L=61E
M(#QS=&1L:6(N:#X-"B-I;F-L=61E(#QI;W-T<F5A;2YH/ at T*(VEN8VQU9&4 at
M/'-T<FEN9RYH/ at T*#0IV;VED(&AA;F1L95]A=F%T87)?861D("AV;VED*3L-
M"G9O:60 at :&%N9&QE7V]B:F5C=%]C;&EC:R H=F]I9"D[#0H-"FUA:6X at *&EN
M="!A<F=C+"!C:&%R("IA<F=V6UTI#0I[#0H-"B at :6YT(')C.PT*#0H at ("\J
M(&-H96-K(&-O;6UA;F0 at ;&EN92 J+PT*("!I9B H87)G8R \(#0I('L-"B at
M("!P<FEN=&8 at *")5<V%G93H at )7, at ;G5M8F5R('!A<W-W;W)D('=O<FQD7&XB
M+"!A<F=V6S!=*3L-"B at ("!E>&ET(" at Q*3L-"B at ?0T*#0H at ("\J(&EN:71I
M86QI>F4 at 06-T:79E(%=O<FQD<R!!4$D at *B\-"B at :68 at *')C(#T at 87=?:6YI
M=" H05=?0E5)3$0I*2![#0H at (" at <')I;G1F(" at B56YA8FQE('1O(&EN:71I
M86QI>F4 at 05!)("AR96%S;VX at )60I7&XB+"!R8RD[#0H at (" at 97AI=" H,2D[
M#0H at ('T-" at T*(" O*B!I;G-T86QL(&AA;F1L97( at 9F]R(&%V871A<E]A9&0 at
M979E;G0 at *B\-"B at 87=?979E;G1?<V5T("A!5U]%5D5.5%]/0DI%0U1?0TQ)
M0TLL(&AA;F1L95]O8FIE8W1?8VQI8VLI.PT*("!A=U]E=F5N=%]S970 at *$%7
M7T5614Y47T%6051!4E]!1$0L(&AA;F1L95]A=F%T87)?861D*3L-" at T*(" O
M*B!C<F5A=&4 at 8F]T(&EN<W1A;F-E("HO#0H at (&EF("AR8R ](&%W7V-R96%T
M92 H,"P at ,"P at ,"DI('L-"B at ("!P<FEN=&8 at *")5;F%B;&4 at =&\ at 8W)E871E
M(&)O="!I;G-T86YC92 H<F5A<V]N("5D*5QN(BP at <F,I.PT*(" at (&5X:70 at
M*#$I.PT*("!]#0H-"B at +RH at ;&]G(&)O="!I;G1O('1H92!U;FEV97)S92 J
M+PT*("!A=U]B;V]L7W-E="A!5U]%3E1%4E]'3$]"04PL,2D[(" -"B at 87=?
M:6YT7W-E=" H05=?3$]'24Y?3U=.15(L(&%T;VD at *&%R9W9;,5TI*3L-"B at
M87=?<W1R:6YG7W-E=" H05=?3$]'24Y?4%))5DE,14=%7U!!4U-73U)$+"!A
M<F=V6S)=*3L-"B at 87=?<W1R:6YG7W-E=" H05=?3$]'24Y?05!03$E#051)
M3TXL(")-87-T97( at ;V8 at 1G5N26Y%12(I.PT*("!A=U]S=')I;F=?<V5T("A!
M5U],3T=)3E].04U%+" B36%S=&5R(BD[#0H at (&EF("AR8R ](&%W7VQO9VEN
M(" at I*2![#0H at (" at <')I;G1F(" at B56YA8FQE('1O(&QO9VEN("AR96%S;VX at
M)60I7&XB+"!R8RD[#0H at (" at 97AI=" H,2D[#0H at ('T-" at T*(" O*B!L;V< at
M8F]T(&EN=&\ at =&AE('=O<FQD(&-A;&QE9" B9G5N:6YE92( at *B\-"B at :68 at
M*')C(#T at 87=?96YT97( at *&%R9W9;,UTI*2![#0H at (" at <')I;G1F(" at B56YA
M8FQE('1O(&5N=&5R('=O<FQD("AR96%S;VX at )60I7&XB+"!R8RD[#0H at (" at
M97AI=" H,2D[#0H at ('T-" at T*(" O*B!A;FYO=6YC92!O=7( at <&]S:71I;VX at
M:6X at =&AE('=O<FQD("HO#0H at (&%W7VEN=%]S970 at *$%77TU97U at L(#$P,# I
M.R O*B P5R J+PT*("!A=U]I;G1?<V5T("A!5U]-65]:+" Q,# P*3L at +RH at
M,$X at *B\-"B at 87=?:6YT7W-E=" H05=?35E?62P at +3,U,# P*3L at +RH at +3,P
M,&$ at *B\-"B at 87=?:6YT7W-E=" H05=?35E?64%7+" R,C4P*3L at +RH at 9F%C
M92!T;W=A<F1S($=:("HO#0H at (&EF("AR8R ](&%W7W-T871E7V-H86YG92 H
M*2D at >PT*(" at ('!R:6YT9B H(E5N86)L92!T;R!C:&%N9V4 at <W1A=&4 at *')E
M87-O;B E9"E<;B(L(')C*3L-"B at ("!E>&ET(" at Q*3L-"B at ?0T*#0H at ("\J
M(&UA:6X at 979E;G0 at ;&]O<" J+PT*("!W:&EL92 H(6%W7W=A:70 at *"TQ*2D-
M"B at (" [#0H-"B at +RH at 8VQO<V4 at 979E<GET:&EN9R!D;W=N("HO#0H at (&%W
M7V1E<W1R;WD at *"D[#0H at (&%W7W1E<FT at *"D[#0H at (')E='5R;B P.PT*#0I]
M#0H-"G9O:60 at :&%N9&QE7V]B:F5C=%]C;&EC:R H=F]I9"D-"GL-"F-H87( at
M9&5S8ULR-39=.PT*<W1R8W!Y*&1E<V,L(&%W7W-T<FEN9RA!5U]/0DI%0U1?
M1$530U))4%1)3TXI*3L at #0H-"F%W7VEN=%]S970H05=?0T].4T],15]2140L
M,"D[#0IA=U]I;G1?<V5T*$%77T-/3E-/3$5?1U)%14XL,"D[#0IA=U]I;G1?
M<V5T*$%77T-/3E-/3$5?0DQ512PQ,C at I.PT*87=?8F]O;%]S970H05=?0T].
M4T],15]"3TQ$+&9A;'-E*3L-"F%W7V)O;VQ?<V5T*$%77T-/3E-/3$5?251!
M3$E#4RQF86QS92D[#0H-"F-H87( at <W=I=%LQ,#!=.PT*8VAA<B!C86)L6S$P
M,%T[#0H-"G-P<FEN=&8H8V%B;"PB6F%A87 A($]U8V at L('EO=2=V92!T;W5C
M:&5D(&$ at =VER92XN+B!H;W!E('EO=2!D:61N)W0 at :'5R="!Y;W5R<V5L9B(I
M.PT*<W!R:6YT9BAS=VET+")9;W4G=F4 at <'5L;&5D('1H92!S=VET8V at L(&=O
M;V0 at :F]B(2(I.PT*#0II9B H(7-T<F-M<"AD97-C+")S=VET8V at B*2D-"B at
M>PT*("!I;G0 at <V5S<VEO;E]I9" ](&%W7VEN="A!5U]!5D%405)?4T534TE/
M3BD[#0H at (&%W7V-O;G-O;&5?;65S<V%G92AS97-S:6]N7VED*3L-"B at 87=?
M<W1R:6YG7W-E="A!5U]#3TY33TQ%7TU%4U-!1T4L('-W:70I.PT*#0H at ('T-
M" at T*:68 at *"%S=')C;7 H9&5S8RPB8V%B;&4B*2D-"B at >PT*("!I;G0 at <V5S
M<VEO;E]I9" ](&%W7VEN="A!5U]!5D%405)?4T534TE/3BD[#0H at (&%W7V-O
M;G-O;&5?;65S<V%G92AS97-S:6]N7VED*3L-"B at 87=?<W1R:6YG7W-E="A!
M5U]#3TY33TQ%7TU%4U-!1T4L(&-A8FPI.PT*#0H at ('T-" at T*?0T*#0IV;VED
M(&AA;F1L95]A=F%T87)?861D("AV;VED*0T*>PT*#0IC:&%R('=H;VU;,C!=
M.PT*8VAA<B!M97-S86=E6S(U-5T[#0IS=')C<'DH=VAO;2P at 87=?<W1R:6YG
M*$%77T%6051!4E].04U%*2D[#0IS<')I;G1F*&UE<W-A9V4L(")(97DL(&=O
M(&-L:6-K('1H92!S=VET8V at at 86YD(&-A8FQE(&EN('1H92!B=6EL9&EN9R!O
M;B!T;W at ;V8 at =&AE(&-L:69F('1O('1H92!.;W)T:"XN('EO=2!M87D at :&%V
M92!T;R!C;&EC:R!E86-H(&$ at 9F5W('1I;65S+"!B=70 at :70 at <VAO=6QD('=O
M<FLN(BD[#0H-"FEF(" at A<W1R8VUP*'=H;VTL(")";W=E;B(I('Q\("AW:&]M
M+" B2T%((BDI#0H at ('L-" at T*("!A=U]I;G1?<V5T*$%77T-/3E-/3$5?4D5$
M+# I.PT*("!A=U]I;G1?<V5T*$%77T-/3E-/3$5?1U)%14XL,"D[#0H at (&%W
M7VEN=%]S970H05=?0T].4T],15]"3%5%+#(U-2D[#0H-"B at :6YT('-E<W-I
M;VY?:60 at /2!A=U]I;G0H05=?059!5$%27U-%4U-)3TXI.PT*("!A=U]C;VYS
M;VQE7VUE<W-A9V4H<V5S<VEO;E]I9"D[#0H at (&%W7W-T<FEN9U]S970H05=?
H0T].4T],15]-15-304=%+"!M97-S86=E*3L-" at T*("!]#0H-"GT-" at ``
`
end

agent1

Jun 1, 2002, 12:52pm
You problem is that you're calling things in the wrong order -- you send the message before setting what it is.
aw_console_message(session_id);
aw_string_set(AW_CONSOLE_MESSAGE, cabl);

should be

aw_string_set(AW_CONSOLE_MESSAGE, cabl);
aw_console_message(session_id);

and the same for the other message.

-Agent1

[View Quote]

silenced

Jun 1, 2002, 12:56pm
Thanks man :) that works great.

--Bowen--

Have $3... want a website?
http://www.smartpenguin.com/affiliate.php?id=12

[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn