Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-20-2002, 10:00 AM
psichill psichill is offline
Where's Princess Garnet..
psichill's Avatar
Join Date: Nov 2001
Location: In my chair ;D
Posts: 1,713
psichill is on a distinguished road
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.
__________________
Reply With Quote
  #2  
Old 01-20-2002, 10:25 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to 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...
__________________

subliminal message: 1+1=3

Last edited by Falcor; 01-20-2002 at 11:24 AM..
Reply With Quote
  #3  
Old 01-20-2002, 04:47 PM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
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???
Reply With Quote
  #4  
Old 01-20-2002, 06:41 PM
Mrmicro Mrmicro is offline
Registered User
Join Date: Mar 2001
Posts: 128
Mrmicro is on a distinguished road
Send a message via AIM to Mrmicro
hideimg
__________________
Reply With Quote
  #5  
Old 01-20-2002, 08:40 PM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
Quote:
Originally posted by Mrmicro
hideimg

I thought it was hideimg ###
Reply With Quote
  #6  
Old 01-20-2002, 10:41 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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...
__________________
No Webhost at the moment
Reply With Quote
  #7  
Old 01-21-2002, 03:36 AM
Joe27hunter Joe27hunter is offline
Banned
Join Date: Nov 2001
Posts: 35
Joe27hunter is on a distinguished road
HEHE

Thats good to abuse people lol can i use that script for my server lol i like to abuse lol
Reply With Quote
  #8  
Old 01-21-2002, 04:16 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
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!.
Reply With Quote
  #9  
Old 01-21-2002, 05:56 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Script is free for everyone to copy and use it anywhere u wish to use it ^_^
__________________
No Webhost at the moment
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:11 AM.


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