mIRC Home    About    Download    Register    News    Help

Print Thread
#248181 26/09/14 04:27 AM
Joined: Sep 2014
Posts: 83
H
Babel fish
OP Offline
Babel fish
H
Joined: Sep 2014
Posts: 83
I have this code:

on *:load:{
var %slotwin Nobody Won the game YET!
echo 3 -a !slot machine loaded.
}

on *:TEXT:*has sent you*:?:{
if (%amounttipped > 1) { /msg #thedogecasino Sorry, 1 is the limit. | msg DogeWallet tip $2 %amounttipped | HALT }

if ($nick == DogeWallet)
{
var %symbol.0 9,1 Ɖ
var %symbol.1 0,6plum
var %symbol.2 0,1Bar
var %symbol.3 0,4cherry
var %symbol.4 0,7orange
var %symbol.5 1,8lemon
var %symbol.6 11,4buzz
var %symbol.7 4,12 7 
var %symbol.8 1,0 A 
}
if (%flood [ $+ [ $nick ] ]) {
.notice $nick Please Slow down on the triggers. (Once per 5s)
set -u10 %stopslot 1
return
}
if (%stopslot == 1) { halt }
;if ($nick == %slotnick) { msg # Only ONE pull on the slots per turn, let someone else play. Or wait a moment and try again. | halt }
;elseif (%slotnick != $nick) set %slotnick $nick
var %slot1 %symbol. [ $+ [ $rand(0,8) ] ]
;set %slotnick $nick
var %slot2 %symbol. [ $+ [ $rand(0,8) ] ]
var %slot3 %symbol. [ $+ [ $rand(0,8) ] ]
msg $chan %slot1 %slot2 %slot3
if (%slot1 == %slot2) && (%slot1 == %slot3) {
msg $chan 3!!!4W7E 4H7A4V7E4 A7 W4I7N4N7E4R3!!!
msg $chan Way to GO $+($nick,!!!) You have just won the jar containing Ɖ1,000!!)
msg $chan .ttip $nick 1000
msg $chan 3!!!4W7E 4H7A4V7E4 A7 W4I7N4N7E4R3!!!
}
}
}

on *:TEXT:*:#:{
inc -u3 %xpf
if (%xpf >= 6) { halt }
if ($1 == !winner) { msg $chan The last winner was: $+(%slotwin,$chr(36)) | halt }
if ($1 == !slut) { describe # Gives a dirty hooker to $nick and a 20$ bill to pay for it! | halt }
if ($1 == !jar) { msg # The pot is now: Ɖ1,000 | halt }
}



the only problem is. when I load it into Remote... it does not comply...the "has sent you" through if ($nick == dogewallet) is all correct cause I have it working on other games... but it WILL NOT connect on this one.... what am I missing... its driving me BONKERS.

Joined: Aug 2013
Posts: 81
I
Babel fish
Offline
Babel fish
I
Joined: Aug 2013
Posts: 81
Change:
Code:
if ($nick == DogeWallet)
{


to
Code:
if ($nick == DogeWallet) {


So that the brace is on the same line as the if statement.

Also, in case the script is not working at all, is it in its own file or in the same file as other scripts you've made previously?

Iire #248183 26/09/14 04:39 AM
Joined: Sep 2014
Posts: 83
H
Babel fish
OP Offline
Babel fish
H
Joined: Sep 2014
Posts: 83
thanks but it diddnt fix it frown

if you can help.... im here now: https://titanpad.com/nYNJ6DjSie

its a live pad that we can edit at same time and see what to do

Joined: Jun 2014
Posts: 248
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Jun 2014
Posts: 248
Code:
on *:load:{
  var %slotwin Nobody Won the game YET!
  echo 3 -a !slot machine loaded.
}
on *:TEXT:*has sent you*:#:{ 
  if (%amounttipped > 1) { /msg #thedogecasino Sorry, 1 is the limit. | msg DogeWallet tip $2 %amounttipped | HALT } 
  if ($nick == DogeWallet)  {
    var %symbol.0 9,1 Ɖ
    var %symbol.1 0,6plum
    var %symbol.2 0,1Bar
    var %symbol.3 0,4cherry
    var %symbol.4 0,7orange
    var %symbol.5 1,8lemon
    var %symbol.6 11,4buzz
    var %symbol.7 4,12 7 
    var %symbol.8 1,0 A 
  }
  if (%flood [ $+ [ $nick ] ]) {
    .notice $nick Please Slow down on the triggers. (Once per 5s)
    set -u10 %stopslot 1
    return
  }
  if (%stopslot == 1) { halt }
  ;if ($nick == %slotnick) { msg # Only ONE pull on the slots per turn, let someone else play. Or wait a moment and try again. | halt }
  ;elseif (%slotnick != $nick) set %slotnick $nick
  var %slot1 %symbol. [ $+ [ $rand(0,8) ] ]
  ;set %slotnick $nick
  var %slot2 %symbol. [ $+ [ $rand(0,8) ] ]
  var %slot3 %symbol. [ $+ [ $rand(0,8) ] ]
  msg $chan %slot1 %slot2 %slot3
  if (%slot1 == %slot2) && (%slot1 == %slot3) {
    msg $chan 3!!!4W7E 4H7A4V7E4 A7 W4I7N4N7E4R3!!!
    msg $chan Way to GO $+($nick,!!!) You have just won the jar containing Ɖ1,000!!) 
    msg $chan .ttip $nick 1000
    msg $chan 3!!!4W7E 4H7A4V7E4 A7 W4I7N4N7E4R3!!!
  }
}
on *:TEXT:*:#:{ 
  inc -u3 %xpf
  if (%xpf >= 6) { halt }
  if ($1 == !winner) { msg $chan The last winner was: $+(%slotwin,$chr(36)) | halt }
  if ($1 == !slut) { describe # Gives a dirty hooker to $nick and a 20$ bill to pay for it! | halt }
  if ($1 == !jar) { msg # The pot is now: Ɖ1,000 | halt }
}

Last edited by Belhifet; 26/09/14 06:21 PM.

Link Copied to Clipboard