-
Posts
976 -
Joined
-
Last visited
Everything posted by Scooby
-
See above^
-
ok, now we're getting somewhere. I think all the scripting in this thread is related towards PRS, so if ur looking at something somewhere in this thread, then more than likely its for use with PRS. PRS-1.3 can be found on the very first post, its not hard to find. You can read some of the functions available in the first post and make ur mind up if its what u need. Do u use a script already? If so, which?
-
hmm well we can spend all day leaving msgs for eachother... but unless u tell me what it is that u want, then i dont know what to say. 'full version of this'...... what is 'this'... what is it you want lol????? there is no more.... if u think there is... this is it... the snippet of code, once added to prs 1.3 this will enable you to set the mode for every map to the same mode. (ideal if u only have DM maps) Once uve decided what u need, post here and i'll get back to u asap
-
You would copy/paste this into your copy of PRS... If u dont have prs then it wont work.
-
the !setmodeall command? In the prs script, line 37 (this should be a couple of lines down the signal:mta.command), add this: elseif (($3 == !setmodeall) && ($prs.level($1,$2) == 5)) prs.setmodeall $1- then at the very bottom of the script, scroll down as far as u can, then paste in the alias below. alias prs.setmodeall { if ($4 != $null) { var %a = 0 while (%a < $mta.races($1)) { var %race = $replace($mta.races($1,%a),$chr(32),$chr(45)) !hadd prsstats mode $+ %race $4 !inc %a } mta.text $1 $mta.nick($1,$2) Set The Mode On All Maps To $4 } else mta.pm $1 $2 Error - !setmodeall <mode> } the command is !setmodeall
-
Not really a problem since thats what u wanted it to do lol
-
ok add this in mta.command: elseif (($3 == !setmodeall) && ($prs.level($1,$2) == 5)) prs.setmodeall $1- then add this alias: alias prs.setmodeall { if ($4 != $null) { var %a = 0 while (%a < $mta.races($1)) { var %race = $replace($mta.races($1,%a),$chr(32),$chr(45)) !hadd prsstats mode $+ %race $4 !inc %a } mta.text $1 $mta.nick($1,$2) Set The Mode On All Maps To $4 } else mta.pm $1 $2 Error - !setmodeall <mode> } once again, untested so let me know if theres any problems
-
its not possible to change, there are too many. the basic ones are easy enough but i think theres hundreds/thousands that would need to be changed to transfer them completely to a new name, its not as simple as just changing something simple like wins/losses,cash,records, each player has a set of stats for each map, changing them all would either crash mirc or just take way too long. when i used to have this problem, if i could be bothered (ie if it was a regular player who'd played in my server for a long time) i used to close mirc and then open each .txt file manually and use the rename function in notepad. this will take less that 1 minute to do. once all .txt files have had the names renamed reopen mirc. all the stats will now be under the new name. bit of a headache i know, but its way faster than me trying to write a script to do it
-
Im not able to test, so trythis out... on *:SIGNAL:mta.command: { if ($3 == !betdice) prs.betdice $1- } alias prs.betdice { var %a = $rand(1,10) if ($hget(prstemp $+ $2,timertest) == on) mta.pm $1 $2 Please Wait...Command Can Only Be Used Once Every 30Secs. elseif ($hget(pgstemp,allow $+ $2) == no) mta.pm $1 $2 Plz Try Later - Accessing Details! elseif (($4 > 10) || ($4 < 1) || ($4 !isnum) || ($5 !isnum)) { mta.pm $1 $2 Error - !betdice <1-10> <amount> } elseif ($5 > $pgs.cash($1,$2)) mta.pm $1 $2 Error - You Only Have $ $+ $pgs.cash($1,$2) else { pgs.sub $mta.nick($1,$2) $5 !hadd -u30 prstemp $+ $2 timertest on mta.pm $1 $2 Rolling the dice... if (%a == $4) .timer 1 5 prs.rollwin $1 $2 %a $5 else .timer 1 5 prs.rolllose $1 $2 %a $5 } } alias prs.rollwin { var %a = $calc($4 * 10) pgs.add $mta.nick($1,$2) %a mta.pm $1 $2 You rolled a $3 $mta.nick($1,$2) $+ , $ $+ %a added to your cash. } alias prs.rolllose { mta.pm $1 $2 You rolled a $3 $mta.nick($1,$2) $+ , you just lost $ $+ $4 } any problems with it, or anything u need changing, just let me know
-
ok the only pointer is the 60:40 ratio, if ur doing numbers 1 to 10 then thats the ratio, to do it 60:40 would mean u have to do away with the numbers 1 to 10. i'll knock something up and see what u think.
-
ok try this: on *:SIGNAL:mta.command: { if ($3 == !alive) { if (prs.mode($1) == deathmatch) mta.text $1 Alive: $prs.alivelist($1) else mta.pm $1 $2 Error - Command Only For DM Maps. } } alias prs.alivelist { var %a = 0,%b while (%a < %loop) { if ($hget(prstemp,alive $+ %a) == yes) { %b = %b $+ , $mta.nick($1,%a) } !inc %a } %b = %b $+ . !return %b } try this.
-
Its possible to a degree i guess, but even the online translators arent that good.. u could probably do it for a limited amount of words but all would need to be predefined first... either way its not a quick thing if u want it to work right.
-
if u still need help with this let me know... ive only just noticed it.
-
sheesh... if u want more cash.. if u want more points... WIN MORE!
-
i think !players does that, of course this will only show in DM maps.
-
Hi, Yeah i made it so it can only be used once every 30 secs, im guessing ud prefer a version that works for all but has a 30 sec counter for each person? that should be easy enough to change... as for the 'sometimes it wont roll' coz it thinks its still rolling, does this ever fix? or once it stops, does it stay stopped? ive changed it a little, Try this: on *:SIGNAL:mta.command: { if ($3 == !roll) prs.roll $1 $2 } alias prs.roll { if ($hget(prstemp $+ $2,timertest) == on) { mta.pm $1 $2 Please Wait...Command Can Only Be Used Once Every 30Secs. } elseif ($hget(pgstemp,allow $+ $2) == no) mta.pm $1 $2 Plz Try Later - Accessing Details! else { !hadd -u30 prstemp $+ $2 timertest on mta.pm $1 $2 Rolling the dice... .timer 1 5 prs.rolled $1 $2 } } alias prs.rolled { var %a = $rand(1,7) if ((%a == 1) || (%a == 2)) { var %c = $rand(1000,6000) pgs.add $mta.nick($1,$2) %c mta.text $1 You rolled a %a $mta.nick($1,$2) $+ , $chr(36) $+ %c added to your cash. } elseif ((%a == 3) || (%a == 4)) { var %c = $rand(1000,6000) pgs.sub $mta.nick($1,$2) %c mta.text $1 You rolled a %a $mta.nick($1,$2) $+ , you just lost $chr(36) $+ %c } elseif (%a == 5) { mta.text $1 You rolled a 5 $mta.nick($1,$2) $+ , which is mute. mta.mute $1 $2 .timerunmuteroll $+ $2 1 30 mta.unmute $1 $2 } elseif (%a == 6) { mta.text $1 You rolled a 6 $mta.nick($1,$2) $+ , which is freeze. mta.freeze $1 $2 .timerunfreezeroll $+ $2 1 30 mta.unfreeze $1 $2 } else { !hadd prsrank $mta.nick($1,$2) $calc($prs.points($1,$2) + 1) mta.text $1 You rolled a 7 $mta.nick($1,$2) $+ , 1 point added to your stats. } } }
-
ok try this, i havent been able to test it so let me know how it is... it should be fine (fingers crossed) ive tidied it up a bit, although it could be made much smaller. ive left it kind of like how u gave it me tho, so i know u can edit it to be how u need it. on *:SIGNAL:mta.command: { if ($3 == !roll) prs.roll $1 $2 } alias prs.roll { if ($hget(prstemp,timertest) == on) { mta.pm $1 $2 Please Wait...Command Can Only Be Used Once Every 30Secs. } elseif ($hget(pgstemp,allow $+ $2) == no) mta.pm $1 $2 Plz Try Later - Accessing Details! else { !hadd -u30 prstemp timertest on mta.pm $1 $2 Rolling the dice... .timer 1 5 prs.rolled $1 $2 } } alias prs.rolled { var %a = $rand(1,7) if (%a == 1) { var %c = $rand(1000,6000) pgs.add $mta.nick($1,$2) %c mta.text $1 You rolled 1, $mta.nick($1,$2) $+ , $chr(36) $+ %c added to your cash. } elseif (%a == 2) { var %c = $rand(1000,6000) pgs.sub $mta.nick($1,$2) %c mta.text $1 You rolled 2, $mta.nick($1,$2) $+ , you just lost $chr(36) $+ %c } elseif (%a == 3) { mta.text $1 You rolled 3, $mta.nick($1,$2) $+ , which is mute. mta.mute $1 $2 .timerunmuteroll $+ $2 1 30 mta.unmute $1 $2 } elseif (%a == 4) { var %d = $rand(1000,2000) pgs.add $mta.nick($1,$2) %d mta.text $1 You rolled 4, $mta.nick($1,$2) $+ , $chr(36) $+ %d added to your cash. } elseif (%a == 5) { !hadd prsrank $mta.nick($1,$2) $calc($prs.points($1,$2) + 1) mta.text $1 You rolled 5, $mta.nick($1,$2) so 1 point added to your stats. } elseif (%a == 6) { var %e = $rand(1000,9999) pgs.add $mta.nick($1,$2) %e mta.text $1 You rolled 6, $mta.nick($1,$2) $+ , $chr(36) $+ %e added to your cash. } elseif (%a == 7) { var %f = $rand(1,5), %warns = $calc($hget(prswarns,$mta.nick($1,$2)) + %f) !hadd prswarns $mta.nick($1,$2) %warns mta.text $1 You rolled 7, $mta.nick($1,$2) $+ , you got %f $iif(%f == 1,warn!,warns!) } } } im sure u dont need me to explain how to add it, but if u do just let me know or failing that, u can always run it in a new .mrc file.
-
give me an example of what u need and i'll see what i can do
-
ok try this: on *:SIGNAL:mta.startrace: { if ($hget(prstemp,currentrace) == $mta.race($1)) { !hadd prstemp racecount $calc($hget(prstemp,racecount) + 1) if ($hget(prstemp,racecount) >= 4) { mta.text $1 Race Counter Limit Reached, Starting A Random Map..... .timer 1 5 mta.startrace $1 $rand(0,$mta.races($1)) !hadd prstemp racecount 1 } else mta.text $1 Racecount: $chr(40) $+ $hget(prstemp,racecount) $+ $chr(47) $+ 3 $+ $chr(41) } !hadd prstemp currentrace $mta.race($1) } thats the whole alias, however, if u just want to add it to prs, add the script below to the very top of the startrace alias (which should be around line 500 in prs) if ($hget(prstemp,currentrace) == $mta.race($1)) { !hadd prstemp racecount $calc($hget(prstemp,racecount) + 1) if ($hget(prstemp,racecount) >= 4) { mta.text $1 Race Counter Limit Reached, Starting A Random Map..... .timer 1 5 mta.startrace $1 $rand(0,$mta.races($1)) !hadd prstemp racecount 1 } else mta.text $1 Racecount: $chr(40) $+ $hget(prstemp,racecount) $+ $chr(47) $+ 3 $+ $chr(41) } !hadd prstemp currentrace $mta.race($1) let me know if it works, i havent been able to test it.
-
ok how do u want it? do u want to be able to paste it into prs? or run as a separate script alongside prs? ok ive kept it basic for now, since i dont have any access to test it.. heres the first one then... just paste these two aliases into a new .mrc file and load it. on *:SIGNAL:mta.connect: { set %wcount 1 } on *:SIGNAL:prs.endrace: { var %winner = $mta.nick($1,$2) if (%winner == %lastwinner) && ($prs.players($1) > 1) { !inc %wcount mta.text $1 Win streak Of %wcount For %winner $+ ! } else set %wcount 1 set %lastwinner %winner } unless u wish to add it to prs, then u will need to put this in prs, in mta.connect: set %wcount 1 then add this to the alias prs.endrace: var %winner = $mta.nick($1,$2) if (%winner == %lastwinner) && ($prs.players($1) > 1) { !inc %wcount mta.text $1 Win streak Of %wcount For %winner $+ ! } else set %wcount 1 set %lastwinner %winner if ur not sure how to do this, go with the first option and use a new .mrc file any probs, let me know.
-
ahh i see, leave it with me and i'll see what i can make u later
-
not sure what u mean sorry
-
does mirc show any errorrs?
-
well they worked before... i guess u broke them by adding something wrongly lol, i'll sort it out with u on msn.
-
maybe be a little more specific... whats not working? a few lines from the alias dont tell me much