User Control Panel
Advertisements

HELP US, HELP YOU!

Nameme Command with Display Name?

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands
View unanswered posts
Author Message
Saphire
Newbie
Newbie


Joined: 03 Apr 2005
Posts: 26
Location: Hertfordshire, England
Reputation: 13.8

PostPosted: Mon Apr 04, 2005 8:05 pm    Post subject: Reply with quote

Hi, <_<

I have the nameme code but i want it so that you have BOTS NAME ::: MESSAGES "Lalalala from whoever"

If somone can help. Thanks.

Code:
if($msg =~ /^nameme (.*)/)<br />{<br />   ($mainname,$theclient) = split (/@/,$username);<br />$bot->{store}->{UsersBotSettings}->{UserDisplayName} = "$1 by $mainname";<br />     $msn->setName( "$bot->{store}->{Settings}->{DisplayName} $bot->{store}->{UsersBotSettings}->{UserDisplayName}" );<br /><br />}
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Mon Apr 04, 2005 9:24 pm    Post subject: Reply with quote

Just add a ":::" between the two hashrefs in the setName command. This isn't rocket science.
_________________
Current Site (2008) http://www.cuvou.com/
Back to top
JTW
God Like
God Like


Joined: 07 Mar 2004
Posts: 582
Location: Maidstone
Reputation: 73.3
votes: 4

PostPosted: Tue Apr 05, 2005 1:51 am    Post subject: Reply with quote

Also you might want to check this line
Code:
$msn->setName( "$bot->{store}->{Settings}->{DisplayName}


i see 3 potential errors right away

_________________
"Help us, Help you" - BotDepot
Back to top
Saphire
Newbie
Newbie


Joined: 03 Apr 2005
Posts: 26
Location: Hertfordshire, England
Reputation: 13.8

PostPosted: Tue Apr 05, 2005 7:46 am    Post subject: Reply with quote

Thanks you two. I see what he means about the code ill have to edit it. Razz

See ya! Smile

Aswell Draget posted somthing about the Display name on the code just after i posted this. Razz

EDIT: I have edited the code so it works properlly!

Code:
my $name = $1;<br />$msn->setName("Saphire-Bot ::: Shoutouts: $name by $username");<br />&send($self,"[$bot_name] Display name set to $1", "$username");
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands 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