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 

"Crack the code" game - only for user with voice

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
xamrex
Voice


Joined: 28 Sep 2008
Posts: 13

PostPosted: Tue Nov 18, 2008 1:21 pm    Post subject: "Crack the code" game - only for user with voice Reply with quote

HI
Here is a game:
http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&id=911
Here is a code:
http://wklej.org/id/19304/
Can someone Edit this script?
I wanna that only people with voice on my channel can run this game.

I tryied:
bind pub v|v !ctc tls:ctc
But it doesnt work Sad Can someone help me?
Back to top
View user's profile Send private message
game_over
Voice


Joined: 26 Apr 2007
Posts: 29

PostPosted: Tue Nov 18, 2008 2:05 pm    Post subject: Reply with quote

Code:
if {$tls_chan != $chan} { return }

to
Code:
if {[isvoice $nick $chan]!=0} {return 0}


for all procs Smile
Back to top
View user's profile Send private message
dj-zath
Op


Joined: 15 Nov 2008
Posts: 134

PostPosted: Tue Nov 18, 2008 2:07 pm    Post subject: Reply with quote

you try:

Code:

pub -v !word proc


??

DjZ
Smile Smile
Back to top
View user's profile Send private message Visit poster's website
xamrex
Voice


Joined: 28 Sep 2008
Posts: 13

PostPosted: Wed Nov 19, 2008 2:44 pm    Post subject: Reply with quote

game_over wrote:
Code:
if {$tls_chan != $chan} { return }

to
Code:
if {[isvoice $nick $chan]!=0} {return 0}


for all procs Smile


Doesnt work (Person without voice can run this game too)
#################################3
dj-zath wrote:
pub -v !word proc


Now nobady can run this game Sad((( Even person with op Sad(
Back to top
View user's profile Send private message
game_over
Voice


Joined: 26 Apr 2007
Posts: 29

PostPosted: Thu Nov 20, 2008 8:51 am    Post subject: Reply with quote

yes i wrong not
Code:
if {![isvoice $nick $tls_chan]} { return }


this is tested Smile
Back to top
View user's profile Send private message
xamrex
Voice


Joined: 28 Sep 2008
Posts: 13

PostPosted: Thu Nov 20, 2008 10:13 am    Post subject: Reply with quote

game_over wrote:
yes i wrong not
Code:
if {![isvoice $nick $tls_chan]} { return }


this is tested Smile


Doesnt work too.
Nobady can run this script Sad(
Back to top
View user's profile Send private message
game_over
Voice


Joined: 26 Apr 2007
Posts: 29

PostPosted: Thu Nov 20, 2008 11:14 am    Post subject: Reply with quote

hummm on my bot last work. Only if i have +v he listen me.
Back to top
View user's profile Send private message
xamrex
Voice


Joined: 28 Sep 2008
Posts: 13

PostPosted: Thu Nov 20, 2008 4:10 pm    Post subject: Reply with quote

;(((
ON my chan it doesnt work Sad((
Back to top
View user's profile Send private message
game_over
Voice


Joined: 26 Apr 2007
Posts: 29

PostPosted: Fri Nov 21, 2008 8:43 am    Post subject: Reply with quote

are you set
Code:
set tls_chan "#game"

to your chan

this is last i can think like potential problem

- get the original code and then replase

- rehash your bot
Back to top
View user's profile Send private message
xamrex
Voice


Joined: 28 Sep 2008
Posts: 13

PostPosted: Fri Nov 21, 2008 10:17 am    Post subject: Reply with quote

Yes,
This is my code:

http://wklej.org/id/20231/
Yhm,, Working Very Happy
sorry 4 bad info.
I dont know why before it doesnt work Razz

Btw.
I wanna too If someone Write !ctc, and this person dont have voice, bot should answer: You need voice to run game"
Back to top
View user's profile Send private message
game_over
Voice


Joined: 26 Apr 2007
Posts: 29

PostPosted: Fri Nov 21, 2008 11:38 am    Post subject: Reply with quote

Code:
 if {![isvoice $nick $tls_chan]} { putquick "PRIVMSG $tls_chan :You need voice to run game!"; return 0}


change same if who i say to change before Smile
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 -> Script Requests 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