Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Pocket_Balrog
Newbie


Joined: 09 Feb 2006
Posts: 6

PostPosted: Wed Mar 15, 2006 5:30 am   

Help Please.
 
Ok, can anyone tell me what to do to make this work. I have it in the alias section:


#VAR buffer {"%-1"}
#VAR startcolour {"&z"}
#VAR endcolour {"&w"}
#VAR miscchar {"&W"}
#VAR buffer {%insert( @{endcolour}, @{buffer} , 1)}
#VAR buffer {%replace( @{buffer}, {A}, @{startcolour}A@{endcolour})}
#VAR buffer {%replace( @{buffer}, {B}, @{startcolour}B@{endcolour})}
#VAR buffer {%replace( @{buffer}, {C}, @{startcolour}C@{endcolour})}
#VAR buffer {%replace( @{buffer}, {D}, @{startcolour}D@{endcolour})}
#VAR buffer {%replace( @{buffer}, {E}, @{startcolour}E@{endcolour})}
#VAR buffer {%replace( @{buffer}, {F}, @{startcolour}F@{endcolour})}
#VAR buffer {%replace( @{buffer}, {G}, @{startcolour}G@{endcolour})}
#VAR buffer {%replace( @{buffer}, {H}, @{startcolour}H@{endcolour})}
#VAR buffer {%replace( @{buffer}, {I}, @{startcolour}I@{endcolour})}
#VAR buffer {%replace( @{buffer}, {J}, @{startcolour}J@{endcolour})}
#VAR buffer {%replace( @{buffer}, {K}, @{startcolour}K@{endcolour})}
#VAR buffer {%replace( @{buffer}, {L}, @{startcolour}L@{endcolour})}
#VAR buffer {%replace( @{buffer}, {M}, @{startcolour}M@{endcolour})}
#VAR buffer {%replace( @{buffer}, {N}, @{startcolour}N@{endcolour})}
#VAR buffer {%replace( @{buffer}, {O}, @{startcolour}O@{endcolour})}
#VAR buffer {%replace( @{buffer}, {P}, @{startcolour}P@{endcolour})}
#VAR buffer {%replace( @{buffer}, {Q}, @{startcolour}Q@{endcolour})}
#VAR buffer {%replace( @{buffer}, {R}, @{startcolour}R@{endcolour})}
#VAR buffer {%replace( @{buffer}, {S}, @{startcolour}S@{endcolour})}
#VAR buffer {%replace( @{buffer}, {T}, @{startcolour}T@{endcolour})}
#VAR buffer {%replace( @{buffer}, {U}, @{startcolour}U@{endcolour})}
#VAR buffer {%replace( @{buffer}, {V}, @{startcolour}V@{endcolour})}
#VAR buffer {%replace( @{buffer}, {W}, @{startcolour}W@{endcolour})}
#VAR buffer {%replace( @{buffer}, {X}, @{startcolour}X@{endcolour})}
#VAR buffer {%replace( @{buffer}, {Y}, @{startcolour}Y@{endcolour})}
#VAR buffer {%replace( @{buffer}, {Z}, @{startcolour}Z@{endcolour})}
#VAR buffer {%replace( @{buffer}, "!", @{miscchar}~!@{endcolour})}
#VAR buffer {%replace( @{buffer}, "?", @{miscchar}~?@{endcolour})}
#VAR buffer {%replace( @{buffer}, ",", @{miscchar}~,@{endcolour})}
#VAR buffer {%replace( @{buffer}, "'", @{miscchar}~'@{endcolour})}
#VAR buffer {%replace( @{buffer}, "[", @{miscchar}~[@{endcolour})}
#VAR buffer {%replace( @{buffer}, "]", @{miscchar}~]@{endcolour})}
#VAR buffer {%replace( @{buffer}, "#", @{miscchar}~#@{endcolour})}
#VAR buffer {%replace( @{buffer}, "$", @{miscchar}~$@{endcolour})}
#VAR buffer {%replace( @{buffer}, "%", @{miscchar}~%@{endcolour})}
#VAR buffer {%replace( @{buffer}, "^", @{miscchar}~^@{endcolour})}
#VAR buffer {%replace( @{buffer}, "*", @{miscchar}~*@{endcolour})}
#VAR buffer {%replace( @{buffer}, "(", @{miscchar}~(@{endcolour})}
#VAR buffer {%replace( @{buffer}, ")", @{miscchar}~)@{endcolour})}
#VAR buffer {%replace( @{buffer}, "-", @{miscchar}~-@{endcolour})}
#VAR buffer {%replace( @{buffer}, "_", @{miscchar}~_@{endcolour})}
#VAR buffer {%replace( @{buffer}, "=", @{miscchar}~=@{endcolour})}
#VAR buffer {%replace( @{buffer}, "+", @{miscchar}~+@{endcolour})}
#VAR buffer {%replace( @{buffer}, "|", @{miscchar}~|@{endcolour})}
#VAR buffer {%replace( @{buffer}, "{", @{miscchar}~{@{endcolour})}
#VAR buffer {%replace( @{buffer}, "}", @{miscchar}~}@{endcolour})}
#VAR buffer {%replace( @{buffer}, "\", @{miscchar}~\@{endcolour})}
#VAR buffer {%replace( @{buffer}, "/", @{miscchar}~/@{endcolour})}
#VAR buffer {%replace( @{buffer}, ";", @{miscchar}~;@{endcolour})}
#VAR buffer {%replace( @{buffer}, ":", @{miscchar}~:@{endcolour})}
#VAR buffer {%replace( @{buffer}, "@", @{miscchar}~@@{endcolour})}
#VAR buffer {%replace( @{buffer}, 1, @{miscchar}1@{endcolour})}
#VAR buffer {%replace( @{buffer}, 2, @{miscchar}2@{endcolour})}
#VAR buffer {%replace( @{buffer}, 3, @{miscchar}3@{endcolour})}
#VAR buffer {%replace( @{buffer}, 4, @{miscchar}4@{endcolour})}
#VAR buffer {%replace( @{buffer}, 5, @{miscchar}5@{endcolour})}
#VAR buffer {%replace( @{buffer}, 6, @{miscchar}6@{endcolour})}
#VAR buffer {%replace( @{buffer}, 7, @{miscchar}7@{endcolour})}
#VAR buffer {%replace( @{buffer}, 8, @{miscchar}8@{endcolour})}
#VAR buffer {%replace( @{buffer}, 9, @{miscchar}9@{endcolour})}
#VAR buffer {%replace( @{buffer}, 0, @{miscchar}0@{endcolour})}
#VAR lenth {%len( @buffer)}
#VAR buffer {%insert( "&P", @{buffer} , @lenth+1)}
~ooc @buffer
buffer=%null


Thanks.
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Wed Mar 15, 2006 10:22 am   
 
It is because of the database character you are having issues. If you disable it in "View\Preferences\Special Characters" then your script starts working.

How you make the script work while the database character is enabled I have no idea.
_________________
Taz :)
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Mar 15, 2006 10:54 pm   
 
Have you tried using the quote character?

~&P instead of &P, for example.
_________________
EDIT: I didn't like my old signature
Reply with quote
Pocket_Balrog
Newbie


Joined: 09 Feb 2006
Posts: 6

PostPosted: Wed Mar 15, 2006 11:42 pm   
 
Well, I got it to work changing:

#VAR buffer {%insert( "&P", @{buffer} , @lenth+1)}

to

#VAR buffer {%insert( "&p", @{buffer} , @lenth+1)}

However, it only works if you place a ( in the message first. Any idea how to fix that?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
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

© 2009 Zugg Software. Hosted by Wolfpaw.net