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

Help about ticker extra.

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



Joined: 24 Jan 2018
Posts: 15

PostPosted: Sun Feb 11, 2018 10:26 am    Post subject: Help about ticker extra. Reply with quote

I want to do some ticker ext,so I can change which tick's time free,like below:
Code:


#alias ti
{
        #var tick_name {%1};
        #var tick[$tick_name][cmd] {%2};
        #var tick[$tick_name][time] {%3};
        #ti {$tick_name} {#math $tick[$tick_name][cmd]} {$tick[$tick_name][time]};
}

#alias ts
{
        #var tick_name {%1};
        #var time_temp {%2};
        #ti {$tick_name} {$tick[$tick_name][cmd]} {$time_temp};
}



and :
Code:

ti {idle} {kick} {60}
#ti
#TICKER {idle}={$tick[$tick_name][cmd]} @ {60}



How replace the variable with it's value now?
_________________
TinTin Newbie
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3853

PostPosted: Sun Feb 11, 2018 11:07 am    Post subject: Reply with quote

Try:

Code:

#line sub var #tick {$tick_name} {#math $tick[$tick_name][cmd]} {$tick[$tick_name][time]};
Back to top
View user's profile Send private message Send e-mail
riper



Joined: 24 Jan 2018
Posts: 15

PostPosted: Sun Feb 11, 2018 10:16 pm    Post subject: Reply with quote

Code:
#alias ti
{
        #var tick_name {%1};
        #var tick[$tick_name][cmd] {%2};
        #var tick[$tick_name][time] {%3};
        #nop #ti {$tick_name} {#math $tick[$tick_name][cmd]} {$tick[$tick_name][time]};
        #line sub var #tick {$tick_name} {#math $tick[$tick_name][cmd]} {$tick[$tick_name][time]};
}


Code:
ti {idle} {kick} {60}
#ti
########################################################################### TICKERS ###########################################################################
#TICKER {idle}={#math kick} @ {60}

_________________
TinTin Newbie
Back to top
View user's profile Send private message
riper



Joined: 24 Jan 2018
Posts: 15

PostPosted: Sat Feb 17, 2018 11:38 pm    Post subject: Reply with quote

Crying Crying
Need more help Ecstatic
_________________
TinTin Newbie
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3853

PostPosted: Sun Feb 18, 2018 9:40 am    Post subject: Reply with quote

You probably don't want the #math in there. So try:

Code:

        #line sub var #tick {$tick_name} {$tick[$tick_name][cmd]} {$tick[$tick_name][time]};
Back to top
View user's profile Send private message Send e-mail
riper



Joined: 24 Jan 2018
Posts: 15

PostPosted: Mon Feb 19, 2018 3:08 am    Post subject: Reply with quote

yes,it works!
so I can use ticker free,better than zmud .
_________________
TinTin Newbie
Back to top
View user's profile Send private message
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