Thread: Help me please.
View Single Post
  #7  
Old 02-06-2002, 12:01 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Wel there are many ways, all of which suck. Since if a string contains #b it does not parse it in signs, so instead it shows #b, kinda like with a few things in java. So what I suggest is 2 things:
1.) String arrays. Like you could make multiple news posts...not too sure about that.
2.) Use #e(start,end,string) with showimg, like so
NPC Code:

// The maximum characters per line:
this.linesize = 25;
// The news string size:
this.max = strlen(#s(server.news))
// The number of lines:
this.lines = this.max/this.linesize;
for (i=0; i<this.lines; i++; ) {
showimg i+500,@#e(i*this.linesize,(i*this.linesize)+this.l inesize),5,100+(i*10);
changeimgvis i+500,4;
changeimgzoom i+500,.5;
}



its retarded and stuff, but it works...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote