If the CEL comes on again - probably be a good idea to pull the code - some auto parts stores can pull the code free. Might be a totally different problem than before.
Since it is a 1998 - ****uming, no fuel delivery problems, I'd start by looking at the plug wires, spark plugs, and ignition coil pack. If it runs well after warming up - but not when cold or cooled down for a while - then ignition problems are usually the first things that might come up. Other things to check are a clogged PCV valve, EGR problems, vacuum leaks, dirty throttle body, emissions issues (carcoal canister, VSV, vents and purge valves). If you tend to "top-off" the tank - you could have killed the charcoal canister (flooded it with gas). No other fix for that other than to replace it. If it is a emission related problem - you may be covered under the Toyota extended emission warranty. Search on this forum or do a search on the net.
Good Luck.