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 »

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: 89
Joined: Wed Aug 01, 2007 3:07 am
Location: Brazil
Contact:

Re: Scipt

Post by westrupp »

sleep (1000);
User avatar
CWO
POL Expert
Posts: 1158
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Re: Scipt

Post 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.
Undead_Frozme
New User
Posts: 15
Joined: Sat Feb 21, 2009 4:40 pm

Re: Scipt

Post 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
Post Reply