Jump to content

im lost


Squall

Recommended Posts

i have no clue on what i am doing but like my nana says "if u no u cannot do it then go for it" so i tried to try make something but my trys failed like usually

on *:SIGNAL:mta.join:{

}

mta.say $1 Events: $rand

on *:SIGNAL:mta.command: {

if ($3 == /msg eventchange ) mta.text $1 $read($scriptdir $+ events.txt,$rand(0,$lines($scriptdir $+ events.txt)))

}

}

mta.say $1 Events: $rand

i no thats wrong i tried it and nothing i was trying to make well by looking at it you can probly tell i was trying to make some thing to popup and say what events there are and be able to change them with a msg command only for admins
Link to comment

on *:SIGNAL:mta.join:{
 mta.say $1 Events: %mta.event. [ $+ [ $1 ] ]
}
on *:SIGNAL:mta.command: {
 if ($3 == !eventchange) {
   if ($4 != $null) {
     %mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$4)
   }
   else {
     %mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$rand(1,$lines($scriptdir $+ events.txt)))
   }
 }
 mta.say $1 Events: %mta.event. [ $+ [ $1 ] ]
}

Usage:

!eventchange [Event ID or leav it blank for random]

Link to comment

Try this:

on *:SIGNAL:mta.join:{ 
 ;Parameters:
 ;$1 = Server
 ;$2 = ID
 ;$3 = Command
 ;$4- = Parameters
 mta.say $1 Events: %mta.event. [ $+ [ $1 ] ]
} 

you know.. this ;Parameters don't do anything in the script like anything with ; sing in front, so they are just not needed, that is there just like a tip.. So this can NOT fix anything...... :roll:

Link to comment

k but it still dont work. is this right

on *:SIGNAL:mta.join:{

;Parameters:

;$1 = Server

;$2 = ID

;$3 = Command

;$4- = Parameters

mta.say $1 Events: %mta.event. [ $+ [ $1 ] ]

}

on *:SIGNAL:mta.command: {

if ($3 == !eventchange) {

if ($4 != $null) {

%mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$4)

}

else {

%mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$rand(1,$lines($scriptdir $+ events.txt)))

}

}

mta.say $1 Events: %mta.event. [ $+ [ $1 ] ]

}

Link to comment

Hint: put the code in the REMOTE tab of the script editor:

Do this when you have focus on the main window:

1. ALT+R

2. ALT+R (Yes twice, not once, twice)

3. Paste the code:

on *:SIGNAL:mta.join: {
 mta.say $1 Events: %mta.event. [ $+ [ $1 ] ]
}
on *:SIGNAL:mta.command: {
 if ($3 == !eventchange) {
   if ($4 != $null) {
     %mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$4)
   }
   else {
     %mta.event. [ $+ [ $1 ] ] = $read($scriptdir $+ events.txt,$rand(1,$lines($scriptdir $+ events.txt)))
   }
 }
 mta.say $1 Events: %mta.event. [ $+ [ $1 ] ]
} 

4. Worky

Link to comment
nope it still say -

* /1: not connected to server (line 7, Events.mrc)

and now my mirc dont work (jst like my brain) would you b able to send me a saved script file

Try:

on *:SIGNAL:mta.join: {
 mta.say $1 Events: %mta.event. [ $+ $1 ]
}
on *:SIGNAL:mta.command: {
 if ($3 == !eventchange) {
   if ($4 != $null) {
     %mta.event. [ $+ $1 ] = $read($scriptdir $+ events.txt,$4)
   }
   else {
     %mta.event. [ $+ $1 ] = $read($scriptdir $+ events.txt,$rand(1,$lines($scriptdir $+ events.txt)))
   }
 }
 mta.say $1 Events: %mta.event. [ $+ $1 ]
}

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...