Graal Forums  

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

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-28-2006, 03:04 PM
D4rKv310c1ty D4rKv310c1ty is offline
Registered User
Join Date: Feb 2005
Posts: 1,358
D4rKv310c1ty is on a distinguished road
Hi, I need the ShowText script.

Erm, I've asked certain developers for this script but I'm after a script that shows text at the bottom right corner of the screen and is like a status bar.

I was told it was a showtext script?

E.g. the hat shop in UN thats what I mean.
  #2  
Old 01-28-2006, 04:40 PM
talkingnoodle talkingnoodle is offline
Rapidwolve
talkingnoodle's Avatar
Join Date: Nov 2005
Location: Leominster, MA
Posts: 229
talkingnoodle is on a distinguished road
Send a message via AIM to talkingnoodle Send a message via MSN to talkingnoodle
This is if you want it to be on one position of the screen
NPC Code:

function onCreated(){
this.sx = .95 * screenwidth; //screenx you want it to be in (.95) is the right side of your screen
this.sy = .90 * screenheight; //the higher the number the lower the text is going to show
}



now for the showtext part

NPC Code:

showtext(200,this.sx,this.sy, "font", "(b,i,r,c)", "text here");
changeimgvis(200,4); // it has to be over 4 for it to stick on the screen

__________________


AIM: Rapidwolve Graal
MSN: [email protected]


2/12/06 - Crossroads NPC Admin

Last edited by talkingnoodle; 01-28-2006 at 09:07 PM..
  #3  
Old 01-28-2006, 10:04 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Zzz.
If you want it in the bottom-right, you'll have to style it to the right, otherwise it'll go off the screen..

PHP Code:
with (findimg(200)) {
  
style "r";

Or if you're doing it his way, you can just put it between "font" and "text".
  #4  
Old 01-28-2006, 10:10 PM
D4rKv310c1ty D4rKv310c1ty is offline
Registered User
Join Date: Feb 2005
Posts: 1,358
D4rKv310c1ty is on a distinguished road
Thanks alot guys. <3
  #5  
Old 01-28-2006, 10:26 PM
D4rKv310c1ty D4rKv310c1ty is offline
Registered User
Join Date: Feb 2005
Posts: 1,358
D4rKv310c1ty is on a distinguished road
None of the codes work x.x describe in detailed how you want me to do it.
  #6  
Old 01-28-2006, 11:23 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by D4rKv310c1ty
None of the codes work x.x describe in detailed how you want me to do it.
They forgot to mention, but those codes will only work on V4 on a GS2 enabled server.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
  #7  
Old 01-28-2006, 11:52 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
You could have just asked me over MSN, Luc, but yeah, your question's been answered.
  #8  
Old 01-29-2006, 01:53 AM
petro1212 petro1212 is offline
Angelus
petro1212's Avatar
Join Date: Mar 2003
Location: The Moon
Posts: 445
petro1212 is on a distinguished road
Send a message via AIM to petro1212 Send a message via MSN to petro1212
Quote:
Originally Posted by D4rKv310c1ty
E.g. the hat shop in UN thats what I mean.

Arg the nightmare... I still get people asking me if I'd like to restock the hatshop just cause my freaking "Enjoy the hatshop ~Angelus+my pic" are in there >.<


Anyhow simply use screenwidth-#value and screenhight-#value to replace the x and y variables in the normal showimg/showtext (whatever you prefer) command.

Example

showimg 1,@Tempus Sans ITC@This is a text!,screenwidth-50,screenhight-20;
__________________
  #9  
Old 01-29-2006, 03:16 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Quote:
Originally Posted by petro1212
showimg 1,@Tempus Sans ITC@This is a text!,screenwidth-50,screenhight-20;
Asdfblarghrargh! DIE!
  #10  
Old 01-29-2006, 03:45 AM
talkingnoodle talkingnoodle is offline
Rapidwolve
talkingnoodle's Avatar
Join Date: Nov 2005
Location: Leominster, MA
Posts: 229
talkingnoodle is on a distinguished road
Send a message via AIM to talkingnoodle Send a message via MSN to talkingnoodle
yen hates GS1...dont post that in front of him! >=D
__________________


AIM: Rapidwolve Graal
MSN: [email protected]


2/12/06 - Crossroads NPC Admin
  #11  
Old 01-29-2006, 03:50 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
No, I hate the @ @ @
  #12  
Old 01-29-2006, 03:52 AM
talkingnoodle talkingnoodle is offline
Rapidwolve
talkingnoodle's Avatar
Join Date: Nov 2005
Location: Leominster, MA
Posts: 229
talkingnoodle is on a distinguished road
Send a message via AIM to talkingnoodle Send a message via MSN to talkingnoodle
o o_O
__________________


AIM: Rapidwolve Graal
MSN: [email protected]


2/12/06 - Crossroads NPC Admin
  #13  
Old 01-29-2006, 04:18 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by Yen
No, I hate the @ @ @
Well, it is deprecated, so there is good reason to.
  #14  
Old 01-29-2006, 04:19 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by D4rKv310c1ty
Erm, I've asked certain developers for this script but I'm after a script that shows text at the bottom right corner of the screen and is like a status bar.

I was told it was a showtext script?

E.g. the hat shop in UN thats what I mean.
What part don't you understand? The showtext command, the coordinates you should use, the circumstances under which you should use the command, or what? Do not ask for scripts, but feel free to ask for help making them.
  #15  
Old 01-29-2006, 07:47 PM
D4rKv310c1ty D4rKv310c1ty is offline
Registered User
Join Date: Feb 2005
Posts: 1,358
D4rKv310c1ty is on a distinguished road
Thing is, if you read the desc. of the board you'll see it says something about asking the pro's. So I am asking the pros for the script

Im not a NPC developer, I strictly do level developing.

I know what the showtext script is, its often used with other strings and values to make the text a different color or font.

Anyway.
  #16  
Old 01-29-2006, 07:47 PM
D4rKv310c1ty D4rKv310c1ty is offline
Registered User
Join Date: Feb 2005
Posts: 1,358
D4rKv310c1ty is on a distinguished road
Quote:
Originally Posted by petro1212
Arg the nightmare... I still get people asking me if I'd like to restock the hatshop just cause my freaking "Enjoy the hatshop ~Angelus+my pic" are in there >.<


Anyhow simply use screenwidth-#value and screenhight-#value to replace the x and y variables in the normal showimg/showtext (whatever you prefer) command.

Example

showimg 1,@Tempus Sans ITC@This is a text!,screenwidth-50,screenhight-20;
It bet its annoying XD, I get noobs asking me to even hire them in GC and GB and im only and entertainer o.o
  #17  
Old 01-29-2006, 07:48 PM
D4rKv310c1ty D4rKv310c1ty is offline
Registered User
Join Date: Feb 2005
Posts: 1,358
D4rKv310c1ty is on a distinguished road
Quote:
Originally Posted by Codein
You could have just asked me over MSN, Luc, but yeah, your question's been answered.
My bad, James I thought you were GAT only?
  #18  
Old 01-29-2006, 09:23 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
Quote:
Originally Posted by Lance
Well, it is deprecated, so there is good reason to.
I always wondered what made using the @@@ format deprecated. It's something that even Stefan uses quite regularly.
__________________
Skyld
  #19  
Old 01-30-2006, 12:33 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by D4rKv310c1ty
Thing is, if you read the desc. of the board you'll see it says something about asking the pro's. So I am asking the pros for the script

Im not a NPC developer, I strictly do level developing.
And if you read the forum rules you will understand that what you are doing is violating one of the cardinal rules of this forum. Do not do it again.
Closed Thread


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:31 AM.


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