Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Colored Text -I 4Get! (https://forums.graalonline.com/forums/showthread.php?t=29166)

Spark910 05-15-2002 02:06 AM

Colored Text -I 4Get!
 
For:
if playerenters) {
x=30;
y=20;
message Shop;
}

To Be In RED How Do I Do It! Also A Blue One Would Help! Is it By Using 0+1's or 0-255?

And whats script to chnage it cos i 4got!

IceFire_TK 05-15-2002 02:50 AM

try this dude
NPC Code:

if (created) {
showimg 001,@Shop,x,y;
changeimgcolors 001,RED,GREEN,BLUE,ALPHA; /Change the colors in values
}



Should be right.. Never actually use colors so i might have too double check ;)

amonrabr 05-15-2002 02:51 AM

Re: Colored Text -I 4Get!
 
Quote:

Originally posted by Spark910
For:
if playerenters) {
x=30;
y=20;
message Shop;
}

To Be In RED How Do I Do It! Also A Blue One Would Help! Is it By Using 0+1's or 0-255?

And whats script to chnage it cos i 4got!

if u reaaaally wanna do this, try:

NPC Code:
if(created){
this.colors={1,1,1} //Change the colors 0-255
showimg id,@Arial@name,x-1,y-1;
showimg id+1,@Arial@name,x-.9,y-.9;
changeimgcolors id+1,0,0,1,.9;
changeimgvis id,3;
changeimgcolors id,this.colors[0],this.colors[1],this.colors[2],.9;
}



All times are GMT +2. The time now is 10:57 AM.

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