ok one more help here, i learned a bit more and i have now figured how to use .ini files. but i have a problem i dont know how to solve currenlty.
on *:TEXT:!cast aids *:#:{
if ($readini($nick $+ .ini,Register,Complete) != Yes) { Notice $nick Please Register! !Register | halt }
if ($readini($nick $+ .ini,Pass,Logged) != Yes) { Notice $nick Login, By PMing $Me with !Login PassYouMade! | halt }
if ($readini($nick $+ .ini,$nick,money) < 1000) { /msg $chan $nick does not have enough credits to cast Aids! | halt }
Writeini $nick $+ .ini $nick money $calc($readini($nick $+ .ini,$nick,money) - 1000) {
describe $chan begins to cast AIDS.
if ($rand(1,4) == 1) {
msg $chan $nick has spent 1000 credits to cast 1,44,1AIDS!
msg $chan AIDs failed to cast. | halt
}
.msg $chan $nick has spent 1000 credits to cast 1,44,1AIDS!
.Writeini $3 $+ .ini $3 aids yes
.timer1 1 5 describe $chan has successfully casted AIDS on $3!
if ($readini($3 $+ .ini,$3,aids) == yes) { timer2 1 10 msg $chan 1,44,1 $3 has 5 minutes till AIDS will take affect. }
if ($readini($3 $+ .ini,$3,aids) == yes) { timer3 1 70 msg $chan 1,44,1 $3 has 4 minutes remaining till consumed by the AIDS effect. }
if ($readini($3 $+ .ini,$3,aids) == yes) { timer4 1 130 msg $chan 1,44,1 $3 has only 3 minutes remaining. }
if ($readini($3 $+ .ini,$3,aids) == yes) { timer5 1 190 msg $chan 1,44,1 $3 has only 2 minutes left! GASP! }
if ($readini($3 $+ .ini,$3,aids) == yes) { timer6 1 250 msg $chan 1,44,1 $3 has only 1 minute left! Please apply the !cure soon. }
if ($readini($3 $+ .ini,$3,aids) == yes) { timer7 1 310 kick $chan $3 $(|,) msg $chan 1,44,1 $3 HAS DIED OF AIDS! }
}
}
this is my new code. basically i added it to check .ini to see if they person has "aids" as yes or no. If yes i want it to follow threw. however if no i want it to stop. However the way i currently have it is that all the if commands are being read at the moment " !cast aids " is being said. i want to find a way so it will stop at anytime during the 5 minutes the aids value = no.
any ideas ? btw yes i know this code sucks and is alot larger than it needs to be but i just started learning this code 2 days ago =P