BlueTak Posted May 11, 2008 Share Posted May 11, 2008 http://rs387.rapidshare.com/files/114213013/W_C.zip ^^^^^^^ Download above link commands : !time !date !checkmap (unstable) !maps !name !info !id !players !vban / !voteban !back !afk !block !kill !addcmd !remcmd !cmdhelp text: hello hi bye brb afk nickname info features: player kick startrace text death message Hope u like, This is only a preview of my script, so its not big Please say bugs and what i can improve if u like it etc, thanks, i havnt tested. Link to comment
BlueTak Posted May 11, 2008 Author Share Posted May 11, 2008 http://rs387.rapidshare.com/files/114213013/W_C.zip ^^^^^^^ Download above link commands : !time !date !checkmap (unstable) !maps !name !info !id !players !vban / !voteban !back !afk !block !kill !addcmd !remcmd !cmdhelp text: hello hi bye brb afk nickname info features: player kick startrace text death message Hope u like, This is only a preview of my script, so its not big Please say bugs and what i can improve if u like it etc, thanks, i havnt tested. Link to comment
Frank-De-Ruiter Posted May 12, 2008 Share Posted May 12, 2008 Ehm this just looks like some parts from PRS and SLR put together in an mrc file even above this line: /* ////////////////////////////////////// ////////////////////////////////////// Scripts that are not mine, starting// //////////////////////////////////// */ its not yours.... Link to comment
Frank-De-Ruiter Posted May 12, 2008 Share Posted May 12, 2008 Ehm this just looks like some parts from PRS and SLR put together in an mrc file even above this line: /* ////////////////////////////////////// ////////////////////////////////////// Scripts that are not mine, starting// //////////////////////////////////// */ its not yours.... Link to comment
BlueTak Posted May 12, 2008 Author Share Posted May 12, 2008 Ehm this just looks like some parts from PRS and SLR put together in an mrc file even above this line:/* ////////////////////////////////////// ////////////////////////////////////// Scripts that are not mine, starting// //////////////////////////////////// */ its not yours.... Look, there is 1 script (addcmd) that isnt mine, its barts, but every single other command i created myself Link to comment
BlueTak Posted May 12, 2008 Author Share Posted May 12, 2008 Ehm this just looks like some parts from PRS and SLR put together in an mrc file even above this line:/* ////////////////////////////////////// ////////////////////////////////////// Scripts that are not mine, starting// //////////////////////////////////// */ its not yours.... Look, there is 1 script (addcmd) that isnt mine, its barts, but every single other command i created myself Link to comment
Scooby Posted May 12, 2008 Share Posted May 12, 2008 ok i downloaded ur script, moved some parts around and fixed a few bracket errors, most of it should work now, although theres still a few errors in ur aliases that i think u need to work on. u should remove the prs parts too, since they will only work while ur running prs. all in all the script is very basic but if u keep at it im sure ul pick it up a bit more Also, a lot more work is needed before u can really call it a working release, The Ban and VoteBan mainly. Good Luck with the rest:) on *:SIGNAL:mta.command: { var %a = $iif($4 == $null,$2,$iif($mta.getid($1,* $+ $4 $+ *) == $null,$2,$v1)) if ($3 == !time) mta.text $1 Time: $time (GMT) elseif ($3 == !date) mta.text $1 Date: $date elseif ($3 == !checkmap) mta.text $1 Found: $mta.map($1) elseif ($3 == !maps) mta.text $1 Total Maps: $mta.races($1) elseif ($3 == !name) mta.text $1 Map Name: $mta.race($1) elseif ($3 == !info) mta.text $1 W&C v1.0 Scripts! elseif ($3 == !id) mta.text $1 Map Id: $mta.races($1,$mta.race($1)) $+ . elseif ($3 == !players) mta.text $1 Total players: $mta.tot($1) elseif ($3 == !vban || !voteban iswm $3) wac.vban $1- elseif ($3 == !back) { if ($timer($+(afk,$1,$2))) { $+(.timerafk,$1,$2) off mta.pm $1 $2 You are no longer undergoing an afk check and wont be kicked. } } if ($mta.level($1,$2) >= 3) { elseif ($3 == !block) mta.text $1 Dont Block or be freezed $mta.nick($1,%a) $+ ! elseif ($3 == !kill) mta.text $1 Type /kill $mta.nick($1,%a) $+ ! elseif ($3 == !afk) { if ($mta.level($1,%a) > $mta.level($1,$2)) mta.pm $1 $2 Error- You cannot use $3 on someone with higher level. elseif (%a == -1) mta.pm $1 $2 Error - Absent ID else { mta.text $1 $mta.nick($1,%a) is undergoing an AFK CHECK and has 20 seconds to respond. mta.pm $1 %a Please write !back if you are there, 20 seconds untill kick. $+(.timerafk,$1,%a) mta.kick $1 %a } } } 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) && ($mta.level($1,$2) < 5) mta.pm $1 $2 $slr.inco if ($mta.level($1,$2) > 0) && ($mta.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) && ($mta.level($1,$2) < 5)mta.pm $1 $2 $slr.inco if ($mta.level($1,$2) > 0) && ($mta.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 } } } } on *:SIGNAL:mta.text: { if ($3 == hello) mta.text $1 Hello PPL. elseif ($3 == hi) mta.text $1 Hi All. elseif ($3 == bye) mta.text $1 Bye Peeps. elseif ($3 == brb) mta.text $1 /me $mta.nick($1,$2) Will be Right back, Reason: $4 $+. elseif ($3 == afk) mta.text $1 /me $mta.nick($1,$2) Will be Afk, Reason: $4- $+. elseif ($3 == nickname) mta.text $1 Your Nickname: $mta.nick($1,$2) $+ . elseif ($3 == info) mta.text $1 Races: $mta.races($1) Race on: $mta.race($1) $+ . } on *:SIGNAL:mta.join: { if ($mta.nick($1,$2) == player) { mta.pm $1 $2 Please change your nick 60 seconds or automaticaly kicked. .timer 1 60 mta.kick $1 $2 mta.text $1 Nickname - Player Kicked: Not changing nick. } } on *:SIGNAL:mta.startrace: { mta.text $1 Map Started! $mta.race($1) $+ . mta.text $1 Map ID: $mta.races($1,$mta.race($1)) $+ . } on *:SIGNAL:mta.death: { mta.pm $1 $2 Auto Message: You may now grab a cola! } alias wac.vban { ;this alias needs work... im not doing it for u !hadd prstemp votenick %a !hadd prstemp voters %b mta.text $1 Type !voteb If You Want $mta.nick($1,%a) Banning. Reason: $4- $iif($4- == $null, Not Set) $+ . mta.text $1 Votes Need to ban: $ceil($calc($mta.players($1) / 2)) if ($3 == !voteb) { mta.text $1 Total Votes for banning: $numtok($hget(wacmain,bans),41) $+ / $+ $ceil($calc($mta.players($1) / 2)) wac.voting $1- } } alias wac.voting { var %a = $iif($4 == $null,$2,$iif($mta.getid($1,* $+ $4 $+ *) == $null,$2,$v1)) if ($numtok($hget(wacmain,bans),41) == $ceil($calc($mta.players($1) / 2))) { mta.text $1 Banning $mta.nick($1,%a) $+. mta.ban $1 %a } } alias wac.betting { var %a = $iif($4 == $null,$2,$iif($mta.getid($1,* $+ $4 $+ *) == $null,$2,$v1)) ; the line below needs work, there is no -1 in mta.getid, modify the line above if u need to check for absent id's if (%a == -1) mta.pm $1 $2 Error - Absent ID else { $+(.timerbet,$1,%a) mta.text $1 Place your Bets! mta.pm $1 $2 You have betted on $mta.nick($1,%a) to win, type !unbet to unbet before the time runs out! $+(.timerbet,$1,$2) off mta.text $1 No more bets! } } ;Thanks [uVA]Scooby & [uVA]Bart Link to comment
Scooby Posted May 12, 2008 Share Posted May 12, 2008 ok i downloaded ur script, moved some parts around and fixed a few bracket errors, most of it should work now, although theres still a few errors in ur aliases that i think u need to work on. u should remove the prs parts too, since they will only work while ur running prs. all in all the script is very basic but if u keep at it im sure ul pick it up a bit more Also, a lot more work is needed before u can really call it a working release, The Ban and VoteBan mainly. Good Luck with the rest:) on *:SIGNAL:mta.command: { var %a = $iif($4 == $null,$2,$iif($mta.getid($1,* $+ $4 $+ *) == $null,$2,$v1)) if ($3 == !time) mta.text $1 Time: $time (GMT) elseif ($3 == !date) mta.text $1 Date: $date elseif ($3 == !checkmap) mta.text $1 Found: $mta.map($1) elseif ($3 == !maps) mta.text $1 Total Maps: $mta.races($1) elseif ($3 == !name) mta.text $1 Map Name: $mta.race($1) elseif ($3 == !info) mta.text $1 W&C v1.0 Scripts! elseif ($3 == !id) mta.text $1 Map Id: $mta.races($1,$mta.race($1)) $+ . elseif ($3 == !players) mta.text $1 Total players: $mta.tot($1) elseif ($3 == !vban || !voteban iswm $3) wac.vban $1- elseif ($3 == !back) { if ($timer($+(afk,$1,$2))) { $+(.timerafk,$1,$2) off mta.pm $1 $2 You are no longer undergoing an afk check and wont be kicked. } } if ($mta.level($1,$2) >= 3) { elseif ($3 == !block) mta.text $1 Dont Block or be freezed $mta.nick($1,%a) $+ ! elseif ($3 == !kill) mta.text $1 Type /kill $mta.nick($1,%a) $+ ! elseif ($3 == !afk) { if ($mta.level($1,%a) > $mta.level($1,$2)) mta.pm $1 $2 Error- You cannot use $3 on someone with higher level. elseif (%a == -1) mta.pm $1 $2 Error - Absent ID else { mta.text $1 $mta.nick($1,%a) is undergoing an AFK CHECK and has 20 seconds to respond. mta.pm $1 %a Please write !back if you are there, 20 seconds untill kick. $+(.timerafk,$1,%a) mta.kick $1 %a } } } 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) && ($mta.level($1,$2) < 5) mta.pm $1 $2 $slr.inco if ($mta.level($1,$2) > 0) && ($mta.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 .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 else { if ($mta.level($1,$2) > 0) && ($mta.level($1,$2) < 5)mta.pm $1 $2 $slr.inco if ($mta.level($1,$2) > 0) && ($mta.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 } } }}on *:SIGNAL:mta.text: { if ($3 == hello) mta.text $1 Hello PPL. elseif ($3 == hi) mta.text $1 Hi All. elseif ($3 == bye) mta.text $1 Bye Peeps. elseif ($3 == brb) mta.text $1 /me $mta.nick($1,$2) Will be Right back, Reason: $4 $+. elseif ($3 == afk) mta.text $1 /me $mta.nick($1,$2) Will be Afk, Reason: $4- $+. elseif ($3 == nickname) mta.text $1 Your Nickname: $mta.nick($1,$2) $+ . elseif ($3 == info) mta.text $1 Races: $mta.races($1) Race on: $mta.race($1) $+ .}on *:SIGNAL:mta.join: { if ($mta.nick($1,$2) == player) { mta.pm $1 $2 Please change your nick 60 seconds or automaticaly kicked. .timer 1 60 mta.kick $1 $2 mta.text $1 Nickname - Player Kicked: Not changing nick. }}on *:SIGNAL:mta.startrace: { mta.text $1 Map Started! $mta.race($1) $+ . mta.text $1 Map ID: $mta.races($1,$mta.race($1)) $+ .}on *:SIGNAL:mta.death: { mta.pm $1 $2 Auto Message: You may now grab a cola!} alias wac.vban { ;this alias needs work... im not doing it for u !hadd prstemp votenick %a !hadd prstemp voters %b mta.text $1 Type !voteb If You Want $mta.nick($1,%a) Banning. Reason: $4- $iif($4- == $null, Not Set) $+ . mta.text $1 Votes Need to ban: $ceil($calc($mta.players($1) / 2)) if ($3 == !voteb) { mta.text $1 Total Votes for banning: $numtok($hget(wacmain,bans),41) $+ / $+ $ceil($calc($mta.players($1) / 2)) wac.voting $1- }} alias wac.voting { var %a = $iif($4 == $null,$2,$iif($mta.getid($1,* $+ $4 $+ *) == $null,$2,$v1)) if ($numtok($hget(wacmain,bans),41) == $ceil($calc($mta.players($1) / 2))) { mta.text $1 Banning $mta.nick($1,%a) $+. mta.ban $1 %a }} alias wac.betting { var %a = $iif($4 == $null,$2,$iif($mta.getid($1,* $+ $4 $+ *) == $null,$2,$v1)) ; the line below needs work, there is no -1 in mta.getid, modify the line above if u need to check for absent id's if (%a == -1) mta.pm $1 $2 Error - Absent ID else { $+(.timerbet,$1,%a) mta.text $1 Place your Bets! mta.pm $1 $2 You have betted on $mta.nick($1,%a) to win, type !unbet to unbet before the time runs out! $+(.timerbet,$1,$2) off mta.text $1 No more bets! }};Thanks [uVA]Scooby & [uVA]Bart Link to comment
BlueTak Posted May 12, 2008 Author Share Posted May 12, 2008 ok i downloaded ur script, moved some parts around and fixed a few bracket errors, most of it should work now, although theres still a few errors in ur aliases that i think u need to work on. u should remove the prs parts too, since they will only work while ur running prs. all in all the script is very basic but if u keep at it im sure ul pick it up a bit more Also, a lot more work is needed before u can really call it a working release, The Ban and VoteBan mainly. Good Luck with the rest:) on *:SIGNAL:mta.command: { var %a = $iif($4 == $null,$2,$iif($mta.getid($1,* $+ $4 $+ *) == $null,$2,$v1)) if ($3 == !time) mta.text $1 Time: $time (GMT) elseif ($3 == !date) mta.text $1 Date: $date elseif ($3 == !checkmap) mta.text $1 Found: $mta.map($1) elseif ($3 == !maps) mta.text $1 Total Maps: $mta.races($1) elseif ($3 == !name) mta.text $1 Map Name: $mta.race($1) elseif ($3 == !info) mta.text $1 W&C v1.0 Scripts! elseif ($3 == !id) mta.text $1 Map Id: $mta.races($1,$mta.race($1)) $+ . elseif ($3 == !players) mta.text $1 Total players: $mta.tot($1) elseif ($3 == !vban || !voteban iswm $3) wac.vban $1- elseif ($3 == !back) { if ($timer($+(afk,$1,$2))) { $+(.timerafk,$1,$2) off mta.pm $1 $2 You are no longer undergoing an afk check and wont be kicked. } } if ($mta.level($1,$2) >= 3) { elseif ($3 == !block) mta.text $1 Dont Block or be freezed $mta.nick($1,%a) $+ ! elseif ($3 == !kill) mta.text $1 Type /kill $mta.nick($1,%a) $+ ! elseif ($3 == !afk) { if ($mta.level($1,%a) > $mta.level($1,$2)) mta.pm $1 $2 Error- You cannot use $3 on someone with higher level. elseif (%a == -1) mta.pm $1 $2 Error - Absent ID else { mta.text $1 $mta.nick($1,%a) is undergoing an AFK CHECK and has 20 seconds to respond. mta.pm $1 %a Please write !back if you are there, 20 seconds untill kick. $+(.timerafk,$1,%a) mta.kick $1 %a } } } 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) && ($mta.level($1,$2) < 5) mta.pm $1 $2 $slr.inco if ($mta.level($1,$2) > 0) && ($mta.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) && ($mta.level($1,$2) < 5)mta.pm $1 $2 $slr.inco if ($mta.level($1,$2) > 0) && ($mta.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 } } } } on *:SIGNAL:mta.text: { if ($3 == hello) mta.text $1 Hello PPL. elseif ($3 == hi) mta.text $1 Hi All. elseif ($3 == bye) mta.text $1 Bye Peeps. elseif ($3 == brb) mta.text $1 /me $mta.nick($1,$2) Will be Right back, Reason: $4 $+. elseif ($3 == afk) mta.text $1 /me $mta.nick($1,$2) Will be Afk, Reason: $4- $+. elseif ($3 == nickname) mta.text $1 Your Nickname: $mta.nick($1,$2) $+ . elseif ($3 == info) mta.text $1 Races: $mta.races($1) Race on: $mta.race($1) $+ . } on *:SIGNAL:mta.join: { if ($mta.nick($1,$2) == player) { mta.pm $1 $2 Please change your nick 60 seconds or automaticaly kicked. .timer 1 60 mta.kick $1 $2 mta.text $1 Nickname - Player Kicked: Not changing nick. } } on *:SIGNAL:mta.startrace: { mta.text $1 Map Started! $mta.race($1) $+ . mta.text $1 Map ID: $mta.races($1,$mta.race($1)) $+ . } on *:SIGNAL:mta.death: { mta.pm $1 $2 Auto Message: You may now grab a cola! } alias wac.vban { ;this alias needs work... im not doing it for u !hadd prstemp votenick %a !hadd prstemp voters %b mta.text $1 Type !voteb If You Want $mta.nick($1,%a) Banning. Reason: $4- $iif($4- == $null, Not Set) $+ . mta.text $1 Votes Need to ban: $ceil($calc($mta.players($1) / 2)) if ($3 == !voteb) { mta.text $1 Total Votes for banning: $numtok($hget(wacmain,bans),41) $+ / $+ $ceil($calc($mta.players($1) / 2)) wac.voting $1- } } alias wac.voting { var %a = $iif($4 == $null,$2,$iif($mta.getid($1,* $+ $4 $+ *) == $null,$2,$v1)) if ($numtok($hget(wacmain,bans),41) == $ceil($calc($mta.players($1) / 2))) { mta.text $1 Banning $mta.nick($1,%a) $+. mta.ban $1 %a } } alias wac.betting { var %a = $iif($4 == $null,$2,$iif($mta.getid($1,* $+ $4 $+ *) == $null,$2,$v1)) ; the line below needs work, there is no -1 in mta.getid, modify the line above if u need to check for absent id's if (%a == -1) mta.pm $1 $2 Error - Absent ID else { $+(.timerbet,$1,%a) mta.text $1 Place your Bets! mta.pm $1 $2 You have betted on $mta.nick($1,%a) to win, type !unbet to unbet before the time runs out! $+(.timerbet,$1,$2) off mta.text $1 No more bets! } } ;Thanks [uVA]Scooby & [uVA]Bart Thanks scoob Link to comment
BlueTak Posted May 12, 2008 Author Share Posted May 12, 2008 ok i downloaded ur script, moved some parts around and fixed a few bracket errors, most of it should work now, although theres still a few errors in ur aliases that i think u need to work on. u should remove the prs parts too, since they will only work while ur running prs. all in all the script is very basic but if u keep at it im sure ul pick it up a bit more Also, a lot more work is needed before u can really call it a working release, The Ban and VoteBan mainly. Good Luck with the rest:) on *:SIGNAL:mta.command: { var %a = $iif($4 == $null,$2,$iif($mta.getid($1,* $+ $4 $+ *) == $null,$2,$v1)) if ($3 == !time) mta.text $1 Time: $time (GMT) elseif ($3 == !date) mta.text $1 Date: $date elseif ($3 == !checkmap) mta.text $1 Found: $mta.map($1) elseif ($3 == !maps) mta.text $1 Total Maps: $mta.races($1) elseif ($3 == !name) mta.text $1 Map Name: $mta.race($1) elseif ($3 == !info) mta.text $1 W&C v1.0 Scripts! elseif ($3 == !id) mta.text $1 Map Id: $mta.races($1,$mta.race($1)) $+ . elseif ($3 == !players) mta.text $1 Total players: $mta.tot($1) elseif ($3 == !vban || !voteban iswm $3) wac.vban $1- elseif ($3 == !back) { if ($timer($+(afk,$1,$2))) { $+(.timerafk,$1,$2) off mta.pm $1 $2 You are no longer undergoing an afk check and wont be kicked. } } if ($mta.level($1,$2) >= 3) { elseif ($3 == !block) mta.text $1 Dont Block or be freezed $mta.nick($1,%a) $+ ! elseif ($3 == !kill) mta.text $1 Type /kill $mta.nick($1,%a) $+ ! elseif ($3 == !afk) { if ($mta.level($1,%a) > $mta.level($1,$2)) mta.pm $1 $2 Error- You cannot use $3 on someone with higher level. elseif (%a == -1) mta.pm $1 $2 Error - Absent ID else { mta.text $1 $mta.nick($1,%a) is undergoing an AFK CHECK and has 20 seconds to respond. mta.pm $1 %a Please write !back if you are there, 20 seconds untill kick. $+(.timerafk,$1,%a) mta.kick $1 %a } } } 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) && ($mta.level($1,$2) < 5) mta.pm $1 $2 $slr.inco if ($mta.level($1,$2) > 0) && ($mta.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 .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 else { if ($mta.level($1,$2) > 0) && ($mta.level($1,$2) < 5)mta.pm $1 $2 $slr.inco if ($mta.level($1,$2) > 0) && ($mta.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 } } }}on *:SIGNAL:mta.text: { if ($3 == hello) mta.text $1 Hello PPL. elseif ($3 == hi) mta.text $1 Hi All. elseif ($3 == bye) mta.text $1 Bye Peeps. elseif ($3 == brb) mta.text $1 /me $mta.nick($1,$2) Will be Right back, Reason: $4 $+. elseif ($3 == afk) mta.text $1 /me $mta.nick($1,$2) Will be Afk, Reason: $4- $+. elseif ($3 == nickname) mta.text $1 Your Nickname: $mta.nick($1,$2) $+ . elseif ($3 == info) mta.text $1 Races: $mta.races($1) Race on: $mta.race($1) $+ .}on *:SIGNAL:mta.join: { if ($mta.nick($1,$2) == player) { mta.pm $1 $2 Please change your nick 60 seconds or automaticaly kicked. .timer 1 60 mta.kick $1 $2 mta.text $1 Nickname - Player Kicked: Not changing nick. }}on *:SIGNAL:mta.startrace: { mta.text $1 Map Started! $mta.race($1) $+ . mta.text $1 Map ID: $mta.races($1,$mta.race($1)) $+ .}on *:SIGNAL:mta.death: { mta.pm $1 $2 Auto Message: You may now grab a cola!} alias wac.vban { ;this alias needs work... im not doing it for u !hadd prstemp votenick %a !hadd prstemp voters %b mta.text $1 Type !voteb If You Want $mta.nick($1,%a) Banning. Reason: $4- $iif($4- == $null, Not Set) $+ . mta.text $1 Votes Need to ban: $ceil($calc($mta.players($1) / 2)) if ($3 == !voteb) { mta.text $1 Total Votes for banning: $numtok($hget(wacmain,bans),41) $+ / $+ $ceil($calc($mta.players($1) / 2)) wac.voting $1- }} alias wac.voting { var %a = $iif($4 == $null,$2,$iif($mta.getid($1,* $+ $4 $+ *) == $null,$2,$v1)) if ($numtok($hget(wacmain,bans),41) == $ceil($calc($mta.players($1) / 2))) { mta.text $1 Banning $mta.nick($1,%a) $+. mta.ban $1 %a }} alias wac.betting { var %a = $iif($4 == $null,$2,$iif($mta.getid($1,* $+ $4 $+ *) == $null,$2,$v1)) ; the line below needs work, there is no -1 in mta.getid, modify the line above if u need to check for absent id's if (%a == -1) mta.pm $1 $2 Error - Absent ID else { $+(.timerbet,$1,%a) mta.text $1 Place your Bets! mta.pm $1 $2 You have betted on $mta.nick($1,%a) to win, type !unbet to unbet before the time runs out! $+(.timerbet,$1,$2) off mta.text $1 No more bets! }};Thanks [uVA]Scooby & [uVA]Bart Thanks scoob Link to comment
Recommended Posts