Choose Your Own Star Wars Adventure: Return of the Jedi

Choose Your Own Star Wars Adventure: Return of the Jedi, the third book in the Choose Your Own Star Wars Adventure trilogy, is a young reader novel by Christopher Golden, published by Bantam Skylark in 1998.

Publisher's summary
Join Luke Skywalker, Princess Leia, and Han Solo to fight against the evil Galactic Empire—only this time you control the twists, turns, and outcomes of the most exciting adventure in the galaxy. Will you help lead the Rebellion to victory against the Empire? Or side with Darth Vader and betray your friends? The fate of the galaxy is in your hands—May the Force be with you.

Plot summary
Han Solo has fallen into the clutches of Jabba the Hutt, you and Lando are staked out at Jabba's Palace as guards, while Luke puts his plan into action.

Possible endings

 * Surrender to Jabba, who'll release you for info on the Rebellion (non-canon)
 * Betray your friends to Jabba, who are imprisoned but you are released but shunned by the Rebellion (non-canon)
 * Surrender to Jabba and everyone gets fed to the rancor (non-canon)
 * Follow Luke into the rancor pit and release the monster on the palace while you escape (non-canon)
 * Kill Jabba and get captured and become a slave. Refuse to help recapture Han and you and Lando become slaves (non-canon)
 * Pretend to help Boba Fett recapture Han and turn on the bounty hunter who'll be imprisoned by the Rebellion for life (non-canon)
 * Join Lando Calrissian in the Millennium Falcon to fight and destroy the second Death Star.
 * Help your friends on Endor destroy the shield generator.
 * Join Luke in the final battle against Vader and the Emperor.
 * Stay on the light side while Luke falls to the dark side. 9non-canon)
 * Fall to the dark side while Luke stays on the light, Anakin Skywalker is redeemed and so are you.