egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

mrc to tcl

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
l.kleijn
Voice


Joined: 18 May 2014
Posts: 22

PostPosted: Sun Jan 13, 2019 4:53 am    Post subject: mrc to tcl Reply with quote

Code:
on *:join:#: {
  if ($readini(barserv.ini,money,$nick) >= 0) { notice $nick You've been here before | halt }
  else /writeini barserv.ini money $nick 50.00 |  notice $nick You received 50.00 Euro to spend by me.
}
on *:text:.pay*:#: {
  if (%cmd == off) { notice $nick Wait until the commands working. | halt }
  if (%cmd == on) && ($2 == topic) && (10.00 >= $readini(barserv.ini,money,$nick)) { notice $nick You don't have enough money. | halt } else { notice $nick First there must be paid. | set %cmd off | timer 1 20 set %cmd on | notice $nick The payment will start. | msg %bot calc $readini(barserv.ini,money,$nick) - $readini(barserv.ini,costs,topic) | set %nick $nick | topic # $3- | halt }
}
on *:text:.+costs*:#: {
  if (%cmd == off) { notice $nick Wait until the commands working | halt }
  if (%cmd == on) { writeini barserv.ini costs $2 $3 | set %cmd off | timer 1 20 set %cmd on | halt }
}
on *:text:Calc*:?: {
  /writeini barserv.ini money %nick $6 | close -m
}
on *:text:.money:#: {
  notice $nick You have $readini(barserv.ini,money,$nick) Euro.
}


Can someone pls help me with mrc to tcl ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber