Memo system for chatspace

Platform:  mIRC
Published  Sep 06, 2008
Updated  Sep 08, 2008
does exactley what it says on the tin
just copy into remotes

REVISED AND EDITED

Thank you for your comments and as such have edited the script as suggested

P.S sorry for my stupid arse comments

eek alias Memo {
dialog -m -Memo -memo
}

menu status,channel,menubar {
Memo System:/Memo
}

dialog -Memo {
title "Memo System Scripted by Danny"
size -1 -1 420 390
button "Check", 1, 010 005 100 22,left push flat
button "Read", 2, 110 005 100 22,left push flat
button "Send", 3, 210 005 100 22,left push flat
button "Delete", 4, 310 005 100 22,left push flat
box "Place in this box the nick name you are sending a memo to", 9, 005 042 410 46
edit "", 5, 010 057 400 22,
box "Place in the box the memo number you want to read or delete", 10, 005 90 410 46
edit "", 6, 010 107 400 22,
box "Place in this box the text you are memoing", 11, 005 137 410 90
edit "", 7, 010 160 400 60, autohs
box "WHEN CHECKIN OR READIN A MEMO PLEASE DOUBLE CLICK SLOWLY", 12, 005 230 410 155
edit "", 8, 010 252 400 124, sort multi
halt
}
on *:dialog:-memo:sclick:*:{
if ($did = 1) { services memo $me check | did -ra $dname 8 %memo }
if ($did = 2) { services memo $me read $did(6,seltext) | did -ra $dname 7 Memo number %memo1 Seny by %memo3 | did -ra $dname 8 ~MEMO~ %memo2 }
if ($did = 4) { services memo $me delete $did(6,seltext) | did -ra $dname 8 Message deleted | did -ra $dname 7 }
if ($did = 3) {
If (!$did(5).text) {
noop $input(You need to enter a nickname)
halt
}
Else { set %mmsg $did($dname, 7).text | /services memo $did(5,seltext) add %mmsg | /did -ra $dname 8, Memo sent }
}
}

raw 275:*:{
set -u1 %memo $1- | halt
}
raw 270:*:{
set -u1 %memo1 $2 | set -u1 %memo3 $3- | halt
}
raw 276:*:{
set -u1 %memo2 $2- | halt
}
raw 269:*:{
/notice $me 12 $1- | halt
}

Comments

Sign in to comment.
Eugenio   -  Sep 07, 2008
I never said it was "shoot"
I looked for a MEMO system ages ago but they were all for ircD and using MEMOserv
 Respond  
irchainscriptz   -  Sep 07, 2008
ughhhhhhhhh you all confussing me LMAO ..... Wheres napalm he can make sense of this rofl
 Respond  
Eugenio   -  Sep 07, 2008
He edited the code and for some reason removed the dialog.
 Respond  
EL   -  Sep 06, 2008
Hmm wheres the dialog man?.`-.-ยด
 Respond  
Eugenio   -  Sep 06, 2008
$did is dialog ID
He has an alias without a dialog but is trying to use Dialog ID
/me rates 1
 Respond  
mountaindew   -  Sep 06, 2008
Danny, what did you do to the script?
 Respond  
jakobLUVSpizza   -  Sep 06, 2008
what is $did
this is what it said in my status window:

* Invalid parameters: $did (line 418, remote.ini)
 Respond  
Eugenio   -  Sep 06, 2008
Exactly, its not like I did a Napa, just check that there is text in the editboxes, if not then noop saying they must enter text, would take no more than 5 minutes to code it and update.
 Respond  
jonesy44   -  Sep 06, 2008
Danny, lol, you need BASIC Checks!
 Respond  
Eugenio   -  Sep 06, 2008
Not at all, I think most people would tell you thats an error since I got no less than that when I posted codes with errors similar.
It might be obvious but some people might forget, just test the code or w/e
Plus you could have used this time arguing with me to fixed it, all you have to do is check if there is no text then noop with an error message saying "You must enter a nick to send a MEMO"
 Respond  
Eugenio   -  Sep 06, 2008
It shows you WHERE
Does NOT say you must and if nothing is entered then I just get an error:
"add not a registered nickname"
If you used noop then no there would be no errors and people would know they MUST enter something into the edit box.
 Respond  
danny29   -  Sep 06, 2008
please note in the dialog box above each text area is an explantiion as what to put in the boxs for exapmle box "Place in this box the nick name you are sending a memo to", 9, 000 032 400 22
?????
 Respond  
Eugenio   -  Sep 06, 2008
It was definetly worth replying to, its not that I dont want to enter a nick but if I dont then I get an error, also what has that got to do with me using the internet ?!?
its not user friendly at all and its bug infested so yes I WOULD like you to state that you MUST enter text, also that would prevent any errors.
np for the .timer suggestion
/me rates 2
 Respond  
danny29   -  Sep 06, 2008
yes sry the memo3 and 5 were supposed to msg forgot to re edit before i posted my bad
 Respond  
mountaindew   -  Sep 06, 2008

the varaibles are used the second they are set and thats why they unset after 3 seconds please look at the codes more thoroughly before posting commment

I know, that's why I said:

Edit: my bad. It seems that you don't use %memo3 and also %memo5

Which unset after 1 second. But nowhere else in the code do you use %memo3 or %memo5.
 Respond  
danny29   -  Sep 06, 2008
the rest of your comment wasnt worth replying for example "you should check that they have actually entered a nick and maybe use noop to let them know you need text in the edit boxes." if u dont know you have to enter a nick then maybe you shoudnt be useing the internet in anyway would you also like me to state u have to enter "text" in order to send a memo as u may think it can read your mind????
How ever the timer suggestion is greatly appreciated and will put that into use ty
 Respond  
Eugenio   -  Sep 06, 2008
ROFL @ how he responded to MD
anyhow I know the MEMO dialog was already open, please read the whole comment before posting replies.

Also you didnt reply to the top 75% of my comment.
 Respond  
danny29   -  Sep 06, 2008
the varaibles are used the second they are set and thats why they unset after 3 seconds please look at the codes more thoroughly before posting commment
 Respond  
danny29   -  Sep 06, 2008
the reason for the /dialog: '-Memo' name in use (line 2, Memo System) when u sent urself a memo was due to the fact the memo system was open already
If someone sends you a memo it auto opens the memo system
And how big do you want the buttons???? if u have an eye site problem get some glasses :)
 Respond  
mountaindew   -  Sep 06, 2008
Code
 

I'm confused about this part. You set a variable and then unset it (btw you can just do set -u1 %memo3 $1-, but that's not the point...), and then you never use the variables that you set.

Edit: my bad. It seems that you don't use %memo3 and also %memo5
 Respond  
Eugenio   -  Sep 06, 2008
First off halt your timers using "." (.timer)
also you dont need "/" before commands

The dialog is ugly tbh, and your buttons are too small.

add not a registered nickname you should check that they have actually entered a nick and maybe use noop to let them know you need text in the edit boxes.

[17:47:pm] -> -Eugene- Eugene Eugene has sent a memo to you
-
* /dialog: '-Memo' name in use (line 2, Memo System)
I got that when I sent myself a MEMO

 Respond  
Eugenio   -  Sep 06, 2008
hmmn looks good and what Ive wanted for a while
/me tests
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.