Scipt

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 095. Note: Core 095 is no longer officially supported.

Moderator: POL Developer

Post Reply
Undead_Frozme
New User
Posts: 15
Joined: Sat Feb 21, 2009 4:40 pm

Scipt

Post by Undead_Frozme » Wed Mar 25, 2009 2:41 pm

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


westrupp
Adept Poster
Posts: 87
Joined: Wed Aug 01, 2007 3:07 am
Location: Brazil
Contact:

Re: Scipt

Post by westrupp » Wed Mar 25, 2009 8:26 pm

sleep (1000);

User avatar
CWO
POL Expert
Posts: 1140
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA
Contact:

Re: Scipt

Post by CWO » Thu Mar 26, 2009 2:51 am

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.

Undead_Frozme
New User
Posts: 15
Joined: Sat Feb 21, 2009 4:40 pm

Re: Scipt

Post by Undead_Frozme » Fri Mar 27, 2009 12:21 pm

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

Post Reply