QuickBreakdown Posted April 30, 2006 Share Posted April 30, 2006 Hi all i made a job script but 1 thing wont work.. If the job is done it have to write it to a file . And if he try again to play the job it says: Job is already done. Can some 1 make that for me ? Here is my code: on *:SIGNAL:mta.command:{ elseif $3 == !job if $rpg.area($1,$2) == Malibu-Club { mta.msg $1 $2 Job Completed. You got 987 ! !writeini -n " $+ $rpg.dir $+ rpg.ini" $mta.name($1,$2) cash 987 } else mta.msg $1 $2 Go to the Malibu-Club In Whasington Beach ! } Thanks, Robbin237 Link to comment
J-Fox.GEMM Posted April 30, 2006 Share Posted April 30, 2006 (edited) I m still new to mirc scripting but i would use this: on *:SIGNAL:mta.command:{ if $3 == !job { if $rpg.area($1,$2) == Malibu-Club { if ($readini($scriptdir $+ Job.ini,n,Malibu,Mission1Done)) == 0 { mta.msg $1 $2 Job Completed. You Got 987 ! !writeini -n $+(",$scriptdir,Job.ini,") Malibu Mission1Done 1 } else { mta.msg $1 $2 Job Allready Done! } } } } But u should Mark PlayerIsInMission and PlayerMoney. The way you use seems to be unlogic.. //Edit: Code updated Edited May 1, 2006 by Guest Link to comment
andeh Posted April 30, 2006 Share Posted April 30, 2006 explain what its meant to do? u got to malibu and u get money? so u could just stay at malibu and say !job all the time? Link to comment
[TMG]Energy Posted May 3, 2006 Share Posted May 3, 2006 But i think you don't want 1 job? you can make.. if you are at the malibu that you get a job to the Bank or something Link to comment
Recommended Posts