Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Text Help. (https://forums.graalonline.com/forums/showthread.php?t=21563)

psichill 01-20-2002 10:00 AM

Text Help.
 
Okay here is what I need.

-Is there a script that makes a text scroll? (example: <marquee> )
-What is the script to make a text a certain color?
-What is the script to make the text a certain font?

If you know any of these scripts please post them.

Falcor 01-20-2002 10:25 AM

1) no script command, but you could simulate that with a script.

2) changeimgcolor index,redammount,greenammount,blueammount,alpha.

3) the font would be in the 1st text param...

text param for showimg =

@font@bicus(bold,italic,center,underline,strikeout , (only use the 1st letter))@text

you use that inplace of the image in your showimg... such as

showimg index,@tempus sans itx@b@hello!,x,y;

if you are refering to messages as in like message HI!; or setplayerprop #c,Hi!;

then there is no colors or fonts...

royce 01-20-2002 04:47 PM

Quote:

Originally posted by Falcor
1) no script command, but you could simulate that with a script.

2) changeimgcolor index,redammount,greenammount,blueammount,alpha.

3) the font would be in the 1st text param...

text param for showimg =

@font@bicus(bold,italic,center,underline,strikeout , (only use the 1st letter))@text

you use that inplace of the image in your showimg... such as

showimg index,@tempus sans itx@b@hello!,x,y;

if you are refering to messages as in like message HI!; or setplayerprop #c,Hi!;

then there is no colors or fonts...

How do I hide the text done in showimg???

Mrmicro 01-20-2002 06:41 PM

hideimg

royce 01-20-2002 08:40 PM

Quote:

Originally posted by Mrmicro
hideimg

I thought it was hideimg ###

TDO2000 01-20-2002 10:41 PM

NPC Code:

// NPC made by TDO
if(playertouchsme){
toweapons scrolltext;
}
if(playerchats && isweapon && startswith(setscrolltext,#c)){
setstring scrolltext,#e(13,-1,#c);
setstring scrolling,#s(scrolltext);
}
if(weaponfired){
if(this.active==1){this.active=0;}
else {
setstring scrolling,#s(scrolltext);
this.active=1;
timeout=.05;
}
}

if(timeout && this.active==1){
setstring scrolling, #e(strlen(#s(scrolling))-1,-1,#s(scrolling))#e(0,strlen(#s(scrolling))-1,#s(scrolling));
setplayerprop #c,#s(scrolling);
timeout=.1;
}



a text-scrolling-item... I'm sure I could make it shorter, but I've no time...

Joe27hunter 01-21-2002 03:36 AM

HEHE
 
Thats good to abuse people lol can i use that script for my server lol i like to abuse lol :)

royce 01-21-2002 04:16 AM

Quote:

Originally posted by TDO2000
NPC Code:

// NPC made by TDO
if(playertouchsme){
toweapons scrolltext;
}
if(playerchats && isweapon && startswith(setscrolltext,#c)){
setstring scrolltext,#e(13,-1,#c);
setstring scrolling,#s(scrolltext);
}
if(weaponfired){
if(this.active==1){this.active=0;}
else {
setstring scrolling,#s(scrolltext);
this.active=1;
timeout=.05;
}
}

if(timeout && this.active==1){
setstring scrolling, #e(strlen(#s(scrolling))-1,-1,#s(scrolling))#e(0,strlen(#s(scrolling))-1,#s(scrolling));
setplayerprop #c,#s(scrolling);
timeout=.1;
}



a text-scrolling-item... I'm sure I could make it shorter, but I've no time...




Could I use that? So when I have people that keep swearing so instead of sending them to jail I can do that. That would be hilarious. Nothing is funnier then those Non-P2P freaks getting so pissed at you because they cant talk! HaHa I would love this!.

TDO2000 01-21-2002 05:56 AM

Script is free for everyone to copy and use it anywhere u wish to use it ^_^


All times are GMT +2. The time now is 08:46 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.