Jump to content

BetaDevil

Members
  • Posts

    153
  • Joined

  • Last visited

Everything posted by BetaDevil

  1. coz you were thinking it wold work
  2. well, it won't work with % and $ coz that are vars and commands in mIRC... that's why alias-system doesn't save them .
  3. I noted the bracket typo, but fixed it in the other topic. You can add [DD] at the start of each map to check if it's DD or not...
  4. did sum1 test that script, coz I still don't know it's working for 100%... and if it's not working you have to ask XE-Clan for a good one .
  5. lol @ Aeron, if I hate someone with a server I'll give him that script
  6. Isn't it smart to add this?[syntax=mIRC]on *:SIGNAL:mta.adcon:{ if (!updaterace* iswm $3) { mta.text $1 Updating the race list. mta.races.update $1 } }[/lua]
  7. you just have to put all the codes on the previous page in mtagus.mrc, and RPG.ini will be created by the script.
  8. lol, I typed it wrong (again, I hate it ) in mta.part signal.[syntax=mIRC]on *:SIGNAL:mta.part: { if (!$mta.dead($1,$2)) set %cplayers $calc(%cplayers - 1) mta.end $1 $2 }[/lua]
  9. I updated lil_Toady's script, with my script you have an option to turn on or off your nick in your message. You can change it in: Server / Options / Text Nickname download here or here. My english isn't very good, so if you don't understand, srry .
  10. [syntax=mIRC]alias mta.end { if (%cplayers == 1) { var %a = 0 while (%a < $mta.server($1).cmax) { if (!$mta.dead($1,%a)) { mta.text $1 $mta.nick($1,%a) won! mta.freeze $1 %a !halt } !inc %a } } } on *:SIGNAL:mta.startrace: { set %cplayers $mta.server($1).players } on *:SIGNAL:mta.part: { if (!$mta.dead($1,$2)) set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } on *:SIGNAL:mta.death: { set %cplayers $calc(%cplayers - 1) mta.end $1 $2 } on *:SIGNAL:mta.connect: { set %cplayers 0 }[/lua]Something like this? EDIT Added something ot the part signal
  11. Good job guys, I needed this
  12. this will work (I hope)... [syntax=mIRC]on *:SIGNAL:mta.startrace: { ;Parameters: ;$1 = Server ;$2 = Race ID ;$3 = 0/1/2 (success,failed,no players) %remmap = $readini($scriptdir $+ remmap.ini,REMMAPS,$replace($mta.race($1),$chr(32),-)) if (%constant = on && %constantmap != $mta.race($1) && %remmap != 1) mta.startrace $1 %constantmapid if (%remmap == 1 && %constant != on) { mta.text $1 Map " $+ $mta.race($1) $+ " has been removed, changing to a random map.. !.timer 1 1 mta.startrace $1 $rand(0,$mta.races($1)) } if ($3 == 0 && %remmap != 1) { set %race $2 set %deaths 0 var %a = $calc($readini($scriptdir $+ mta.stats.ini,n,$mta.races($1,$2),times) + 1),%b = $calc($readini($scriptdir $+ mta.stats.ini,n,ALL,times) + 1) !writeini -n $+(",$scriptdir,mta.stats.ini,") ALL times %b !writeini -n $+(",$scriptdir,mta.stats.ini,") $+(",$mta.races($1,$2),") times %a mta.text $1 $mta.races($1,$2) - Top Time: $gus.toptime($1) - By: $gus.topname($1) - Deathlimit: $gus.deathlimit($1,$2) - Played: $+(%a,/,%b) times ( $+ $round($calc(100 / %b * %a),2) $+ % $+ ) } if ($readini($scriptdir $+ instructions.ini,INSTRUCTIONS,$replace($mta.races($1,$2),$chr(32),)) != $null && $readini($scriptdir $+ instructions.ini,INSTRUCTIONS,$replace($mta.races($1,$2),$chr(32),)) != default && %remmap != 1) { mta.text $1 $mta.races($1,$2) - Instructions: $readini($scriptdir $+ instructions.ini,INSTRUCTIONS,$replace($mta.races($1,$2),$chr(32),)) } while (%a < $mta.server($1).cmax) { if ($mta.nick($1,%a) != -1) !writeini -n " $+ $scriptdir $+ stats.ini" RACES $mta.nick($1,%a) $gus.add($gus.races($1,%a),1) !inc %a } }[/lua]
  13. I think it's better to rewrite your script
  14. Client first yeah, there will be a lot of servers with the release you know
  15. [syntax=mIRC]on *:SIGNAL:mta.command: { if ($3 == !lol) mta.text $1 $mta.nick($1,$2) is laughing out loud }[/lua]Something like that?
  16. I can always sleep well knowing there's a good scripter to help
  17. yeah, you need to add them together.
  18. uhmm sorry, doesn't work this is a fixed one. [syntax=mIRC] elseif ($3 == !setrank) { if (gus.level($1,$2) >= 7) { if (%a == -1) mta.pm $1 $2 Error - Absent ID elseif (%a == $2) mta.pm $1 $2 Error - cannot $3 yourself. elseif ($gus.level($1,%a) >= $gus.level($1,$2)) mta.pm $1 $2 Error - cannot $3 a person with same or higher level. else { !writeini -n " $+ $scriptdir $+ rank.ini" ranked $mta.nick($1,%a) $5- mta.text $1 $mta.nick($1,%a) your rank is set to: $5- } } else mta.pm $1 $2 Error - You need to be level 7 to use this command. } elseif ($3 == !rank) { if (%a == -1) mta.pm $1 $2 Error - Absent ID else mta.text $1 $mta.nick($1,%a) $+ 's rank is: $iif($readini($scriptdir $+ rank.ini,ranked,$mta.nick($1,%a)),$v1,No Rank) }[/lua]
  19. This works (I think), but more of my scripts don't work so you have to try.[syntax=mIRC] elseif ($3 == !setrank) { if (gus.level($1,$2) >= 7) { if (%a == -1) mta.pm $1 $2 Error - Absent ID elseif (%a == $2) mta.pm $1 $2 Error - cannot $3 yourself. elseif ($gus.level($1,%a) >= $gus.level($1,$2)) mta.pm $1 $2 Error - cannot $3 a person with same or higher level. else { !writeini -n " $+ $scriptdir $+ rank.ini" ranked $4 $5- mta.text $1 $mta.nick($1,%a) your rank is set to: $5- } } else mta.pm $1 $2 Error - You need to be level 7 to use this command. } elseif ($3 == !rank) { if (%a == -1) mta.pm $1 $2 Error - Absent ID else mta.text $1 $mta.nick($1,%a) $+ 's rank is: $iif($readini($scriptdir $+ rank.ini,ranked,$mta.nick($1,%a)),$v1,No Rank) }[/lua]
  20. Place your !setrank-command please
  21. I love the normal DD, and I also love Wankenstein DD
  22. I don't get it, did you put maps in het MTAmA/maps directory?
×
×
  • Create New...