Page 1 of 1
Scipt
Posted: Wed Mar 25, 2009 2:41 pm
by Undead_Frozme
Who can help me with the script, stone supposed to be every 10 seconds to write hello how are you (as an example)
Code: Select all
use uo;
use unicode;
program Stone( who, stone )
Sleep( stone, "10" );
PrintTextAbove( stone, "Как дела?", who );
endif
endprogram
Re: Scipt
Posted: Wed Mar 25, 2009 8:26 pm
by westrupp
sleep (1000);
Re: Scipt
Posted: Thu Mar 26, 2009 2:51 am
by CWO
he said every 10 seconds, it would be
Code: Select all
use os;
use uo;
program stone (who, stone)
while (who.connected)
sleep(10);
PrintTextAbovePrivate(stone, "Hello how are you?", who);
endwhile
endprogram
This will make it say "Hello how are you?" every 10 seconds privately above the stone to the player that used it. The script will stop when the player disconnects.
Re: Scipt
Posted: Fri Mar 27, 2009 12:21 pm
by Undead_Frozme
CWO wrote:he said every 10 seconds, it would be
Code: Select all
use os;
use uo;
program stone (who, stone)
while (who.connected)
sleep(10);
PrintTextAbovePrivate(stone, "Hello how are you?", who);
endwhile
endprogram
This will make it say "Hello how are you?" every 10 seconds privately above the stone to the player that used it. The script will stop when the player disconnects.
Thanks! A silly error, at all has not noticed, wrote 0_О at night