Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Hi, I need the ShowText script. (https://forums.graalonline.com/forums/showthread.php?t=63765)

D4rKv310c1ty 01-28-2006 03:04 PM

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.

talkingnoodle 01-28-2006 04:40 PM

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


Yen 01-28-2006 10:04 PM

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".

D4rKv310c1ty 01-28-2006 10:10 PM

Thanks alot guys. <3

D4rKv310c1ty 01-28-2006 10:26 PM

None of the codes work x.x describe in detailed how you want me to do it.

napo_p2p 01-28-2006 11:23 PM

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.

Codein 01-28-2006 11:52 PM

You could have just asked me over MSN, Luc, but yeah, your question's been answered.

petro1212 01-29-2006 01:53 AM

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;

Yen 01-29-2006 03:16 AM

Quote:

Originally Posted by petro1212
showimg 1,@Tempus Sans ITC@This is a text!,screenwidth-50,screenhight-20;

Asdfblarghrargh! DIE!

talkingnoodle 01-29-2006 03:45 AM

yen hates GS1...dont post that in front of him! >=D

Yen 01-29-2006 03:50 AM

No, I hate the @ @ @

talkingnoodle 01-29-2006 03:52 AM

o o_O

Lance 01-29-2006 04:18 AM

Quote:

Originally Posted by Yen
No, I hate the @ @ @

Well, it is deprecated, so there is good reason to.

Lance 01-29-2006 04:19 AM

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.

D4rKv310c1ty 01-29-2006 07:47 PM

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.

D4rKv310c1ty 01-29-2006 07:47 PM

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

D4rKv310c1ty 01-29-2006 07:48 PM

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?

Skyld 01-29-2006 09:23 PM

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.

Lance 01-30-2006 12:33 AM

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.


All times are GMT +2. The time now is 08:00 PM.

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