TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

SUBSTITUTE / GAG question

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help
View previous topic :: View next topic  
Author Message
profek2k



Joined: 14 Mar 2017
Posts: 1

PostPosted: Tue Mar 14, 2017 2:28 pm    Post subject: SUBSTITUTE / GAG question Reply with quote

I want to SUBSTITIUTE some text and also GAG it. For exmple:
#SUBSTITUTE {%* appears.}{@ADD_SOMEONE_ON_LOC{%1}}

but after i do this i always have empty line displayed and i don't want that.
ADD_SOMEONE_ON_LOC function result is {}: #VAR {result}{};

Any ideas how to solve it ?
Back to top
View user's profile Send private message
PowerGod



Joined: 04 Aug 2014
Posts: 339

PostPosted: Thu Mar 16, 2017 4:31 am    Post subject: Reply with quote

If you want to remove the entire line you should use an #ACTION instead, that will contain the call for the function and a #LINE GAG command
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Sun Mar 19, 2017 9:39 pm    Post subject: Reply with quote

It's probably caused by the mud sending an extra blank line.

You might be able to remove blank lines using #gag {^$}
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group