Jump to content

help with script


stylo

Recommended Posts

Posted

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

Posted
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)))
}

Posted

a problem, I added it, it works fine but when i copie it and change it to !wb

None is working !wb and !lol doesnt work

when i delete !wb than !lol works again..

Posted
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)))
}

Posted

If i want to make more, i ahve to past:

elseif ($3 == !wb) mta.text $1 $mta.nick($1,$2) says welcome back $iif(%a != -1,$iif(%a != $2,$mta.nick($1,%a)))

under it?

Posted

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

Posted
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 ?

Posted

yes, it checks to see if u added a valid name, Eg: !hi dave

if dave is in the server it would return the text and the name dave

says Hi dave

if dave is not there it would just show the text.

says Hi

  • 3 weeks later...
Posted

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

Posted
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

Posted

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

Posted
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))
}

Posted

The problem about showing twice is solved.. but it still wont show name..

I made a new .mrc file and did that script in it ...

Posted

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) !!!
   }
 }

Posted

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.

  • Recently Browsing   0 members

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