Jump to content

Question

20 answers to this question

Recommended Posts

Posted (edited)

It should be possible with a script:

  1. display message using waitingroom (ex: "Hello World ... ")
  2. sleep a short time (250 ms?)
  3. rotate the string 1 character left ("ello World ... H")
  4. delwaitingroom and display the new message, goto #2 and repeat

prontera,155,188,0	script	test	910,{
end;

OnInit:
set .message$, "Hello World!     ";

while (1) {
	set .message$, delchar(.message$+charat(.message$,0),0);
	delwaitingroom;
	waitingroom .message$, 0;
	sleep 200;
}
}

Edited by Brian
  • Upvote 1
Posted

@Emistry

thank you so much sir....

i also want to try sir brian script, can you fix it sir? please

im using eamod....

prontera,155,188,0 script test 910,{

end;

OnInit:

set .message$, "Hello World! ";

while (1) {

set .message$, delchar(.message$+charat(.message$,0),0);

delwaitingroom;

waitingroom .message$, 0;

sleep 200;

}

}

Posted

oh isee...thanks...

anyway what if i want to put space on each letter like S"space"A"" M"" P"" L"" E???

change here ....

setarray .Name$,"S"," ","A"," ","M"," ","P"," ","L"," ","E";

or...

set .Display$,.Display$ +" "+ .Name$[.i];

Posted
prontera,155,188,0 script test 910,{
    end;
OnInit:
setarray .message$, "H","E","L","L","O"," ","W","O","R","L","D";
while(1) {
delwaitingroom;
  for(set .@i , 0; .@i < getarraysize(.message$) ; set .@i, .@i+1) {
   set .word$, .word$+.message$[.@i];
  }

  set .@temp$ , .message$[getarraysize(.message$)-1];
  for(set .@i , (getarraysize(.message$)-1); .@i > 0 ; set .@i, .@i-1) {
   set .message$[.@i] , .message$[.@i-1];
  }
   set .message$[.@i] , .@temp$;

  waitingroom .word$,0;
  set .word$, "";
sleep 200;
}
}

Posted

You won't notice anything, but yes, the longer your code and the shorter your "sleep" time, the more resources this will eat up. It's a complete waste imo, but it's your decision in the end.

  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...