stylo Posted March 14, 2007 Share Posted March 14, 2007 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
lil Toady Posted March 14, 2007 Share Posted March 14, 2007 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))) } Link to comment
stylo Posted March 14, 2007 Author Share Posted March 14, 2007 Not working, might be i do something wrong.. *edit NVM problem fixed* thx Link to comment
stylo Posted March 15, 2007 Author Share Posted March 15, 2007 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.. Link to comment
lil Toady Posted March 15, 2007 Share Posted March 15, 2007 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
stylo Posted March 15, 2007 Author Share Posted March 15, 2007 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? Link to comment
lil Toady Posted March 15, 2007 Share Posted March 15, 2007 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
stylo Posted March 16, 2007 Author Share Posted March 16, 2007 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
Scooby Posted March 17, 2007 Share Posted March 17, 2007 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 Link to comment
stylo Posted April 1, 2007 Author Share Posted April 1, 2007 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 Link to comment
Scooby Posted April 1, 2007 Share Posted April 1, 2007 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 Some people have such trouble adding just 1 line to a script.... 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 there is nothing wrong with the line so it must be u maybe u added it twice? 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. Link to comment
stylo Posted April 1, 2007 Author Share Posted April 1, 2007 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 Link to comment
Scooby Posted April 1, 2007 Share Posted April 1, 2007 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
stylo Posted April 2, 2007 Author Share Posted April 2, 2007 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 ... Link to comment
Scooby Posted April 2, 2007 Share Posted April 2, 2007 it should only show the name if that person is in the server. Link to comment
{_AntiFreak_} Posted April 5, 2007 Share Posted April 5, 2007 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
Scooby Posted April 5, 2007 Share Posted April 5, 2007 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
Recommended Posts