|
| Author |
Message |
ugly.breath Newbie

Joined: 09 Mar 2005 Posts: 18
 
|
Posted: Sat Mar 12, 2005 6:05 am Post subject: |
|
|
I have made a simple code using perl: (ps i wrote this for MAYA coz it seems it doesnt have many commands and I love MAYA!!! )
I think it will work in any bot if you add the command and the goto end stuff!! Plz don't be angry if it is way too simple or already done, it is my first command ever!! and I am learning perl as I code!! Here is the code:
Write Personal Reminder:
| Code: | | <br />{<br /> open (DATA, ">>./Logs/Users/Notes/$username.txt");<br /> print DATA "$1 ... ";<br /> close(DATA); <br /> &send($self, "[NOTES] 27 You continued your notes with: '$1'");<br />} |
Read Personal Reminder:
| Code: | | <br />{<br /> open (DATA, "./Logs/Users/Notes/$username.txt");<br /> @line = <DATA>;<br /> close(DATA);<br /> $self->sendmsg("7(#) Notes (#)\n\n27@line"); <br />} |
Plz reply about improvements.
EDIT M4RTIN has just informed me that this code will work on most bots!!! |
|
| Back to top |
|
 |
M4RTIN Member

Joined: 31 Dec 2004 Posts: 134
  
|
Posted: Sat Mar 12, 2005 7:56 am Post subject: |
|
|
Heh, Cool.
This would work on most bot's, Not just maya.
Good command being's its one of your first. 
But, I think its been done before. |
|
| Back to top |
|
 |
ugly.breath Newbie

Joined: 09 Mar 2005 Posts: 18
 
|
Posted: Sun Mar 13, 2005 5:55 am Post subject: |
|
|
Yea thanks!!! Did you notice that the site was down for a while?
btw it is my very first code not one of my first ones 
But thanks for the comment!!! |
|
| Back to top |
|
 |
M4RTIN Member

Joined: 31 Dec 2004 Posts: 134
  
|
Posted: Sun Mar 13, 2005 7:05 am Post subject: |
|
|
| Yeah, Yesturday the forum's datbase had a error in, or a piece of the forum's code was erroring. |
|
| Back to top |
|
 |
fusioncroc Newbie

Joined: 05 Feb 2005 Posts: 30 Location: England
  
|
Posted: Sun Mar 13, 2005 8:17 am Post subject: |
|
|
Ugly.Breath That code looks pretty good  |
|
| Back to top |
|
 |
ugly.breath Newbie

Joined: 09 Mar 2005 Posts: 18
 
|
Posted: Mon Mar 21, 2005 8:34 am Post subject: |
|
|
Thanks I'm making a new code but it isnt working. its a pm code and im stuck. check out the perl questions to see my article |
|
| Back to top |
|
 |
Dazzy Agent

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Mon Mar 21, 2005 3:36 pm Post subject: |
|
|
Remember that you need a sub name (or doesnt maya do that:S!) also you need to recieve the varibles with other templates, im guessing you didnt do that with this because its in some kind of elsif, although there isnt a elseif statment...
i don't know maya, so im only takling for other templates but io would have thought it would need some kind of way to distiguish the codes |
|
| Back to top |
|
 |
ugly.breath Newbie

Joined: 09 Mar 2005 Posts: 18
 
|
Posted: Thu Sep 15, 2005 5:41 am Post subject: I'm Back online wq00t |
|
|
| I had truble online for a while and my bot stopped production. Thanks for the feedback guys!! |
|
| Back to top |
|
 |
ScottyGN Newbie

Joined: 12 Feb 2006 Posts: 15
      
|
Posted: Mon Feb 20, 2006 12:54 am Post subject: |
|
|
i got error:
| Code: | [20-2-2006/01:55:47] remind.maya produced the following error.
syntax error at (eval 30) line 1, near "<br />{"
syntax error at (eval 30) line 1, near "<br /> print"
syntax error at (eval 30) line 1, near "<br /> close"
Not enough arguments for send at (eval 30) line 1, near ""[NOTES] 27 You continued your notes with: '$1'")"
syntax error at (eval 30) line 1, near "<br />}" |
anyone in for helping  |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Mon Feb 20, 2006 2:11 am Post subject: |
|
|
The <br /> was left over from when the forum was converted over. Turn all the <br /> into "enter's" and you should be all set. _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
ScottyGN Newbie

Joined: 12 Feb 2006 Posts: 15
      
|
Posted: Mon Feb 20, 2006 12:52 pm Post subject: hehe |
|
|
new feature: time, example: remind me I'm an asshole in 2 minutes
bot replies: okay, ill remind you that you are an asshole in 2 minutes |
|
| Back to top |
|
 |
|