Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   I need help please help me if you know (https://forums.graalonline.com/forums/showthread.php?t=32932)

ParadiseAdmin3 07-05-2002 01:48 AM

I need help please help me if you know
 
Ok, how do I change color if I use:
showimg 1,@BOYS,x,y;
I want to change the word BOYS's color to Blue but I don't know how. The original color of the text is lightgray. Please reply back if you know thanks...

screen_name 07-05-2002 01:53 AM

changeimgcolors index,r,g,b,a;

r,g,b,a all have to between 0 and 1

Dustey4Ever 07-05-2002 01:56 AM

this might help

changeimgcolors index,r,g,b,alpha;

Index, the index of the shown image your trying to change

R,G,B is is red, green, blue, in graal we basically use 1 on or 0 off, but you can use decimals to change it too...

Alpha can be used for a few things, to change how the color looks or to make it barely appear

so if you want blue and the index was 1
NPC Code:

if (playerenters){
showimg 1,@BOYS,x,y;
changeimgcolors 1,0,0,1,.99;
}




this is simple but just and explanation


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

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