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 04-29-2012, 04:40 PM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
say2 question

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

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote
  #2  
Old 04-29-2012, 04:41 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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).
__________________
Skyld
Reply With Quote
  #3  
Old 04-29-2012, 04:57 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
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");


Last edited by ffcmike; 04-29-2012 at 05:15 PM..
Reply With Quote
  #4  
Old 04-29-2012, 08:55 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by ffcmike View Post
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.
__________________
Reply With Quote
  #5  
Old 04-30-2012, 12:51 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
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.
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
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 05:56 PM.


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