Jump to content

help with script


stylo

Recommended Posts

Hi, me and my friend are making bots for our server, I saw in an server that when you type a command like !lol you see: '' is laughing @

I dont know the script to get

I only have: !lol : is laughing out loud.

Can someone help me and send a good script for it.. :)

Thnx

Link to comment
on *:SIGNAL:mta.command:{
 var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$iif($mta.getid($1,$4),$v1,-1)),$2)
 if ($3 == !lol) mta.text $1 $mta.nick($1,$2) is laughing out loud $iif(%a != -1,$iif(%a != $2,@ $mta.nick($1,%a)))
 elseif ($3 == !wb) mta.text $1 $mta.nick($1,$2) says welcome back $iif(%a != -1,$iif(%a != $2,$mta.nick($1,%a)))
}

Link to comment

yes, just any command in format

elseif ($3 == !something) mta.text $1 my text

just make sure that the first command always has an 'if (blablabla) {}' and others 'elseif (blablabla) {}'

or just use 'if' everywhere, but that's gonna use more cpu

that $iif(%a != -1,$iif(%a != $2,$mta.nick($1,%a))) is there to show a name if it's specified or show nothing if it's not

Link to comment
yes, just any command in format

elseif ($3 == !something) mta.text $1 my text

just make sure that the first command always has an 'if (blablabla) {}' and others 'elseif (blablabla) {}'

or just use 'if' everywhere, but that's gonna use more cpu

that $iif(%a != -1,$iif(%a != $2,$mta.nick($1,%a))) is there to show a name if it's specified or show nothing if it's not

This: $iif(%a != -1,$iif(%a != $2,$mta.nick($1,%a))) is need to do commands with ppl's names ?

Link to comment
  • 3 weeks later...

It doesnt work good!

!lol does work half it says: is laughing out loud and it should be:

!lol dave

is laughing out loud @ dave

and it says:

I type: !lol Dave

it says: is laughing out loud

and again: is laughiong out loud.. it says it 2 times :D

Link to comment
It doesnt work good!

!lol does work half it says: is laughing out loud and it should be:

!lol dave

is laughing out loud @ dave

and it says:

I type: !lol Dave

it says: is laughing out loud

and again: is laughiong out loud.. it says it 2 times :D

Some people have such trouble adding just 1 line to a script.... :shock:

if ur not good enough to add something so simple maybe u should ask me to add it to the script for u... ive asked for requests on what people want adding and noone ever says till after its released :roll:

there is nothing wrong with the line so it must be u :lol:

maybe u added it twice? :D

failing that, dont add it into ur existing script and risk breaking it,

make a new script called 'extras.mrc' and add it to that, then load it seperately, that way u wont lose ut extra commands when you update. :D

Link to comment
Srry, i made like you said a new .mrc file .. but still same problem,.

and i dont have that script twice ...

Well nvm can be im to stupid -_-'

srry for wasting ur time

Are u sure u removed it from ur main script?

search for !lol or whatever u called it, coz it shouldnt be showing twice.

make sure its totally removed.

if ur using the PRS script, u just need this in a new script:

on *:SIGNAL:mta.command: {
 var %a = $iif((!$4),$2,$iif(($prs.getid($1,$4) == $null),$2,$v1))
 if ($3 == !lol) mta.text $1 $mta.nick($1,$2) Is Laughing Out Loud $iif(%a != $2,At $mta.nick($1,%a))
}

Link to comment

Use this one

 elseif ($3 == !lol) {
   if ($4 == $null) {
     mta.text $1 mta.nick($1,$2) is laughing out loud!!!
   elseif (%a == -1) {
     mta.pm $1 $2 Error - Absent ID
   }
   elseif (%a == $2) {
     mta.text $1 mta.nick($1,$2) is laughing out loud at himself!!!
   }
   else {
     mta.text $1 Mta.nick($1,$2) is laughing out loud at mta.nick($1,%a) !!!
   }
 }

Link to comment

lmao theres like so many ways to make this script, and they all work for me:P

maybe u should give up stylo, or let some1 add it for u:P

edit:

on *:SIGNAL:mta.command:{ 
 var %a = $iif((!$4),$2,$iif(($prs.getid($1,$4) == $null),$2,$v1))
 if ($3 == !hi) mta.text $1 $iif(%a == $2,$mta.nick($1,$2) Says Hi Everyone!,$mta.nick($1,$2) Says Hi To $mta.nick($1,%a))
 elseif ($3 == !bye) mta.text $1 $iif(%a == $2,$mta.nick($1,$2) Says Bye Everyone!,$mta.nick($1,$2) Says Bye To $mta.nick($1,%a))
 elseif ($3 == !lol) mta.text $1 $iif(%a == $2,$mta.nick($1,$2) Is Laughing Out Loud!,$mta.nick($1,$2) Is Laughing Out Loud At $mta.nick($1,%a))
}

this works if u use prs...same line 3 times edited to give u an example.

u can use whatever text u want.

Link to comment
  • Recently Browsing   0 members

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