How to renew membership during event registration?
One way to accomplish this is to programm an extension with a hook reacting on the event registration and then changing the membership based on the event registration. 

Another way which might be usefull is to use the drupal Webform module and create an event registration with membership options.