function ungeta()
local w_cmd=GetVariable("myweapon")
local u_cmd=GetVariable("muweapon")
local leweapon=GetVariable("learnweapon")
if leweapon~=nil then
exe('unwield '..leweapon)
end
if w_cmd~=nil then
exe('unwield '..w_cmd)
end
if u_cmd~=nil then
exe('unwield '..u_cmd)
end
end