Diagnose the problem then replace the parts needed.
You always start with the lowest Code # and work your way up but in this case with a Code 13 and 24 sets with throttle movement I would start with the Code 24.
Sure sounds like the TPS
is the issue but be sure voltages are correct, takes all of 15 minutes.
2)With the key on/engine off with a digital voltmeter probe(backprobe the connector) the Reference and Signal Return Line.
Voltage should read 4.90-5.00 volts.
3)If correct reconnect the TPS
4)With the key on/engine off backprobe the Signal and Signal Return Line.
a)Voltage at closed throttle should be below 1.00 volts but not below .10 volts.
b)Slowing sweep the throttle open while watching your voltmeter, voltage should increase consistently as the throttle is opened.
If voltage spikes or drops while sweeping replace the TPS
the voltage needs to be above 3.50 volts but not higher than 4.90 volts.
Tell me what year car we are working on and I can give you the wire colors for your TPS