Jump to content

!quote


Silent

Recommended Posts

Posted

just asking this, im gonna make a .txt called quote.txt can some make a script so when i type !quote it takes a random line of the quote.txt and says it?

Peace out,

Silent.

Posted (edited)
on *:SIGNAL:mta.command:{
 if ($3 == !quote) mta.say $1 $read(quote.txt)
}

Edited by Guest
Posted

I have something like this for tips in PartyServer but it's more complicated looking. Oli made it some time ago

just switch tip with quote... it also has a join message to let them know that the tips exist... that's a join.txt file

on *:SIGNAL:mta.command:{
 var %a = $iif($4 == $null,$2,$mta.findid($1,$4))
 if $3 == !tip {
   if %a == -1 mta.msg $1 $2 Error - Invalid ID.
   elseif $mta.name($1,%a) == unknown mta.msg $1 $2 Error - Invalid ID.
   else mta.msg $1 %a $read($scriptdirtips.txt,$rand(1,$lines($scriptdirtips.txt)))
 }
}
on *:SIGNAL:mta.join:{
 mta.msg $1 $2 $read($scriptdirjoin.txt,$rand(1,$lines($scriptdirjoin.txt)))
}

maybe better or worse.. dunno but it works.

Posted
on *:SIGNAL:mta.command:{
 if ($1 == !quote) mta.say $1 $read(quote.txt)
}

 if ($3 == !quote) 

:fist:

lol, of course. Had a tiring day :P

/me waves to Oli with /help $read :mrgreen:

  • Recently Browsing   0 members

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