User Control Panel
Advertisements

HELP US, HELP YOU!

Mayabot Alert?

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help
View unanswered posts
Author Message
Calum
Not Yet a God
Not Yet a God


Joined: 21 Feb 2004
Posts: 373
Location: england
Reputation: 34.7Reputation: 34.7Reputation: 34.7

PostPosted: Mon Feb 23, 2004 5:36 am    Post subject: Reply with quote

I need help I have this
Quote:
if ($msg =~ /^alert (.*)$/) {
$self->set_name("$name")
$self->set_status("HDN");
$self->set_status("NLN");
&rename(Solubot);
}


but it doesnt work any ideas on how to fix?
Back to top
Rameses
Senior Member
Senior Member


Joined: 02 Feb 2004
Posts: 182

Reputation: 31.1Reputation: 31.1Reputation: 31.1

PostPosted: Mon Feb 23, 2004 5:39 am    Post subject: Reply with quote

I'd help if I knew what the command is supposed to do, hehe... Laughing
Back to top
Calum
Not Yet a God
Not Yet a God


Joined: 21 Feb 2004
Posts: 373
Location: england
Reputation: 34.7Reputation: 34.7Reputation: 34.7

PostPosted: Mon Feb 23, 2004 5:42 am    Post subject: Reply with quote

read the name Mayabot alert <- Alert Is A Kinda giveaway RazzRazzRazz (if *lazy* still dont know what i mean :a popup)
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Mon Feb 23, 2004 1:58 pm    Post subject: Reply with quote

QUOTE(Calum @ Feb 23 2004, 12:36 AM)
I need help  I have this
Quote:

if ($msg =~ /^alert (.*)$/) {
$self->set_name("$name")
$self->set_status("HDN");
$self->set_status("NLN");
&rename(Solubot);
}


but it doesnt work any ideas on how to fix?

Try putting quotes around the value in &rename

Code:
&rename ("Solubot");

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
farkie
God Like
God Like


Joined: 15 Nov 2003
Posts: 673

Reputation: 3.4Reputation: 3.4Reputation: 3.4

PostPosted: Mon Feb 23, 2004 3:33 pm    Post subject: Reply with quote

WRONG! its this :

Code:
<br />if ($msg =~ /^alert (.*)$/) {<br /> <br />        $msn->set_status('HDN');<br />        $msn->set_name("$1");<br />        $msn->set_status('HDN');<br />        $msn->set_status('NLN');<br />        &send($self, "alert sent...", "$username");<br />        $msn->set_name("Solubot")     <br />}<br /><br />


And for the old template its :

Code:
<br />                       if ($msg =~ /^\!alert (.*)$/) {<br /> <br />        $msn->set_status('HDN');<br />        $msn->set_name("$1");<br />        $msn->set_status('HDN');<br />        $msn->set_status('NLN');<br />        &send($self, "alert sent", "$username");<br />        $msn->set_name("Solubot")     <br />}<br />


Very Happy always happy to help Very Happy
Back to top
farkie
God Like
God Like


Joined: 15 Nov 2003
Posts: 673

Reputation: 3.4Reputation: 3.4Reputation: 3.4

PostPosted: Mon Feb 23, 2004 3:35 pm    Post subject: Reply with quote

QUOTE(Rameses @ Feb 22 2004, 09:39 PM)
I'd help if I knew what the command is supposed to do, hehe...  Laughing

what do *lazy* think its means?
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Mon Feb 23, 2004 7:40 pm    Post subject: Reply with quote

QUOTE(farkie @ Feb 23 2004, 10:33 AM)
WRONG!

The &rename sub isn't wrong, just if it exists and works...

Code:
&rename ("Solubot");<br /><br />...<br /><br />sub rename {<br />   my $name = shift;<br />   $msn->set_name ($name);<br />}

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
farkie
God Like
God Like


Joined: 15 Nov 2003
Posts: 673

Reputation: 3.4Reputation: 3.4Reputation: 3.4

PostPosted: Mon Feb 23, 2004 9:41 pm    Post subject: Reply with quote

might not exist Wink
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Tue Feb 24, 2004 3:13 am    Post subject: Reply with quote

Why do people post "it doesn't work?" I mean if you want help we need some help from you. In this case the error, the rename sub, and info as to what globals you are using would all be helpfull. Don't expect to get much thats helpfull unless you give us enough to help you.
_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
Rameses
Senior Member
Senior Member


Joined: 02 Feb 2004
Posts: 182

Reputation: 31.1Reputation: 31.1Reputation: 31.1

PostPosted: Tue Feb 24, 2004 3:45 am    Post subject: Reply with quote

Lol, thanks Eric. Wink (As long as I'm writing this, I've got a kind of off topic quesiton lol.. what is your avatar/pic next to your name in your siggy? Is it an E? an 8? :blink: )
Back to top
Rameses
Senior Member
Senior Member


Joined: 02 Feb 2004
Posts: 182

Reputation: 31.1Reputation: 31.1Reputation: 31.1

PostPosted: Tue Feb 24, 2004 3:48 am    Post subject: Reply with quote

Quote:
what do *lazy* think its means?


....I said I don't know.... But now I know... I think... I work with AIM, not MSN.... Bah.. <_<
Back to top
GiL
Not Yet a God
Not Yet a God


Joined: 06 Jan 2004
Posts: 344

Reputation: 35.3Reputation: 35.3Reputation: 35.3Reputation: 35.3

PostPosted: Tue Feb 24, 2004 7:39 am    Post subject: Reply with quote

This will work:
Code:
<br />if ($msg =~ /^alert/) <br />{<br />       $msg =~ s/alert //;<br />       $self->set_status('HDN');<br />       $self->set_name("$msg");<br />       $self->set_status('NLN');<br />       &send($self, "I have sent the alert: $msg", "$username");<br />       $self->set_name("Solubot")     <br />}<br />
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help All times are GMT
Page 1 of 1

 



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