mIRC/SysReset Scripting thread

Reply

Join Date: May 2005
Posts: 44
Reputation: Kiel is an unknown quantity at this point 
Solved Threads: 0
Kiel Kiel is offline Offline
Light Poster

mIRC/SysReset Scripting thread

 
0
  #1
Jun 15th, 2005
Howdy, I hope this is the correct forum to post in.

I'm interested in some little codes you're proud of, and I'll be willing to help with anything you need, just ask.

Looking forward to it.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 44
Reputation: Kiel is an unknown quantity at this point 
Solved Threads: 0
Kiel Kiel is offline Offline
Light Poster

Re: mIRC/SysReset Scripting thread

 
0
  #2
Jun 16th, 2005
I'll get the ball rolling.
Here's a small example of a tiny tiny extremely basic russian-roulette-if-you-lose-you-get-kicked script.
Requirements: logged on bot with +o/op powers.

First part, is the "change RR on or off".
HTML and CSS Syntax (Toggle Plain Text)
  1. on !*:TEXT:!RR *:#:{
  2. if (($nick == Kiel)) { set %RRONOFF $2 {
  3. if ((%RRONOFF == ON)) { //msg $chan 12Roulette is now4 ON12. There are 6 chambers in this kick-gun, type "4!spinRR12" to take your chances. Land on the bullet chamber and you get kicked. }
  4. ELSE { //msg $chan 12 Roulette is now4 $2 $+ 12. }
  5. }
  6. }
  7. }

Second part, is the RR.
HTML and CSS Syntax (Toggle Plain Text)
  1. on !*:TEXT:!spinRR:#:{
  2. if ((%RRONOFF == ON)) {
  3. %RRNum = $rand(1,6) | {
  4. if ((%RRNum == 1)) { //msg $chan 12Sorry4 $nick $+ 12, you've hit the bullet chamber. Bye bye. | //kick $chan $nick Bullet chamber! }
  5. ELSE { //msg $chan 12You didn't land on the bullet chamber this time4 $nick $+ 12, but spin again, I dare ya'. }
  6. ELSE { //msg $chan 12Sorry4 $nick $+ 12, but 4Roulette 12is not enabled. Please ask 4Kiel12 to enable it. } }
  7. }
  8. }
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 210
Reputation: suRoot is an unknown quantity at this point 
Solved Threads: 8
suRoot's Avatar
suRoot suRoot is offline Offline
Posting Whiz in Training

Re: mIRC/SysReset Scripting thread

 
0
  #3
Jun 18th, 2005
gr8 amazing usage of nested if statement of mirc scripting... maybe you'll move up to l337 bot progamming next... this is basic hello world if statements zzz
NIKE just mod it!


HND Business IT
CCNA
MSCE
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 44
Reputation: Kiel is an unknown quantity at this point 
Solved Threads: 0
Kiel Kiel is offline Offline
Light Poster

Re: mIRC/SysReset Scripting thread

 
0
  #4
Jun 19th, 2005
Originally Posted by suRoot
gr8 amazing usage of nested if statement of mirc scripting... maybe you'll move up to l337 bot progamming next... this is basic hello world if statements zzz
HTML and CSS Syntax (Toggle Plain Text)
  1. ;;Kiel's Casino 2005
  2. on !*:TEXT:!Create User:#:{
  3. if ((% [ $+ [ $nick ] $+ ] .savings == $null)) { set % [ $+ [ $nick ] $+ ] .savings 100 | //msg $chan 12A Savings Account with4 $ $+ 10012 has been created for4 $nick $+ 12. }
  4. if ((% [ $+ [ $nick ] $+ ] .money == $null)) { set % [ $+ [ $nick ] $+ ] .money 90 | //msg $chan 12Kiel's Casino has given4 $ $+ 9012 to4 $nick $+ 12. }
  5. }
  6.  
  7. on !*:TEXT:!TakeMoney *:#:{
  8. if (($nick == Kiel)) {
  9. if (($4 = $null)) { dec % [ $+ [ $2 ] $+ ] .money $3 | //msg $chan 4Kiel12 has taken4 $ $+ $3 12from4 $2 12for no reason. }
  10. ELSE { dec % [ $+ [ $2 ] $+ ] .money $3 | //msg $chan 4Kiel12 has taken4 $ $+ $3 12from4 $2 $+ 12, reason:4 $4- }
  11. }
  12. }
  13.  
  14. on !*:TEXT:!GiveMoney *:#:{
  15. if (($nick == Kiel)) {
  16. if (($4 = $null)) { inc % [ $+ [ $2 ] $+ ] .money $3 | //msg $chan 4Kiel12 has given4 $ $+ $3 12to4 $2 12for no reason. }
  17. ELSE { inc % [ $+ [ $2 ] $+ ] .money $3 | //msg $chan 4Kiel12 has given4 $ $+ $3 12to4 $2 $+ 12, reason:4 $4- }
  18. }
  19. }
  20.  
  21. on !*:TEXT:!Withdraw *:#:{
  22. if ((% [ $+ [ $nick ] $+ ] .savings >= $2)) { inc % [ $+ [ $nick ] $+ ] .money $2 | dec % [ $+ [ $nick ] $+ ] .savings $2 | //msg $chan 4 $ $+ $2 12has been withdrawn from your Savings Account,4 $nick $+ 12. | //notice $nick Account Balance: % [ $+ [ $nick ] $+ ] .money - Savings Account Balance: % [ $+ [ $nick ] $+ ] .savings | halt }
  23. ELSE { //msg $chan 12Sorry4 $nick $+ 12, your Savings Account does not hold enough money to withdraw4 $ $+ $2 $+ 12. Your Savings Account currently holds4 $ $+ % [ $+ [ $nick ] $+ ] .savings | halt }
  24. }
  25.  
  26. on !*:TEXT:!Deposit *:#:{
  27. if ((% [ $+ [ $nick ] $+ ] .money >= $2)) { dec % [ $+ [ $nick ] $+ ] .money $2 | inc % [ $+ [ $nick ] $+ ] .savings $2 | //msg $chan 4 $ $+ $2 12has been deposited into your savings account,4 $nick $+ 12. | //notice $nick Account Balance: % [ $+ [ $nick ] $+ ] .money - Savings Account Balance: % [ $+ [ $nick ] $+ ] .savings | halt }
  28. ELSE { //msg $chan 12Sorry4 $nick $+ 12, you're not holding enough money to deposit4 $ $+ $2 12into your savings account. You're currently holding4 $ $+ % [ $+ [ $nick ] $+ ] .money | halt }
  29. }
  30.  
  31. on !*:TEXT:!ATM:#:{
  32. if ((% [ $+ [ $nick ] $+ ] .savings == $null)) { //msg $chan 12You do not own a Savings Account4 $nick $+ 12. Please type4 !Create User12 to make one. }
  33. ELSE { //msg $chan 4 $+ $nick $+ 12's Savings Account Balance:4 $ $+ % [ $+ [ $nick ] $+ ] .savings }
  34. }
  35.  
  36. on !*:TEXT:!Wallet:#:{
  37. if ((% [ $+ [ $nick ] $+ ] .money == $null)) { //msg $chan 12You do not yet have a Casino Wallet4 $nick $+ 12. Please type 4!Create User12, and Kiel's Casino will create one for you, plus give you4 $ $+ 9012. If you seek financial aid, please ask 4Kiel12. }
  38. ELSE { //msg $chan 4 $+ $nick $+ 12's wallet currently holds:4 $ $+ % [ $+ [ $nick ] $+ ] .money }
  39. }
  40.  
  41. on !*:TEXT:!KCGL:#: //notice $nick Games List: 4Numbers12 - 1 in 2 chance of winning. Max4 $ $+ 100 12bet. 4Broke12 - A game where you can win4 $ $+ 1012, but only playable if you have no money.4 ATM12 - Type 4!ATM12 or 4!Wallet12 to check your current account balance and money held. | //notice $nick 4Roulette12 - Minimum4 $ $+ 100 12bet, pay off is a huge 10 to 1. } }
  42.  
  43. on !*:TEXT:!Casino *:#:{
  44. if (($nick == Kiel)) {
  45. set %CasinoOnOff $2 {
  46. if ((%CasinoOnOff == open)) { //msg $chan 4Kiel's Casino 14(Version 2.0)12 is now open for business! Type4 !Gamble <game> <amount to bet> 12to play. For a list of games, type4 !KCGL12. This listing service is only available when the Casino is open. If this is your first time playing, you need to create your username. Type4 !Create User 12to do so. }
  47. if ((%CasinoOnOff == closed)) { //msg $chan 4Kiel's Casino12 is now closed temporarily. Please ask him to re-open it for business. }
  48. if ((%CasinoOnOff == Under-Construction)) { //msg $chan 4Kiel's Casino12 is now open for business, but currently under heavy construction. Only some games, if any at all, are available.
  49. }
  50. }
  51. }
  52. }
  53.  
  54. on !*:TEXT:!Gamble *:#:{
  55. if (($2 == Roulette)) {
  56. if ((% [ $+ [ $nick ] $+ ] .money < $3)) || ((% [ $+ [ $nick ] $+ ] .money == $null)) { //msg $chan 12Sorry4 $nick $+ 12, you don't have enough money to bet4 $ $+ $3 $+ 12. If you have no money, please type4 !Gamble Broke12 for a no-cost chance of winning4 $ $+ 1012. If you have some money, gamble with a lower amount. If this is your first time at Kiel's Casino, please type 4!Create User12. To check your current amount of money you have, type4 !ATM 12or4 !Wallet12. | halt }
  57. ELSE {
  58. if (($3 < 100)) { //msg $chan 12Sorry4 $nick $+ 12, you must bet at least4 $ $+ 10012 to play this risky game. The pay off is 10 to 1. }
  59. ELSE { set %TempCasinoVar $3 | %TempCasinoVar = $3 * 10 | %RouletteCasinoVar = $rand(1,10)
  60. {
  61. if ((%RouletteCasinoVar == 10)) { //msg $chan 12You're extremely lucky4 $nick $+ 12! You've just won4 $ $+ %TempCasinoVar $+ 12! | inc % [ $+ [ $nick ] $+ ] .money %TempCasinoVar | halt }
  62. ELSE { //msg $chan 12Sorry4 $nick $+ 12, you just lost4 $ $+ $3 $+ 12. | dec % [ $+ [ $nick ] $+ ] .money $3 | halt }
  63. } } } }
  64. if (($2 == Broke)) {
  65. if ((% [ $+ [ $nick ] $+ ] .money == $null)) { //msg $chan 12Please type4 !Create User 12to create an account with Kiel's Casino. }
  66. if ((% [ $+ [ $nick ] $+ ] .money < 1)) { %BrokeCasinoVar = $rand(1,5) } {
  67. if ((%BrokeCasinoVar == 1)) { //msg $chan 12Congratulations4 $nick $+ 12, you've won4 $ $+ 10.12 Try not to lose all your money again. | halt }
  68. ELSE { //msg $chan 12Sorry4 $nick $+ 12, this game is only available to those who have an account with no money. | halt } }
  69. }
  70. if (($2 == Numbers)) {
  71. if (($3 > % [ $+ [ $nick ] $+ ] .money)) || ((% [ $+ [ $nick ] $+ ] .money == $null)) { //msg $chan 12Sorry4 $nick $+ 12, you don't have enough money to bet4 $ $+ $3 $+ 12. Please gamble with a lower amount or create an account using4 !Create User12. To check your current amount of money you have, type4 !ATM12 or 4!Wallet12. | halt }
  72. ELSE { %NumbersCasinoVar = $rand(1,2) } {
  73. if (($3 > 100)) { //msg $chan 12Sorry4 $nick $+ 12, you can only bet up to4 $ $+ 10012 on this game. | halt }
  74. if ((%NumbersCasinoVar == 1)) { //msg $chan 12You're lucky4 $nick $+ 12! You just won4 $ $+ $3 $+ 12! | inc % [ $+ [ $nick ] $+ ] .money $3 | halt }
  75. ELSE { //msg $chan 12Sorry4 $nick $+ 12, but you lost4 $ $+ $3 $+ 12. | dec % [ $+ [ $nick ] $+ ] .money $3 | halt }
  76. }
  77. }
  78. }

Keke.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC