Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Problem with wraptext() (might be a client problem) (https://forums.graalonline.com/forums/showthread.php?t=78905)

Crow 03-02-2008 03:04 PM

Problem with wraptext() (might be a client problem)
 
I'm having quite some trouble with wraptext().

PHP Code:

wraptext(75" ""test1 @ test2"

Returns "test2".

PHP Code:

wraptext(75" ""test1 test2"

Returns "test1 test2".


So basically, whenever there is the @ operator in the string, it ****s up. I demand either help or a fix ;P

xXziroXx 03-02-2008 03:40 PM

That's been a problem for ages, I remember people abusing @ back on Maloria to **** up shouts.

cbk1994 03-02-2008 05:26 PM

I think we used wraptext2 on Vesporia, would have to check.

Chompy 03-02-2008 07:18 PM

Hm, happens to me too :O

If I wraptext2() this:
PHP Code:

foo@bar@test@rawr@bah@meep@lawl@lol@lmao 

it will only wrap this:
PHP Code:

test@rawr@bah@meep@lawl@lol@lmao 

kinda annoying :( It will only wrap the text after the second @

Crow 03-02-2008 07:47 PM

Quote:

Originally Posted by Chompy (Post 1377554)
Hm, happens to me too :O

If I wraptest2() this:
PHP Code:

foo@bar@test@rawr@bah@meep@lawl@lol@lmao 

it will only wrap this:
PHP Code:

test@rawr@bah@meep@lawl@lol@lmao 

kinda annoying :( It will only wrap the text after the second @

wraptext2() is working, I'm using that now. wraptext() makes trouble ;D

Tolnaftate2004 03-02-2008 09:35 PM

This is because of the old text codes (to show text in showimg). I guess you can fix this by doing wraptext(..., "yourfont@yourstyle@" @ yourtext);

zokemon 03-07-2008 07:48 PM

Quote:

Originally Posted by Tolnaftate2004 (Post 1377586)
This is because of the old text codes (to show text in showimg). I guess you can fix this by doing wraptext(..., "yourfont@yourstyle@" @ yourtext);

Funny that no one else here caught that ^^.
But yeah, that's exactly how I would do it too.


All times are GMT +2. The time now is 02:43 PM.

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