SamB Posted July 26, 2006 Share Posted July 26, 2006 When you type !allies its supposed to show everything in the list like so: allie, allie, allie etc. with me being a noob, it doesnt work .mrc file on *:SIGNAL:mta.command: { if ($3 == !allies) { mta.text ($readini($scriptdir $+ allies.ini)) >= 1) { } } .ini file [Allies] Teppe No-Fear help me please Link to comment
lil Toady Posted July 26, 2006 Share Posted July 26, 2006 make the list be in txt file, will be better.. The command: on *:SIGNAL:mta.command:{ if ($3 == !allies) { var %a = 0,%b while (%a <= $lines($scriptdir $+ allies.txt)) { if (!%b) %b = $read($scriptdir $+ allies.txt,%a) elseif (%b) %b = %b $+ , $read($scriptdir $+ allies.txt,%a) !inc %a } mta.text $1 $iif(%b,Allies: $v1,No allies on the list) } } and the .txt: Teppe No-Fear etc. OR if you prefer ini... The command: on *:SIGNAL:mta.command:{ if ($3 == !allies) { var %a = 0,%b while (%a <= $ini($scriptdir $+ allies.ini,ALLIES,0)) { if (!%b) %b = $ini($scriptdir $+ allies.ini,ALLIES,%a) elseif (%b) %b = %b $+ , $ini($scriptdir $+ allies.ini,ALLIES,%a) !inc %a } mta.text $1 $iif(%b,Allies: $v1,No allies on the list) } } and the .ini: [ALLIES] Teppe=1 No-Fear=1 etc.=1 Link to comment
Recommended Posts