User Control Panel
Advertisements

HELP US, HELP YOU!

slots
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Review
View unanswered posts
Author Message
purcelly
God Like
God Like


Joined: 10 Jun 2004
Posts: 560
Location: North West, England
Reputation: 35.1Reputation: 35.1Reputation: 35.1Reputation: 35.1

PostPosted: Sun Jan 23, 2005 11:58 am    Post subject: Reply with quote

so far i have this
Quote:
sub slots
{
    my ($bot,$self, $user, $name, $msg, $color) = @_;

   #open our file
my $filename = "stuff/quotes/slots.txt";
open (FILE, "< $filename") or die "Could not open $filename";

#load the lines into a array
my @lines = ;

#close the file
close (FILE);

#remove any extra lines
chomp (@lines);

#get our random line
my $str =  $lines[int(rand(scalar(@lines)))];

#return our line
return "slot Symbols:\n$str";
  
}
{
Category => 'Casino',
Description => 'Play slots',
Usage => '!slots',
};


And slots.txt is this

Quote:
(xx)
Razz
Smile
Sad
(O)
+o(
Surprised
:-#
<Surprised)
(*lazy*)
(n)


can you tell me what i would need to add/remove to make it choose 3 of them randomly and if they pick 3 same the person gets points say 5 points?


--------------------------
did i post in the right place?
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Sun Jan 23, 2005 12:25 pm    Post subject: Reply with quote

Try taking a look at mine HERE

It does most things....use it to learn :rolleyes:
Back to top
purcelly
God Like
God Like


Joined: 10 Jun 2004
Posts: 560
Location: North West, England
Reputation: 35.1Reputation: 35.1Reputation: 35.1Reputation: 35.1

PostPosted: Sun Jan 23, 2005 12:28 pm    Post subject: Reply with quote

cheers dazzy

that helped

--------------------------

whiel i have a post here

will andromeda commands work on evolution?
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Sun Jan 23, 2005 12:39 pm    Post subject: Reply with quote

Just slight modification, the hash at the top and any settings ect..
Back to top
purcelly
God Like
God Like


Joined: 10 Jun 2004
Posts: 560
Location: North West, England
Reputation: 35.1Reputation: 35.1Reputation: 35.1Reputation: 35.1

PostPosted: Sun Jan 23, 2005 12:50 pm    Post subject: Reply with quote

so to make them work just remove a hash

and change like the menu settings/usage etc...
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Sun Jan 23, 2005 12:59 pm    Post subject: Reply with quote

QUOTE(purcelly-tech @ Jan 23 2005, 12:50 PM)
so to make them work just remove a hash

and change like the menu settings/usage etc...

Dont remove it , replace it with it, its the varibls it recieves (my ($self,$user.....) = @_Wink

Copy it from another evolution command and yes all the settings...
Back to top
purcelly
God Like
God Like


Joined: 10 Jun 2004
Posts: 560
Location: North West, England
Reputation: 35.1Reputation: 35.1Reputation: 35.1Reputation: 35.1

PostPosted: Sun Jan 23, 2005 1:56 pm    Post subject: Reply with quote

ok cheers
Back to top
purcelly
God Like
God Like


Joined: 10 Jun 2004
Posts: 560
Location: North West, England
Reputation: 35.1Reputation: 35.1Reputation: 35.1Reputation: 35.1

PostPosted: Sun Jan 23, 2005 2:01 pm    Post subject: Reply with quote

ok cheers

dazzy

------------------

off topic again

-----------------

when running andromeda to see what its like

i get this
Quote:
Starting now...
SERVER ERROR : Empty event received from server : ''


and when i try to talk to the bot using blab it doesnt respond

also it doesnt repsond when using commands like !menu
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Sun Jan 23, 2005 2:25 pm    Post subject: Reply with quote

If you know it's offtopic, then why, instead of double posting, don't you go and make a new topic?

"SERVER ERROR : Empty event received from server : '' is meant to appear, and it is likely that that is not what is causing your brain (or the bot's) to not work. Make sure you didn't change any vital coding Smile.

_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
purcelly
God Like
God Like


Joined: 10 Jun 2004
Posts: 560
Location: North West, England
Reputation: 35.1Reputation: 35.1Reputation: 35.1Reputation: 35.1

PostPosted: Sun Jan 23, 2005 2:35 pm    Post subject: Reply with quote

no i havnt edited anything just

set-up the bot

i had this problem last time i used andromeda and never got it sorted out
Back to top
button79
Newbie
Newbie


Joined: 01 Jan 2006
Posts: 5

Reputation: 4.3Reputation: 4.3Reputation: 4.3Reputation: 4.3

PostPosted: Sun Jan 01, 2006 9:45 pm    Post subject: Why Reply with quote

Dazzy wrote:
Try taking a look at mine


And why the hell would one want to do something like that...please tell me....
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Sun Jan 01, 2006 9:49 pm    Post subject: Re: Why Reply with quote

button79 wrote:
Dazzy wrote:
Try taking a look at mine


And why the hell would one want to do something like that...please tell me....


For fun? For practice, maybe? People don't experiment with programming by creating huge 4 MB projects now do they?

And stop posting so much useless stuff, this topic is ancient, you're just trying to up your post count and it's getting old. Quality over quantity, 100 posts is nothing if they are just pointless spam.

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Sun Jan 01, 2006 9:52 pm    Post subject: Reply with quote

Cer, it's a spam bot. You can tell by the signature.
_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Sun Jan 01, 2006 9:58 pm    Post subject: Reply with quote

I wonder how/why the spam bot seems to know what it's talking about, and to quote only part of Dazzy's post... Confused
_________________
Current Site (2008) http://www.cuvou.com/
Back to top
mikeo
Newbie
Newbie


Joined: 07 May 2005
Posts: 38
Location: Amsterdam, The Netherlands
Reputation: 12.9

PostPosted: Mon Jan 02, 2006 9:06 am    Post subject: Reply with quote

Cer wrote:
I wonder how/why the spam bot seems to know what it's talking about, and to quote only part of Dazzy's post... Confused


I was also thinking that.

I think he is just someone who wants to try and do like a spam bot. Probably he has no life if he doesn't quit with it soon.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Review All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group