User Control Panel
Advertisements

HELP US, HELP YOU!

help with my "adding ranks...."

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help
View unanswered posts
Author Message
clelcaz
Newbie
Newbie


Joined: 03 Apr 2004
Posts: 36

Reputation: 26.2Reputation: 26.2Reputation: 26.2

PostPosted: Sun Apr 11, 2004 4:25 pm    Post subject: Reply with quote

(sorry if this is in the rong section, i couldnt find a place for it)

hey, i was trying to add a new section to my morphious bot. (1.6), but im kinda a n00b Razz i managed to get add angel correct, add it to the menu, make it show a list of angels, but thats it....

this is my coding for remove angel (which doesnt work)
Code:
<br /># Morphious Bot v1.3 Remove Angel Command.<br /># Made By Clelcaz@hotmail.com<br /><br />if ($msg =~ /^rem angel (.*)$/) <br />{<br />&RemAngel($1);<br /><br />&send($self, "You removed $1 from angels list.");<br />}<br /><br />#Description: Remove an angel.<br />


this is my coding for ComAngel (in commands) (also didnt work)
Code:
<br /># Morphious Bot v1.3 Angels Commands Script<br /># Made By Clelcaz@hotmail.com<br /><br />sub ComMod {<br />my ($self, $username, $msg) = @_;<br /><br />opendir (DIR, "Commands/Angels");<br /><br />foreach my $file (sort(grep(!/^\./, readdir(DIR)))) {<br />$name = $file;<br />$name =~ s/.pl//g;<br />if ($msg =~ /^$name/i) {<br />open('com',"./Commands/Angels/$file");<br />@comsub=<com>;<br />close('com');<br />$comsub=join('',@comsub);<br />eval($comsub);<br />}<br /><br />}<br />closedir DIR;<br /><br />}<br />1;<br />


this is my coding for #8 from the menu... (also didnt work)
Code:
<br /># Morphious Bot v1.3 Angels Command Menu Script<br /># Made By Clelcaz@hotmail.com<br /><br />if ($msg eq "8") <br />{<br />   opendir (DIR, "./Commands/Angels");<br />   foreach $file (sort(grep(!/^\./, readdir(DIR)))) {<br />   open (FILE, "Commands/Angels/$file");<br />   @content = <FILE>;<br />   close FILE;<br />   chomp @content;<br />   foreach $line (@content) {<br />   if ($line =~ /^\#Description: (.*)$/) {<br />   $des = $1;<br />   }<br />   }<br />   $file =~ s/.pl$//g;<br />   $menu .= "<char>$file  - $des \n" unless ($file =~ /^[1-9]/i);<br />   $des = undef;<br />   }<br />   close DIR;<br />   $menu =~ s/<char>/$char/g;<br />   &send($self, "Angel Commands: \n\n$menu");<br />   $menu = undef;<br />}<br />


i think thats it.... could anyone please tell me what ive done rong??? i copied from all the other same 1s of different ranks. but modified what i thought i had to. if you can help please do.

from clelcaz Razz
Back to top
Lays
Newbie
Newbie


Joined: 08 Apr 2004
Posts: 20

Reputation: 25.7Reputation: 25.7Reputation: 25.7

PostPosted: Sun Apr 11, 2004 11:10 pm    Post subject: Reply with quote

http://www.bot-depot.com/forums/index.php?showtopic=1027

Very Happy Thats how i got mine to work!
But for some reason the mods isn't working.. <_<
Back to top
m4g3_o_f4t3
Newbie
Newbie


Joined: 19 Mar 2004
Posts: 42
Location: New Zealand
Reputation: 26.8Reputation: 26.8Reputation: 26.8

PostPosted: Sun Apr 11, 2004 11:58 pm    Post subject: Reply with quote

Creating a new rank you need to do more than just that....i will help you over msn if you need Smile
Back to top
clelcaz
Newbie
Newbie


Joined: 03 Apr 2004
Posts: 36

Reputation: 26.2Reputation: 26.2Reputation: 26.2

PostPosted: Thu Apr 15, 2004 2:53 pm    Post subject: Reply with quote

ohh lol, tnx Smile
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Thu Apr 15, 2004 3:34 pm    Post subject: Reply with quote

on thing with your comangel...its got commod at the top
Back to top
clelcaz
Newbie
Newbie


Joined: 03 Apr 2004
Posts: 36

Reputation: 26.2Reputation: 26.2Reputation: 26.2

PostPosted: Thu Apr 15, 2004 3:38 pm    Post subject: Reply with quote

lol, i noticed that ages ago, and ive now changed it from angel to co-owner, and my co-owner commands work perfectly, rem, view, shout, alert, everything...

exept....

what doesnt work properly is my add co-owner, add admin, add smod, add mod, add fc, :S:S:S its not caus of my co-owner thing caus that was a while back... ive tried rebooting etc, but it still wont work properly.....

i havnt edited my add commands, but i used michael's (aurora guy) veiw commands, caus of 1.6's errors with them....

so yea :S any ideas lol


p.s. my bot is clelcaz@msn.com (any1 please add it, free ranks when it works Razz )

i will be going to bed very shortly though
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