Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   say2 GS2? (https://forums.graalonline.com/forums/showthread.php?t=80001)

Angel_Light 06-09-2008 04:18 AM

say2 GS2?
 
How do I use say2 in GS2 style like

PHP Code:

say2 #i(head0.png,0,64,32,32) : Hi there; 

How would I transfer that into GS2?

DustyPorViva 06-09-2008 04:28 AM

PHP Code:

say2("#i(head0.png,0,64,32,32) : Hi there"); 

I think that should work... I don't think they converted sign codes over to GS2.

cbk1994 06-09-2008 04:33 AM

Quote:

Originally Posted by DustyPorViva (Post 1395651)
PHP Code:

say2("#i(head0.png,0,64,32,32) : Hi there"); 

I think that should work... I don't think they converted sign codes over to GS2.

They probably mean to phase out say2.

Angel_Light 06-09-2008 04:37 AM

@ Dusty - no I tried that it doesn't work.

@ Chris - Why, because of GUI s?

cbk1994 06-09-2008 04:40 AM

Quote:

Originally Posted by Angel_Light (Post 1395655)
@ Chris - Why, because of GUI s?

That's what I'm imagining; I never liked say2 much from the start anyway.

Angel_Light 06-09-2008 04:43 AM

Why? I like it for the simplicity.

DustyPorViva 06-09-2008 04:45 AM

There is no need to phase out say2... it's basically the sign system and they CAN'T do away with that.

cbk1994 06-09-2008 06:05 AM

Quote:

Originally Posted by DustyPorViva (Post 1395659)
There is no need to phase out say2... it's basically the sign system and they CAN'T do away with that.

Well, perhaps it could be remade. Imagine that it makes a GUI with custom profiles to look like that, only easier to customize. I've always found that it doesn't auto line-break to be quite annoying as well.

EDIT:

You can do this I know:

PHP Code:

say2(
        
"hi" NL
        
"blah" NL
        
"foo"
      
); 

I wonder if HTML tags would work at all? I seriously doubt it, but I guess it's worth a try.

DustyPorViva 06-09-2008 06:26 AM

Heh, there are a lot of annoying things about say2... but almost every server uses them(I can't think of many servers that have custom sign systems), and I think every classic server definitely does.

I wouldn't argue against Stefan converting them to GUI... but I doubt that will ever happen.

As for the original problem... I honestly don't know. I can't find anything on the wiki, but have you tried something like:
PHP Code:

say2(#i("head0.png",0,64,32,32) @ " hello there"); 

?
Oh, and Chris brings up a good point, try html("<img src='head0.png'>") and see what that nets you.

cbk1994 06-09-2008 06:48 AM

Quote:

Originally Posted by DustyPorViva (Post 1395666)
Oh, and Chris brings up a good point, try html("<img src='head0.png'>") and see what that nets you.

I didn't think of this, you'd still have to be able to crop it.

Tigairius 06-09-2008 07:27 AM

Quote:

Originally Posted by DustyPorViva (Post 1395651)
PHP Code:

say2("#i(head0.png,0,64,32,32) : Hi there"); 

I think that should work... I don't think they converted sign codes over to GS2.

They didn't, you're right, that is supposed to work.

Quote:

Originally Posted by Angel_Light (Post 1395655)
@ Dusty - no I tried that it doesn't work.

Then you did it wrong, try again.
PHP Code:

//#CLIENTSIDE
function onPlayerTouchsme() {
  
say2("#i(head0.png,0,64,32,32) : Hi there");



DustyPorViva 06-09-2008 07:27 AM

Heh, Tig beat me to it. I just tested it myself and it works fine.

Angel_Light 06-09-2008 08:38 AM

when I do it, it literally just shows that text #i(head.png,0,64,32,32)

DustyPorViva 06-09-2008 08:56 AM

Shows a head for me :/ dunno what to tell you.

xXziroXx 06-09-2008 03:02 PM

Quote:

Originally Posted by Angel_Light (Post 1395685)
when I do it, it literally just shows that text #i(head.png,0,64,32,32)

If I were you, I'd make a support ticket and ask Stefan to upgrade your playerworld's GServer. >_<


All times are GMT +2. The time now is 01:20 AM.

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