Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   say2 question (https://forums.graalonline.com/forums/showthread.php?t=134266343)

Gunderak 04-29-2012 04:40 PM

say2 question
 
Is there any way to change its positioning/colours/whatever?

Skyld 04-29-2012 04:41 PM

You can't change position, no. You can change the appearance by modifying the setletters image I think (but please do not overwrite the default letters.png image on your server or I will hurt you).

ffcmike 04-29-2012 04:57 PM

There's the function setletters("nameoflettersimage");, not entirely sure if this is what Skyld meant.

If you want to alternate them according to what level you're in, they remain as what you set when entering a different level, so it's good to create a system to handle this upon entry, such as:

PHP Code:

//#CLIENTSIDE
function onCreated(){
  
this.letterlevels = {
    {
"inside_foxtunnel""fox"},
    {
"quest_sewers""sewer"},
    {
"quest_tomb""tomb"},
    {
"quest_castle""castlemine"},
    {
"inside_graalcastle""castle"},
  };
}
function 
onPlayerEnters(){
  for(
temp.this.letterlevels){
    if(
player.level.name.starts("classic_" temp.i[0])){
      
setletters("classic_gui_letters_" temp.i[1] @ ".png");
      return;
    }
  }
  
setletters("letters.png");



cbk1994 04-29-2012 08:55 PM

Quote:

Originally Posted by ffcmike (Post 1693303)
There's the function setletters("nameoflettersimage");, not entirely sure if this is what Skyld meant.

He meant not to simply upload a new letters.png on your server but instead to use that function.

Gunderak 04-30-2012 12:51 AM

Lmao, Skyld I'm not going to replace it, I'm not that stupid.
In fact why can't images and states and everything be in a folder eg levels/Corinthia/tree.png and if no image exists use the default?
But thanks for the info.


All times are GMT +2. The time now is 11:12 PM.

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