Jump to content
  • 0

Pub message moving...


Ragnar Lothbrok

Question


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

how can i make the pub message move??

can you make me script please....

thanks

Link to comment
Share on other sites

20 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

source modification?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

i dont know if modification or just in script, im requesting a script if this is possible...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  06/22/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

error..

* 8 : set .message$, delchar'('.message$+charat(.message$,0),

0);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

Are you not using rAthena? :(

We added delchar and charat 7 months ago in r15039.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

oops sorry... im using eamod...

can you please make it?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  183
  • Reputation:   15
  • Joined:  06/10/12
  • Last Seen:  

thx Brian, working 100% ;)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

Sir Brian, how to make it that work ing eamod?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

@TS

you can try like this if you want.

http://upaste.me/f37f56768e1b73f

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

@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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

Are you not using rAthena? :(

We added delchar and charat 7 months ago in r15039.

apply the diff at your own risk..

i am not a eAmod users..i dunno how it work to edit on eAmod

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

oh isee...thanks...

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

@arnie, Why don't you just switch to rAthena? eAmod is a rip off.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  01/25/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

Is this Script can effect LAG on the server???

Edited by arnie2302
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1131
  • Joined:  05/27/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  04/01/13
  • Last Seen:  

how to make moving to right? help please its only to the left :)

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...