Jump to content
  • 0
Ragnar Lothbrok

Pub message moving...

Question

20 answers to this question

Recommended Posts

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
Link to comment
Share on other sites

What Brian said, but be careful because if you do it in announcement messages, you would spam people's chatboxes xD

Link to comment
Share on other sites

@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;

}

}

Link to comment
Share on other sites

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];

Link to comment
Share on other sites

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 [email protected] , 0; [email protected] < getarraysize(.message$) ; set [email protected], [email protected]+1) {
   set .word$, .word$+.message$[[email protected]];
  }

  set [email protected]$ , .message$[getarraysize(.message$)-1];
  for(set [email protected] , (getarraysize(.message$)-1); [email protected] > 0 ; set [email protected], [email protected]) {
   set .message$[[email protected]] , .message$[[email protected]];
  }
   set .message$[[email protected]] , [email protected]$;

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.