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

Alias for actions not working

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



Joined: 17 Feb 2014
Posts: 2

PostPosted: Mon Feb 17, 2014 1:36 pm    Post subject: Alias for actions not working Reply with quote

hey guys, brand new to forum tried to find an answer to this question on here.


#alias {autolooton} {#action {You receive %0 experience points for the kill} {cc get all all.corpse;cc get all all.remains}}

#alias {autolootoff} {#unaction {You receive %0 experience points for the kill} {cc get all all.corpse;cc get all all.remains}}

When I turn on autoloot it does nothing.. and for some reason I can't unaction any actions I have set. If I put in an action that I don't want to be able to change on the fly it still won't let me unaction it without editing my main.tin and reopening Wintin++

Any suggestions?

thanks!
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Mon Feb 17, 2014 10:22 pm    Post subject: Reply with quote

The %0 is used by the action, so you need to escape it so it's passed on to the action, which you can do by using %%0.

Code:

#alias {autolooton} {#action {You receive %%0 experience points for the kill} {cc get all all.corpse;cc get all all.remains}}

#alias {autolootoff} {#unaction {You receive %%0 experience points for the kill} {cc get all all.corpse;cc get all all.remains}}


Not sure about your problem with unaction, can you give an example?
Back to top
View user's profile Send private message Send e-mail
Clink



Joined: 17 Feb 2014
Posts: 2

PostPosted: Sat Feb 22, 2014 9:38 pm    Post subject: Reply with quote

Hey thanks for the response I figured it out using #math to turn it off and on. I think my wintin++ is broken or something.

An example would be I type #unaction to an action I have in place and nothing happens.


#action {bird flys} {smile}

when I type

#unactiion {bird flys} it does nothing
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Sat Feb 22, 2014 11:41 pm    Post subject: Reply with quote

Odd, works for me.
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