<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/821" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2002-01-11T03:49:00-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/821</id>

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-11T03:49:00-04:00</updated>

		<published>2002-01-11T03:49:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3700#p3700</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3700#p3700"/>
		<title type="html"><![CDATA[Scramble]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3700#p3700"><![CDATA[
anywant please help me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":sad:" title="Sad"><br>i got 2 problem on this tcl: <br><br>proc pub_game_score {nick uhost hand chan arg} { <br>global game game_players game_teams <br>if {[string tolower $chan] == [string tolower $game(chan)]} { <br>if {!$game(game)} { <br>putserv "PRIVMSG $chan : No game started! $game(command_start) for next game." <br>} else { <br>set i 0 <br>if {$game(team)} { <br>if {[array names game_teams] != ""} { <br>putserv "PRIVMSG $chan :02[format "%-4s" "Num"][format "%-15s" "Team"][format "%-6s" "Score"]Nicks (Round $game(round) of $game(rounds))02" <br>foreach team [array names game_teams] { <br>incr i <br>regsub -all " " $game_players($team) ", " nick <br>putserv "PRIVMSG $chan :[format "%-4s" $i.][format "%-15s" $team][format "%-6s" $game_teams($team)]$nick" <br>} <br>putserv "PRIVMSG $chan :End of teams" <br>} else { <br>putserv "PRIVMSG $chan :There are no teams yet " <br>} <br>} else { <br>if {[array names game_players] != ""} { <br>putserv "PRIVMSG $chan :02[format "%-4s" "Num"][format "%-15s" "Nick"]Score (Round $game(round) of $game(rounds))02" <br>foreach nick [array names game_players] { <br>incr i <br>putserv "PRIVMSG $chan :[format "%-4s" $i.][format "%-15s" $nick]$game_players($nick)" <br>} <br>putserv "PRIVMSG $chan :-- || --" <br>} else { <br>putserv "PRIVMSG $chan :No players have yet to score" <br>} <br>} <br>} <br>} <br>} <br><br>that script make bot reply to chan: <br>&lt;GameBod&gt; Num Nick Score <br>&lt;GameBod&gt; 1. Player1 1 <br>&lt;GameBod&gt; 2. Player2 2 (winner) <br><br>Quetion 1. what should i do to make bot reply it to chan: <br>&lt;GameBod&gt; 1. Player2 2 (winner), 2. Player1 1, etc(depand on how many player who play) <br><br><br>proc pub_game_giveup {nick uhost hand chan arg} { <br>global game game_players game_teams game_guesses <br>if {[string tolower $chan] == [string tolower $game(chan)]} { <br>if {!$game(game)} { <br>putserv "PRIVMSG $chan :No game started! $game(command_start) for next game." <br>} elseif {[info exists game(question)]} { <br>if {$game(team)} { <br>set game(temp2) 0 <br>foreach game(temp) [array names game_players] { <br>if {[lsearch -exact [string tolower $game_players($game(temp))] [string tolower $nick]] != -1} { <br>set game(temp2) 1 <br>} <br>} <br>if {!$game(temp2)} { <br>putserv "PRIVMSG $chan :Error $nick: You have not yet joined a team, type $game(command_team) to do so" <br>return 0 <br>} <br>} <br>incr game(round) <br>putserv "PRIVMSG $game(chan) :The answer is $game(answers)! Next question." <br><br><br>if {$game(type) == 2} { <br>putserv "PRIVMSG $game(chan) :Clearing Cache!" <br>} elseif {$game(type) == 1} { <br>putserv "PRIVMSG $game(chan) :Hint: $game(question)" <br>if {$game(type) == 1} { <br>set game(temp) "" <br>foreach i $game(answers) { <br>append game(temp) "$i, " <br>} <br>set game(temp) [string trimright $game(temp) ", "] <br>putserv "PRIVMSG $game(chan) :The answer is $game(temp)!" <br>} else { <br>putserv "PRIVMSG $game(chan) :Word: $game(scram_answer)" <br>putserv "PRIVMSG $game(chan) :The answer is $game(answers)" <br>} <br>} <br>unset game(question) <br>game_killtimers 1 <br>utimer 15 game_init <br>game_rounds <br>} <br>} <br>} <br><br>these script make bot skip the question. <br><br>Question 2. what should i do to make bot have limit on skip.. exp 3 times skip and he will ignore that user 'n continiu the game. <br><br>thanks for helping .... <br>best regards for all scripter<br><br><br><p>Statistics: Posted by Guest — Fri Jan 11, 2002 3:49 am</p><hr />
]]></content>
	</entry>
	</feed>
