PM Requester.

By Zsadist on Aug 19, 2007

Just simply load into your remotes. And it self explains in the script.

on *:open:?:{
  if (%pmd) { set %pmd2 $1- }
  else { set %pmd $1- }
  if (%pmnick) { set %pmnick2 $1- }
  else { set %pmnick $nick }
  if (%pmdate) { set %pmdate2 $fulldate }
  else { set %pmdate $fulldate }
  msg $nick 14,1[15,1-0,1=15,1-14,1]0,1 A15,1uto 0,1M15,1essage14,1:15,1 Please wait for an answer. You shall be notified the answer. 14,1[15,1-0,1=15,1-14,1]
  close -m $nick
  echo -a 14,1[15,1-0,1=15,1-15,1]15,1 You have been PM'd by %pmnick $+ , To view the message, type: /view ][ To accept this message, type: /accept ][ to Decline this message, type: /decline 14,1[15,1-0,1=15,1-14,1]
}
alias view { if (%pmd) { window -c @query | window +el @query 300 15 750 100 | titlebar @query | aline -p @query || %pmdate || %pmnick  PM'd you saying: %pmd }
  elseif (%pmd2) { window -c @query | window +el @query 300  15 250 480 | titlebar @query | aline -p @query %pmdate2 ][ %pmnick2 PM'd you saying: %pmd2 }
}
alias accept { if (%pmd) { query %pmnick | msg %pmnick 14,1[15,1-0,1=15,1-14,1]0,1 A15,1uto 0,1M15,1essage14,1:15,1 You're PM has been accepted. 14,1[15,1-0,1=15,1-14,1] | unset %pm* }
  elseif (%pmd2) { query %pmnick2 | msg %pmnick2 14,1[15,1-0,1=15,1-14,1]0,1 A15,1uto 0,1M15,1essage14,1:15,1 You're PM has been accepted. 14,1[15,1-0,1=15,1-14,1] | unset %pm* }
}
alias decline { if (%pmd) { msg %pmnick 14,1[15,1-0,1=15,1-14,1]0,1 A15,1uto 0,1M15,1essage14,1:15,1 You're query has been declined. 14,1[15,1-0,1=15,1-14,1] | unset %pm* }
  elseif (%pmd2) { msg %pmnick2 14,1[15,1-0,1=15,1-14,1]0,1 A15,1uto 0,1M15,1essage14,1:15,1 You're query has been declined. 14,1[15,1-0,1=15,1-14,1] | unset %pm* }
}

Comments

Sign in to comment.
ZoMBie   -  Nov 16, 2007

gabbed into remotes and no auto-explain message...dunno why

 Respond  
Clouds   -  Oct 08, 2007

When I tested this script out, I edited the code and removed the colours as people get fussy with colours.

 Respond  
RubixCube   -  Oct 07, 2007

You should include a timer to automatically decline the query. Perhaps a .timercheck 0 15 /decline? Otherwise, it\'s not bad. I would remove the colors.

 Respond  
Clouds   -  Oct 07, 2007

Good script, but it would be more usful if it was multi server.

 Respond  
Joshuaxiong1   -  Oct 06, 2007

I don\'t really like the auto msg are in bold

 Respond  
Zsadist   -  Aug 21, 2007

I do not see why, it is self-explainatory

 Respond  
guest598594   -  Aug 20, 2007

well...i rly think u should put a description in introduction...

 Respond  
Zsadist   -  Aug 20, 2007

I knew I was missing something. Thanks.

 Respond  
Scakk   -  Aug 19, 2007

The @query box did not allow you to view the entire message and there was no scroll bar to move over to view the rest of the text. Here is a version that should allow people to view it better.

The only part I changed:

alias view { if (%pmd) { window -c @query | window +el @query 300 15 750 100 | titlebar @query | aline -p @query || %pmdate || %pmnick  PM\'d you saying: %pmd }
  elseif (%pmd2) { window -c @query | window +el @query 300  15 250 480 | titlebar @query | aline -p @query %pmdate2 ][ %pmnick2 PM\'d you saying: %pmd2 }
}
 Respond  
Abbas   -  Aug 19, 2007

ok

 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.