DazzaJay Posted September 19, 2007 Share Posted September 19, 2007 (if this is the wrong section, my bad, i couldnt find the MTA:MA + scripts section..... Has it been removed?) Heres what i have added to PRS.... elseif ($3 == !server) mta.text $1 PotholeStudios.com MTA Race-VDM-CnR Server! elseif ($3 == !website) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !site) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !web) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !afk) mta.text $1 $mta.nick($1,%a) is Away From Keyboard. elseif ($3 == !back) mta.text $1 $mta.nick($1,%a) has Returned. elseif ($3 == !bak) mta.text $1 Guess who's back, Back Again, $mta.nick($1,%a) $+ 's Back, RUN IN FEAR! elseif ($3 == !brb) mta.text $1 $mta.nick($1,%a) will Be Right Back. elseif ($3 == !poof) mta.text $1 $iif((!$4),There is a Poof in here., $mta.nick($1,%a) is a big Poof.) elseif ($3 == !stfu) mta.text $1 $iif((!$4),Everyone SHUT THE FUCK UP., $mta.nick($1,%a) SHUT THE FUCK UP.) elseif ($3 == !lol) mta.text $1 $mta.nick($1,%a) Laughs out loud. elseif ($3 == !lmao) mta.text $1 $mta.nick($1,%a) Laughs his arse off. elseif ($3 == !lmfao) mta.text $1 $mta.nick($1,%a) Laughs his fucking arse off. elseif ($3 == !rofl) mta.text $1 $mta.nick($1,%a) Rolls on the floor laughing. elseif ($3 == !ffs) mta.text $1 $mta.nick($1,%a) exclaims at the top of his voice, FOR FUCKS SAKE! elseif ($3 == !boom) mta.text $1 $mta.nick($1,%a) exploded in a blaze of glory! elseif ($3 == !drown) mta.text $1 $mta.nick($1,%a) is sleeping with the fishies. elseif ($3 == !cwin) mta.text $1 Cops Win! Mode Changed to Last Man Standing! elseif ($3 == !rwin) mta.text $1 Robbers Win! Mode Changed to Last Man Standing! elseif ($3 == !enemy) mta.text $1 Anyone see any Enemys? elseif ($3 == !win) mta.text $1 $mta.nick($1,%a) Wins and Jumps around in joy! elseif ($3 == !grats) mta.text $1 $iif((!$4),What? No Grats? You guys suck!,Congratulations $mta.nick($1,%a) $+ !) elseif ($3 == !gg) mta.text $1 Good Game Everyone! elseif ($3 == !gr) mta.text $1 Good Race Everyone! elseif ($3 == !suck) mta.text $1 $mta.nick($1,%a) Sucks ass. elseif ($3 == !donkey) mta.text $1 Who sucks Donkey Dick? $mta.nick($1,%a) Sucks Donkey Dick! elseif ($3 == !fu) mta.text $1 $iif((!$4),Fuck You., Fuck You and Everyone that looks like you $mta.nick($1,%a) $+ !) (This code wont work properly if you paste it into your PRS, as this forums Moron word censoring changes characters to ":" and such) Thats what i have added myself... and they all work..... BUT... some of them do things that i dont want them to do...... take !lol for example.... [PHS]Dan[AU]: !lol [PHS]Dan[AU] Laughs out loud. thats fine.... BUT if its typed like this.... [PHS]Dan[AU]: !lol Jonsey Jonsey Laughs out loud. Which i dont want it to do...... as some commands i want to only work for the person who typed the command... what do i change so only ceartian commands can have other names put in them... so the rest only show the name of the person who typed it. And how do i get Multiple names to show in a command..... Like.... [PHS]Dan[AU]: !lol Jonsey [PHS]Dan[AU] is Laughing out Loud at Jonsey. Link to comment
lil Toady Posted September 19, 2007 Share Posted September 19, 2007 change $mta.nick($1,%a) to $mta.nick($1,$2) where you want it to show the person who executed the command Link to comment
DazzaJay Posted September 19, 2007 Author Share Posted September 19, 2007 Thanks, i will get too it (i really should read up on what $1, $2 and all that crap auctually does...... but i think im doing pretty well for Guesswork) Link to comment
lil Toady Posted September 19, 2007 Share Posted September 19, 2007 $1 - Server ID $2 - Player ID most scripts set %a as the Player ID you are looking for Link to comment
[UVA]Bart Posted September 19, 2007 Share Posted September 19, 2007 try this dazza its basically everything Dan[AU] is Laughing out Loud at Jonsey. elseif ($3 == !lol) { if ($4 != $null) mta.text $1 $mta.nick($1,$2) Laughs Out Loud At $4 $+ ! else { mta.text $1 $mta.nick($1,$2) Is Laughing Out Loud $+ ! } } Link to comment
DazzaJay Posted September 19, 2007 Author Share Posted September 19, 2007 Thanks guys, iima get right to it Link to comment
DazzaJay Posted September 30, 2007 Author Share Posted September 30, 2007 oo, one more thing on this subject...... With all this code...... elseif ($3 == !server) mta.text $1 PotholeStudios.com MTA Race-VDM-CnR Server! elseif ($3 == !website) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !site) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !web) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !afk) mta.text $1 $mta.nick($1,%a) is Away From Keyboard. elseif ($3 == !back) mta.text $1 $mta.nick($1,%a) has Returned. elseif ($3 == !bak) mta.text $1 Guess who's back, Back Again, $mta.nick($1,%a) $+ 's Back, RUN IN FEAR! elseif ($3 == !brb) mta.text $1 $mta.nick($1,%a) will Be Right Back. elseif ($3 == !poof) mta.text $1 $iif((!$4),There is a Poof in here., $mta.nick($1,%a) is a big Poof.) elseif ($3 == !stfu) mta.text $1 $iif((!$4),Everyone SHUT THE UP., $mta.nick($1,%a) SHUT THE UP.) elseif ($3 == !lol) mta.text $1 $mta.nick($1,%a) Laughs out loud. elseif ($3 == !lmao) mta.text $1 $mta.nick($1,%a) Laughs his arse off. elseif ($3 == !lmfao) mta.text $1 $mta.nick($1,%a) Laughs his arse off. elseif ($3 == !rofl) mta.text $1 $mta.nick($1,%a) Rolls on the floor laughing. elseif ($3 == !ffs) mta.text $1 $mta.nick($1,%a) exclaims at the top of his voice, FOR SAKE! elseif ($3 == !boom) mta.text $1 $mta.nick($1,%a) exploded in a blaze of glory! elseif ($3 == !drown) mta.text $1 $mta.nick($1,%a) is sleeping with the fishies. elseif ($3 == !cwin) mta.text $1 Cops Win! Mode Changed to Last Man Standing! elseif ($3 == !rwin) mta.text $1 Robbers Win! Mode Changed to Last Man Standing! elseif ($3 == !enemy) mta.text $1 Anyone see any Enemys? elseif ($3 == !win) mta.text $1 $mta.nick($1,%a) Wins and Jumps around in joy! elseif ($3 == !grats) mta.text $1 $iif((!$4),What? No Grats? You guys suck!,Congratulations $mta.nick($1,%a) $+ !) elseif ($3 == !gg) mta.text $1 Good Game Everyone! elseif ($3 == !gr) mta.text $1 Good Race Everyone! elseif ($3 == !suck) mta.text $1 $mta.nick($1,%a) Sucks ass. elseif ($3 == !donkey) mta.text $1 Who sucks Donkey Dick? $mta.nick($1,%a) Sucks Donkey Dick! elseif ($3 == !fu) mta.text $1 $iif((!$4), You., You and Everyone that looks like you $mta.nick($1,%a) $+ !) (i have added many more to this since i posted that block).... The thing i want to know is How to make all of that into a Standalone Script, INSTEAD of having to put all that code into PRS. Link to comment
[UVA]Bart Posted September 30, 2007 Share Posted September 30, 2007 oo, one more thing on this subject......With all this code...... elseif ($3 == !server) mta.text $1 PotholeStudios.com MTA Race-VDM-CnR Server! elseif ($3 == !website) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !site) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !web) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !afk) mta.text $1 $mta.nick($1,%a) is Away From Keyboard. elseif ($3 == !back) mta.text $1 $mta.nick($1,%a) has Returned. elseif ($3 == !bak) mta.text $1 Guess who's back, Back Again, $mta.nick($1,%a) $+ 's Back, RUN IN FEAR! elseif ($3 == !brb) mta.text $1 $mta.nick($1,%a) will Be Right Back. elseif ($3 == !poof) mta.text $1 $iif((!$4),There is a Poof in here., $mta.nick($1,%a) is a big Poof.) elseif ($3 == !stfu) mta.text $1 $iif((!$4),Everyone SHUT THE UP., $mta.nick($1,%a) SHUT THE UP.) elseif ($3 == !lol) mta.text $1 $mta.nick($1,%a) Laughs out loud. elseif ($3 == !lmao) mta.text $1 $mta.nick($1,%a) Laughs his arse off. elseif ($3 == !lmfao) mta.text $1 $mta.nick($1,%a) Laughs his arse off. elseif ($3 == !rofl) mta.text $1 $mta.nick($1,%a) Rolls on the floor laughing. elseif ($3 == !ffs) mta.text $1 $mta.nick($1,%a) exclaims at the top of his voice, FOR SAKE! elseif ($3 == !boom) mta.text $1 $mta.nick($1,%a) exploded in a blaze of glory! elseif ($3 == !drown) mta.text $1 $mta.nick($1,%a) is sleeping with the fishies. elseif ($3 == !cwin) mta.text $1 Cops Win! Mode Changed to Last Man Standing! elseif ($3 == !rwin) mta.text $1 Robbers Win! Mode Changed to Last Man Standing! elseif ($3 == !enemy) mta.text $1 Anyone see any Enemys? elseif ($3 == !win) mta.text $1 $mta.nick($1,%a) Wins and Jumps around in joy! elseif ($3 == !grats) mta.text $1 $iif((!$4),What? No Grats? You guys suck!,Congratulations $mta.nick($1,%a) $+ !) elseif ($3 == !gg) mta.text $1 Good Game Everyone! elseif ($3 == !gr) mta.text $1 Good Race Everyone! elseif ($3 == !suck) mta.text $1 $mta.nick($1,%a) Sucks ass. elseif ($3 == !donkey) mta.text $1 Who sucks Donkey Dick? $mta.nick($1,%a) Sucks Donkey Dick! elseif ($3 == !fu) mta.text $1 $iif((!$4), You., You and Everyone that looks like you $mta.nick($1,%a) $+ !) (i have added many more to this since i posted that block).... The thing i want to know is How to make all of that into a Standalone Script, INSTEAD of having to put all that code into PRS. ok on *:SIGNAL:mta.command { var %a = $iif(($4 == $null),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) if ($3 == !server) mta.text $1 PotholeStudios.com MTA Race-VDM-CnR Server! elseif ($3 == !website) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !site) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !web) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !afk) mta.text $1 $mta.nick($1,%a) is Away From Keyboard. elseif ($3 == !back) mta.text $1 $mta.nick($1,%a) has Returned. elseif ($3 == !bak) mta.text $1 Guess who's back, Back Again, $mta.nick($1,%a) $+ 's Back, RUN IN FEAR! elseif ($3 == !brb) mta.text $1 $mta.nick($1,%a) will Be Right Back. elseif ($3 == !poof) mta.text $1 $iif((!$4),There is a Poof in here., $mta.nick($1,%a) is a big Poof.) elseif ($3 == !stfu) mta.text $1 $iif((!$4),Everyone SHUT THE UP., $mta.nick($1,%a) SHUT THE UP.) elseif ($3 == !lol) mta.text $1 $mta.nick($1,%a) Laughs out loud. elseif ($3 == !lmao) mta.text $1 $mta.nick($1,%a) Laughs his arse off. elseif ($3 == !lmfao) mta.text $1 $mta.nick($1,%a) Laughs his arse off. elseif ($3 == !rofl) mta.text $1 $mta.nick($1,%a) Rolls on the floor laughing. elseif ($3 == !ffs) mta.text $1 $mta.nick($1,%a) exclaims at the top of his voice, FOR SAKE! elseif ($3 == !boom) mta.text $1 $mta.nick($1,%a) exploded in a blaze of glory! elseif ($3 == !drown) mta.text $1 $mta.nick($1,%a) is sleeping with the fishies. elseif ($3 == !cwin) mta.text $1 Cops Win! Mode Changed to Last Man Standing! elseif ($3 == !rwin) mta.text $1 Robbers Win! Mode Changed to Last Man Standing! elseif ($3 == !enemy) mta.text $1 Anyone see any Enemys? elseif ($3 == !win) mta.text $1 $mta.nick($1,%a) Wins and Jumps around in joy! elseif ($3 == !grats) mta.text $1 $iif((!$4),What? No Grats? You guys suck!,Congratulations $mta.nick($1,%a) $+ !) elseif ($3 == !gg) mta.text $1 Good Game Everyone! elseif ($3 == !gr) mta.text $1 Good Race Everyone! elseif ($3 == !suck) mta.text $1 $mta.nick($1,%a) Sucks ass. elseif ($3 == !donkey) mta.text $1 Who sucks Donkey Dick? $mta.nick($1,%a) Sucks Donkey Dick! elseif ($3 == !fu) mta.text $1 $iif((!$4), You., You and Everyone that looks like you $mta.nick($1,%a) $+ !) } Link to comment
DazzaJay Posted September 30, 2007 Author Share Posted September 30, 2007 Thanks, man, i will be releasing a Massive Emote's Script when ive finished it thanks to your help. (100+ more commands to come first tho) Link to comment
[UVA]Bart Posted September 30, 2007 Share Posted September 30, 2007 ok lol check my script out viewtopic.php?f=30&t=20496 theres a nice command that lets you add commands from ingame you can use it if you mention me here it is. elseif ($3 == !addcmd) { if ($mta.level($1,$2) == 0) mta.pm $1 $2 Error: Incorrect Level elseif ($4 == $null) || ($5 == $null) || ($6 == $null) mta.pm $1 $2 Error: Do !cmdhelp for codes to use else { if ($mta.level($1,$2) > 0) && ($slr.level($1,$2) < 5) mta.pm $1 $2 $slr.inco if ($mta.level($1,$2) > 0) && ($slr.level($1,$2) >= 5) { !writeini -n slrcommands.ini command $5 $6- !writeini -n slrcommands.ini commands $5 $4 mta.pm $1 $2 Your Command Has Been Added } } } elseif ($3 == !-) { var %b = $readini(slrcommands.ini,commands,$4) if ($readini(slrcommands.ini,command,$4) == $null) mta.pm $1 $2 Error: The Command $4 Has Not Been Added Yet. if (player isin $readini(slrcommands.ini,command,$4)) && (%b == text) { mta.text $1 $replace($readini(slrcommands.ini,command,$4),player,$mta.nick($1,%a)) } elseif (player isin $readini(slrcommands.ini,command,$4)) && (%b == pm) { mta.pm $1 $2 $replace($readini(slrcommands.ini,command,$4),player,$mta.nick($1,%a)) } elseif (players isin $readini(slrcommands.ini,command,$4)) && (%b == text) { mta.text $1 $replace($readini(slrcommands.ini,command,$4),players,$mta.nick($1,%a) $+ 's) } elseif (players isin $readini(slrcommands.ini,command,$4)) && (%b == pm) { mta.pm $1 $2 $replace($readini(slrcommands.ini,command,$4),players,$mta.nick($1,%a) $+ 's) } elseif (%b == pm) { mta.pm $1 $2 $readini(slrcommands.ini,command,$4) } elseif (%b == text) { mta.text $1 $readini(slrcommands.ini,command,$4) } } elseif ($3 == !cmdhelp) { if ($mta.level($1,$2) == 0) mta.pm $1 $2 Error: Incorrect Level else { if ($mta.level($1,$2) > 0) { mta.pm $1 $2 !addcmd <pm or text> <name of the command> <what text it says> .timer mta.pm $1 $2 Codes: pm (pm the text to the player) - text (say the text in text) - player (returns a players nick ie/ DirtBikeRider) - players (returns a players nick with a s on the end ie/ DirtBikeRiders) } } } elseif ($3 == !remcmd) { if ($mta.level($1,$2) == 0) mta.pm $1 $2 Error: Incorrect Level if ($readini(slrcommands.ini,command,$4) == $null) mta.pm $1 $2 Error: This Command Has Allready Been Removed elseif ($4 == $null) mta.pm $1 $2 Error: !remcmd <cmd name> else { if ($mta.level($1,$2) > 0) && ($slr.level($1,$2) < 5)mta.pm $1 $2 $slr.inco if ($mta.level($1,$2) > 0) && ($slr.level($1,$2) >= 5) { !remini -n slrcommands.ini command $4 !remini -n slrcommands.ini commands $4 mta.pm $1 $2 The Command $4 Has Been Removed } } } } theres a code used for it so if i go !addcmd text lol players laughing out loud the script then when it reads players changes it to $mta.nick($1,%a) $+s so when a player does !- lol it says dirtbikeriders laughing out loud in yellow text. but if i do !addcmd pm lol player laughing out loud note this time its pm and just player so when a player does !- lol it says dirtbikerider laughing out loud in pm Link to comment
DazzaJay Posted October 1, 2007 Author Share Posted October 1, 2007 thats a cool idea, but it wont work for what im planning. Link to comment
[UVA]Bart Posted October 1, 2007 Share Posted October 1, 2007 no probs if you need any more info post here Link to comment
DazzaJay Posted October 24, 2007 Author Share Posted October 24, 2007 no probs if you need any more info post here Just a small issue reguarding the on *:SIGNAL:mta.command { var %a = $iif(($4 == $null),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) section that was added to make the emotes script standalone... (i finally got around to pulling all the emotes out of PRS and putting it into its own script) when it was in PRS i was able to type a command and section of a users name..... [PHS]Dan[AU]: !angry spink [PHS]Dan[AU] Raises his fist in anger at [PHS]Spinkstar But with it in its standalone script i have to type the Full Name of another player otherwise it dosent work... What needs to be changed to allow it to work with Partial names? Link to comment
SanZoR Posted October 24, 2007 Share Posted October 24, 2007 Try this: var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$script.getid($1,$4)),$2) and put this to same file: alias script.getid { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a !inc %a } !return -1 } Link to comment
DazzaJay Posted October 24, 2007 Author Share Posted October 24, 2007 on *:SIGNAL:mta.command { var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$script.getid($1,$4)),$2) if ($3 == !server) mta.text $1 PotholeStudios.com MTA Race-VDM-CnR Server! elseif ($3 == !info) .timer 1 1 mta.text $1 Awesome Emotes V1.1 By DazzaJay [www.potholestudios.com] elseif ($3 == !emotes) { mta.pm $1 $2 !website - !afk - !back - !brb - !poof - !stfu - !lol - !lmao - !lmfao - !rofl - !ffs - !boom - !drown - !enemy - !win - !grats - !taunt .timer 1 1 mta.pm $1 $2 !gg - !gr - !suck - !clan - !donkey - !fu - !wb - !agree - !amaze - !angry - !apologize - !sorry - !bark - !belch - !bonk - !bored .timer 1 2 mta.pm $1 $2 !bow - !bravo - !bye - !bravo - !cackle - !cat - !cheer - !chicken } elseif ($3 == !clan) { mta.text $1 Our Clan Tag is: [PHS] (Pothole Studios) .timer 1 1 mta.text $1 More info on our clan is at [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] } elseif ($3 == !website) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !site) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !web) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !afk) mta.text $1 $mta.nick($1,$2) is Away From Keyboard. elseif ($3 == !back) mta.text $1 $mta.nick($1,$2) has Returned. elseif ($3 == !bak) mta.text $1 Guess who's back, Back Again, $mta.nick($1,$2) $+ 's Back, RUN IN FEAR! elseif ($3 == !brb) mta.text $1 $mta.nick($1,$2) will Be Right Back. elseif ($3 == !poof) mta.text $1 $iif((!$4),There is a Poof in here., $mta.nick($1,%a) is a big Poof.) elseif ($3 == !stfu) mta.text $1 $iif((!$4),Everyone SHUT THE FUCK UP., $mta.nick($1,%a) SHUT THE FUCK UP.) elseif ($3 == !lol) mta.text $1 $mta.nick($1,$2) Laughs out loud. elseif ($3 == !lmao) mta.text $1 $mta.nick($1,$2) Laughs his arse off. elseif ($3 == !dazzajay) mta.text $1 DazzaJay. The Lean Mean Scripting Queen.... oh wait.. thats just wrong. elseif ($3 == !lmfao) mta.text $1 $mta.nick($1,$2) Laughs his fucking arse off. elseif ($3 == !rofl) mta.text $1 $mta.nick($1,$2) Rolls on the floor laughing. elseif ($3 == !ffs) mta.text $1 $mta.nick($1,$2) exclaims at the top of his voice, FOR FUCKS SAKE! elseif ($3 == !boom) mta.text $1 $mta.nick($1,$2) exploded in a blaze of glory! elseif ($3 == !drown) mta.text $1 $mta.nick($1,$2) is sleeping with the fishies. elseif ($3 == !cwin) mta.text $1 Cops Win! Mode Changed to Last Man Standing! elseif ($3 == !rwin) mta.text $1 Robbers Win! Mode Changed to Last Man Standing! elseif ($3 == !enemy) mta.text $1 Anyone see any Enemys? elseif ($3 == !win) mta.text $1 $mta.nick($1,$2) Wins and Jumps around in joy! elseif ($3 == !grats) mta.text $1 $iif((!$4),What? No Grats? You guys suck!,Congratulations $mta.nick($1,%a) $+ !) elseif ($3 == !taunt) mta.text $1 $mta.nick($1,$2) Taunts $mta.nick($1,%a) $+ ... Ooooh Soooo Scary... elseif ($3 == !gg) mta.text $1 Good Game Everyone! elseif ($3 == !gr) mta.text $1 Good Race Everyone! elseif ($3 == !suck) mta.text $1 $mta.nick($1,%a) Sucks ass. elseif ($3 == !donkey) mta.text $1 Who sucks Donkey Dick? $mta.nick($1,%a) Sucks Donkey Dick! elseif ($3 == !fu) mta.text $1 $iif((!$4),Fuck You., Fuck You and Everyone that looks like you $mta.nick($1,%a) $+ !) elseif ($3 == !wb) mta.text $1 $iif((!$4),Welcome Back,Welcome Back $mta.nick($1,%a)) elseif ($3 == !agree) mta.text $1 $iif((!$4),$mta.nick($1,$2) Agrees., $mta.nick($1,$2) Agrees with $mta.nick($1,%a) $+ .) elseif ($3 == !amaze) mta.text $1 $iif((!$4),$mta.nick($1,$2) is Amazed!, $mta.nick($1,$2) is Amazed by $mta.nick($1,%a) $+ !) elseif ($3 == !angry) mta.text $1 $iif((!$4),$mta.nick($1,$2) Raises thier fist in anger!, $mta.nick($1,$2) Raises thier fist in anger at $mta.nick($1,%a) $+ !) elseif ($3 == !apologize) mta.text $1 $iif((!$4),$mta.nick($1,$2) apologizes to everyone. Sorry!, $mta.nick($1,$2) apologizes to $mta.nick($1,%a) Sorry!) elseif ($3 == !apologise) mta.text $1 $iif((!$4),$mta.nick($1,$2) apologizes to everyone. Sorry!, $mta.nick($1,$2) apologizes to $mta.nick($1,%a) Sorry!) elseif ($3 == !sorry) mta.text $1 $iif((!$4),$mta.nick($1,$2) apologizes to everyone. Sorry!, $mta.nick($1,$2) apologizes to $mta.nick($1,%a) Sorry!) elseif ($3 == !bark) mta.text $1 $iif((!$4),$mta.nick($1,$2) Barks. Woof Woof!, $mta.nick($1,$2) Barks at $mta.nick($1,%a) $+ .) elseif ($3 == !belch) mta.text $1 $iif((!$4),$mta.nick($1,$2) lets out a loud belch., $mta.nick($1,$2) burps rudeley in $mta.nick($1,%a) $+ 's face.) elseif ($3 == !bonk) mta.text $1 $iif((!$4),$mta.nick($1,$2) bonk's himself on the noggin. Doh!, $mta.nick($1,$2) bonk's $mta.nick($1,%a) on the noggin. Doh!) elseif ($3 == !bored) mta.text $1 $iif((!$4),$mta.nick($1,$2) is overcome with boredom. Oh the drudgery!, $mta.nick($1,$2) is terribly bored with $mta.nick($1,%a) $+ .) elseif ($3 == !bow) mta.text $1 $iif((!$4),$mta.nick($1,$2) bows down graciously., $mta.nick($1,$2) Bows Before $mta.nick($1,%a) $+ .) elseif ($3 == !bravo) mta.text $1 $iif((!$4),$mta.nick($1,$2) applaud. Bravo!, $mta.nick($1,$2) applaud's $mta.nick($1,%a) $+ . Bravo!) elseif ($3 == !burp) mta.text $1 $iif((!$4),$mta.nick($1,$2) lets out a loud belch., $mta.nick($1,$2) burps rudeley in $mta.nick($1,%a) $+ 's face.) elseif ($3 == !bye) mta.text $1 $iif((!$4),$mta.nick($1,$2) waves goodbye to everyone. Farewall!, $mta.nick($1,$2) waves goodbye to $mta.nick($1,%a) $+ . Farewell!) elseif ($3 == !cackle) mta.text $1 $iif((!$4),$mta.nick($1,$2) cackles maniacally at the situation, $mta.nick($1,$2) cackles maniacally at $mta.nick($1,%a) $+ .) elseif ($3 == !cat) mta.text $1 $iif((!$4),$mta.nick($1,$2) scratch's themself. Ah much better!, $mta.nick($1,$2) scratch's $mta.nick($1,%a) $+ . Meeeeow.) elseif ($3 == !cheer) mta.text $1 $iif((!$4),$mta.nick($1,$2) cheers!, $mta.nick($1,$2) cheers at $mta.nick($1,%a) $+ .) elseif ($3 == !chicken) mta.text $1 $iif((!$4), With arms flapping $mta.nick($1,$2) struts around. Cluck Cluck Chicken!, With arms flapping $mta.nick($1,$2) struts around $mta.nick($1,%a) $+ . Cluck Cluck Chicken!) } alias script.getid { var %a = 0 while (%a <= $mta.server($1).cmax) { if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a !inc %a } !return -1 } Well, thats what i have.... but it dosent work.... now its like this.... [PHS]Dan[AU]: !sorry demi [PHS]Dan[AU] apologizes to Sorry! same with full names aswell as no name atall. Link to comment
DazzaJay Posted October 24, 2007 Author Share Posted October 24, 2007 i got it to work..... i took this line from PRS.... var %a = $iif((!$4),$2,$iif(($daz.getid($1,$4) == $null),$2,$v1)),%race = $replace($mta.race($1),$chr(32),$chr(45)) (except i changed prs.getid to daz.getid (to avoid conflict with PRS) and i copied the alias.... alias daz.getid { var %a = 0 while (%a < %loop) { if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a !inc %a } } copied that from PRS, but changed prs.getid to daz.getid (to avoid conflict) and Wala, it works. Thanks anyway Sanzor... cos im a noob at scripting i didnt know it needed an alias section.... but you pointed me into the correct direction Link to comment
[UVA]Bart Posted October 24, 2007 Share Posted October 24, 2007 dazza you dont need this bit ,%race = $replace($mta.race($1),$chr(32),$chr(45)) from this var %a = $iif((!$4),$2,$iif(($daz.getid($1,$4) == $null),$2,$v1)),%race = $replace($mta.race($1),$chr(32),$chr(45)) scoob used it to change the spaces in map names to - so that he could save them better Link to comment
DazzaJay Posted October 24, 2007 Author Share Posted October 24, 2007 cool, thanks man Link to comment
[UVA]Bart Posted October 24, 2007 Share Posted October 24, 2007 elseif ($3 == !website) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !site) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] elseif ($3 == !web) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] these 3 can be put in to one line elseif ($3 == !website) || ($3 == !site) || ($3 == !web ) mta.text $1 Our website is: [url=http://www.PotholeStudios.com/mta]http://www.PotholeStudios.com/mta[/url] Link to comment
DazzaJay Posted October 24, 2007 Author Share Posted October 24, 2007 Oh brilliant..... (if you look thru you can find many more of those) i will do it like that from now on, and edit the ones that are allready there Link to comment
[UVA]Bart Posted October 24, 2007 Share Posted October 24, 2007 np lol you could make a dialog that lets you add the commands ? try it lol so that people can add there own and it saves them to a ini then reads them Link to comment
DazzaJay Posted October 24, 2007 Author Share Posted October 24, 2007 im doing it the old fashioned way so i can release the emotes script when ive finished creating it.... and theres a few servers using the beta allready Hence the !Info command and the !emotes command for what im planning, its eaisier to use Notepad2. Link to comment
Recommended Posts