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 03-02-2008, 03:04 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
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
Reply With Quote
  #2  
Old 03-02-2008, 03:40 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
That's been a problem for ages, I remember people abusing @ back on Maloria to **** up shouts.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #3  
Old 03-02-2008, 05:26 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
I think we used wraptext2 on Vesporia, would have to check.
__________________
Reply With Quote
  #4  
Old 03-02-2008, 07:18 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
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 @
__________________

Last edited by Chompy; 03-02-2008 at 11:28 PM..
Reply With Quote
  #5  
Old 03-02-2008, 07:47 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Chompy View Post
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
Reply With Quote
  #6  
Old 03-02-2008, 09:35 PM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
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);
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #7  
Old 03-07-2008, 07:48 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Tolnaftate2004 View Post
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.
__________________
Do it with a DON!
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 11:20 PM.


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